Call a Webservice from Visual Studio with an existing XML-file/string
How can I call an existing webservice (somewhere) from Microsoft Visual Studio 2008 (C#) with only a valid xml-string/fil开发者_开发技巧e?
I receive these xml-files from another system and this system can not call directly this webservice. These xml-files are 100% ok, but I want to know how to make the code.
Do I need to make the proxy classes?
Do you mean the WSDL file that describes the service? You can generate code using the wsdl.exe command line tool, and then add the generated files to your project. Visual Studio's web service discovering mechanism is geared towards adding services from known URLS.
I've used the Webrequest-method and fill the soap-message with the received xml-string and send it to the webservice.
So my question can be closed.
精彩评论