none
How to create a SOAP request with the help of WSDL and receive SOAP response? RRS feed

  • Question

  • I am very new to WCF. I want to send a SOAP request to a webservice and receive response from the same. The WSDL is: http://content.domain.com/ContentService?wsdl. I have added this wsdl to ServiceReference. What's next ?

    SOAP request i need to build should be look like-

       
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:con="http://content.domain.com" xmlns:api="http://api.content.domain.com">
        <soapenv:Header />
        <soapenv:Body>
        <con:get1>
        <con:in0>
        <api:AID>89575</api:AID>
        <api:clientLoginID>abc</api:clientLoginID>
        <api:domain>en</api:domain>
        </con:in0>
        </con:get1>
        </soapenv:Body>
        </soapenv:Envelope>


    There will be a Soap response to this request which I need to parse and get the values from it. How can I achieve this in c#?
    Monday, April 22, 2013 11:00 AM

Answers