Asp.net mobile phone number retrieval interface

Source: Internet
Author: User
Tags http post soap xmlns

Asp tutorial. net mobile phone number acquisition interface


Obtain information about the province, region, and mobile phone card type of the mobile phone number in mainland China.
Input parameter: mobilecode = String (mobile phone number, minimum number of the first seven digits), userid = String (commercial user ID) free user is a null string; return data: string (mobile phone number: province city mobile phone card type ).


HTTP 1.1
The following are examples of soap 1.2 requests and responses. The displayed placeholder must be replaced with the actual value.

Post/webservices/mobilecodews. asmx http/1.1
Host: webservice.webxml.com.cn
Content-type: text/xml; charset = utf-8
Content-length: length
Soapaction: "http://webxml.com.cn/getmobilecodeinfo"

<? Xml version = "1.0" encoding = "UTF-8"?>
<Soap: envelope xmlns: xsi = "the http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "the http://www.w3.org/2001/XMLSchema" xmlns: soap = "the http://schemas.xmlsoap.org/soap/envelope/">
<Soap: body>
<Getmobilecodeinfo xmlns = "http://webxml.com.cn/">
<Mobilecode> string </mobilecode>
<Userid> string </userid>
</Getmobilecodeinfo>
</Soap: body>
</Soap: envelope>
Http/1.1 200 OK
Content-type: text/xml; charset = utf-8
Content-length: length

<? Xml version = "1.0" encoding = "UTF-8"?>
<Soap: envelope xmlns: xsi = "the http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "the http://www.w3.org/2001/XMLSchema" xmlns: soap = "the http://schemas.xmlsoap.org/soap/envelope/">
<Soap: body>
<Getmobilecodeinforesponse xmlns = "http://webxml.com.cn/">
<Getmobilecodeinforesult> string </getmobilecodeinforesult>
</Getmobilecodeinforesponse>
</Soap: body>
</Soap: envelope>
HTTP 1.2
The following are examples of soap 1.2 requests and responses. The displayed placeholder must be replaced with the actual value.

Post/webservices/mobilecodews. asmx http/1.1
Host: webservice.webxml.com.cn
Content-type: application/soap + xml; charset = utf-8
Content-length: length

<? Xml version = "1.0" encoding = "UTF-8"?>
<Soap12: envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: soap12 = "http://www.w3.org/2003/05/soap-envelope">
<Soap12: body>
<Getmobilecodeinfo xmlns = "http://webxml.com.cn/">
<Mobilecode> string </mobilecode>
<Userid> string </userid>
</Getmobilecodeinfo>
</Soap12: body>
</Soap12: envelope>
Http/1.1 200 OK
Content-type: application/soap + xml; charset = utf-8
Content-length: length

<? Xml version = "1.0" encoding = "UTF-8"?>
<Soap12: envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: soap12 = "http://www.w3.org/2003/05/soap-envelope">
<Soap12: body>
<Getmobilecodeinforesponse xmlns = "http://webxml.com.cn/">
<Getmobilecodeinforesult> string </getmobilecodeinforesult>
</Getmobilecodeinforesponse>
</Soap12: body>
</Soap12: envelope>
Http get
The following are examples of http get requests and responses. The displayed placeholder must be replaced with the actual value.

Get/webservices/mobilecodews. asmx/getmobilecodeinfo? Mobilecode = string & userid = string http/1.1
Host: webservice.webxml.com.cn

Http/1.1 200 OK
Content-type: text/xml; charset = utf-8
Content-length: length

<? Xml version = "1.0" encoding = "UTF-8"?>
<String xmlns = "http://webxml.com.cn/"> string </string>
Http post
The following are examples of http post requests and responses. The displayed placeholder must be replaced with the actual value.

Post/webservices/mobilecodews. asmx/getmobilecodeinfo http/1.1
Host: webservice.webxml.com.cn
Content-type: application/x-www-form-urlencoded
Content-length: length

Mobilecode = string & userid = string
Http/1.1 200 OK
Content-type: text/xml; charset = utf-8
Content-length: length

<? Xml version = "1.0" encoding = "UTF-8"?>
<String xmlns = "http://webxml.com.cn/"> string </string>

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.