I’m building a web service, and it uses an external web services (example http://www.webservicex.com/stockquote.asmx?WSDL) , how do I consume the external web service inside the web service im building?
I’m building a web service, and it uses an external web services (example http://www.webservicex.com/stockquote.asmx?WSDL
Share
As others have stated, add a web reference to your project.
This will give you a namespace that you can use in your project. Here is a snippet from one of my Utility classes.
patweb is the name of my web reference. The web reference itself contains many classes. The R12_WebService class is the one that contains the web service methods outlined in the WSDL. The other classes and delegates are all eventargs and eventhandlers for our asynchronous methods.