|
Service1
ClickHereTo obtain the complete list of operations.
Add Test
To test the operation using the http post protocol, click the "call" button.
HTTP 1.1
The following are examples of soap 1.2 requests and responses. ThePlaceholderIt must be replaced with the actual value.
Post or service1.asmx HTTP/1.1
HOST: localhost
Content-Type: text/XML; charset = UTF-8
Content-Length:Length
Soapaction: "http://tempuri.org/Add"
<? 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>
<Add xmlns = "http://tempuri.org/">
<A>Int</A>
<B>Int</B>
</Add>
</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>
<Addresponse xmlns = "http://tempuri.org/">
<Addresult>Int</Addresult>
</Addresponse>
</Soap: Body>
</Soap: envelope> HTTP 1.2
The following are examples of soap 1.2 requests and responses. ThePlaceholderIt must be replaced with the actual value.
Post or service1.asmx HTTP/1.1
HOST: localhost
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>
<Add xmlns = "http://tempuri.org/">
<A>Int</A>
<B>Int</B>
</Add>
</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>
<Addresponse xmlns = "http://tempuri.org/">
<Addresult>Int</Addresult>
</Addresponse>
</Soap12: Body>
</Soap12: envelope> HTTP POST
The following are examples of http post requests and responses. ThePlaceholderIt must be replaced with the actual value.
Post/service1.asmx/addhttp/1.1
HOST: localhost
Content-Type: Application/X-WWW-form-urlencoded
Content-Length:Length
A=String&B=String
HTTP/1.1 200 OK
Content-Type: text/XML; charset = UTF-8
Content-Length:Length
<? XML version = "1.0" encoding = "UTF-8"?>
<Int xmlns = "http://tempuri.org/">Int</Int> |