Example of calling a Web service using the HttpWebRequest class in C #

Source: Internet
Author: User
Tags soap xmlns

The previous article is about the C # implementation of CMPP3.0, I in order to test the provision interface, using the System.Net.HttpWebRequest class will be "Misc System SMS SP Access Guide-Interface transformation fascicle" Document of the sample XML sent to the WEB Service and returns the corresponding RESP package (also a section of XML) from the WEB service, the following code is posted:

1, syncorderrelationreq package of XML content:

<soap-env:envelope xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd= "http://www.w3.org/2001/ XmlSchema "xmlns:soap-env=" http://schemas.xmlsoap.org/soap/envelope/"xmlns:soap-enc=" http://schemas.xmlsoap.org /soap/encoding/">
<SOAP-ENV:Header>
<transactionid xmlns= "http://www.monternet.com/dsmp/schemas/" >00110318384464</TransactionID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<syncorderrelationreq xmlns= "http://www.monternet.com/dsmp/schemas/" >
<Version>1.5.0</Version>
<MsgType>SyncOrderRelationReq</MsgType>
<Send_Address>
<DeviceType>0</DeviceType>
<DeviceID>0011</DeviceID>
</Send_Address>
<Dest_Address>
<DeviceType>400</DeviceType>
<DeviceID>0</DeviceID>
</Dest_Address>
<FeeUser_ID>
<UserIDType>1</UserIDType>
<MSISDN>13456781234</MSISDN>
<PseudoCode></PseudoCode>
</FeeUser_ID>
<DestUser_ID>
<UserIDType>1</UserIDType>
<MSISDN>13456781234</MSISDN>
<PseudoCode></PseudoCode>
</DestUser_ID>
<LinkID>SP</LinkID>
<ActionID>1</ActionID>
<ActionReasonID>1</ActionReasonID>
<SPID>419000</SPID>
<SPServiceID>-YYXXYYXX</SPServiceID>
<AccessMode>3</AccessMode>
<FeatureStr>MTA2NjIxNDQgREE=</FeatureStr>
</SyncOrderRelationReq>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.