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>