locked
Exposing a webservice RRS feed

  • Question

  • User-510697852 posted

    What is exposing a webservice?

    ---------

    My scenario,

    We have a webapplication in which we are using a webservice created by us.

    If i want some third person to use that webservice, what exactly i need to do?

    Do i need to expose that webservice and give that link to that person? I want that person to see all function definitions in that webservice so which arguments to pass to each function and all.

    So that person can use it. 

    Thank you.

    Wednesday, July 5, 2017 8:22 AM

All replies

  • User765422875 posted

    You need to get your web service publicly accessible first. Then provide the 3rd party the URI for the actual service & the WSDL.

    "WSDL document describes a web service. It specifies the location of the service, and the methods of the service."

    Wednesday, July 5, 2017 4:37 PM
  • User1168443798 posted

    Hi hardeshis,

    >> Do i need to expose that webservice and give that link to that person?

    Yes, as the suggestion from deepalgorith, you need to host web service on public address to expose web service, and then provide the wsdl service address to that person.

    >> I want that person to see all function definitions in that webservice so which arguments to pass to each function and all.

    What is your service type? Is it WCF web service or asmx web service? Except the WSDL page which will describe service methods and arguments. For a friendly UI, I would suggest you try service help page.

    You could refer the link below for more information.

    # asmx Web Service Documentation

    https://stackoverflow.com/questions/6390806/asmx-web-service-documentation

    Best Regards,

    Edward

    Thursday, July 6, 2017 2:14 AM
  • User-510697852 posted

    It's a wsmx web service. Where this service help page available?

    Thursday, July 6, 2017 6:46 AM
  • User1168443798 posted

    Hi hardeshis,

    You could check the link in my above reply and the another link from the thread.

    #Improving the ASP.NET Webservice Help Generator to Reflect Inheritance

    https://www.codeproject.com/Articles/28635/Improving-the-ASP-NET-Webservice-Help-Generator-to

    Regards,

    Edward

    Thursday, July 6, 2017 7:31 AM
  • User-510697852 posted

    How to do this?

    "Then provide the 3rd party the URI for the actual service & the WSDL."

    Thursday, July 6, 2017 7:52 AM
  • User765422875 posted

    Your web server configuration will be able to tell you what the URL is. You can look at the virtual directory under which the service is running, right-click, and select browse to see the URL of the web service.

    Nothing special needs to be done to generate the WSDL for your web service. Just postfix your Webservice URL with "?WSDL" and you will get it. For example:

    http://localhost/YourService.asmx?WSDL

    Once you do that, the WSDL can be saved as an XML file and added as web-reference to a respective client.

    Please mark the answer accepted if it helped you, so others can benefit from it as well. Thanks

    Thursday, July 6, 2017 6:16 PM
  • User-510697852 posted

    yes checked this one but giving error for loading below file, (saying xsl compile error or something like that)

    WsdlHelp.xsl

     

    Friday, July 7, 2017 6:30 AM
  • User-510697852 posted

    My webservice is a simple web service and don't have API

    Friday, July 7, 2017 6:50 AM
  • User1168443798 posted

    Hi hardeshis,

    What is your current issue? It is difficult to analyze your issue when you discuss many issue cross replies.

    Let’s go back to your original post, and check the issue one by one.

    >> Do i need to expose that webservice and give that link to that person?

    Have you exposed your web service and other could access it? If not, it would be helpful if you could share us what you have tried and what error did you get.

    Best Regards,

    Edward

    Monday, July 10, 2017 3:19 AM