Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Creating Soap Request in c#

$
0
0

HI

I am trying to consume a service .

Can any one help me how to generate a soap request as follows.

 i want to construct a class and then serialize the class using soap formator and then post it to my service. I tried with the some online help but could not able to generate the required soap xml.

i am bit confused about the implementation .Can any one help me on this.

Thanks

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:iot="http://services.singp.com><soapenv:Header/><soapenv:Body><iot.performService><iot.input><iot.gsh><![CDATA[<header xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://services.singp.com"><GUID></GUID><CustID></CustID><RequestName></RequestName><TimeStamp>2017-06-09T10:49:03.49-05:00</TimeStamp></header>
            ]]></iot.gsh><iot.Body><![CDATA[<CustStatus xmlns="http://services.singp.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><CustStatusAttributes><CustID>str1234</CustID><Action>str1234</Action></CustStatusAttributes><CustStatusInformation><ClientOrderNumber>745</ClientOrderNumber></CustStatusInformation></CustStatus>

            ]]></iot.Body></iot.input></iot.performService></soapenv:Body></soapenv:Envelope>


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>