How to call asmx web service dynamically RRS feed

  • Question

  • User264732274 posted
    i often add asmx web service reference to my project and then i call the 3rd party web service. so i like to know how could i consume and call asmx web service dynamically without adding web service reference to client. please help me with code.
    if possible then please discuss all possible ways to call asmx web service from dotnet client. looking for details guidance. thanks
    Wednesday, March 18, 2015 3:30 AM


  • User-760709272 posted

    asmx services use the SOAP protocol so you have to understand the xml required to make the call, and how to make a SOAP request in general.  If you google "c# make soap request" you'll find some examples


    The easiest way to determine this stuff is to browse to the asmx service on your local machine to get the test client, as that will show you the xml you need to send and the xml you'll get back.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 18, 2015 5:25 AM

All replies