ConvertRub2Euro

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.

Parameter Value
num:  
kurs:  
   

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /myWebService/Service1.asmx HTTP/1.1Host: localhostContent-Type: text/xml; charset=utf-8Content-Length: length SOAPAction: "http://localhost/myWebServices/convertRub2Euro" <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <convertRub2Euro xmlns="http://localhost/myWebServices"> <num> double </num> <kurs> double </kurs> </convertRub2Euro> </soap:Body></soap:Envelope>HTTP/1.1 200 OKContent-Type: text/xml; charset=utf-8Content-Length: length <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <convertRub2EuroResponse xmlns="http://localhost/myWebServices"> <convertRub2EuroResult> string </convertRub2EuroResult> </convertRub2EuroResponse> </soap:Body></soap:Envelope>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /myWebService/Service1.asmx/convertRub2Euro HTTP/1.1Host: localhostContent-Type: application/x-www-form-urlencodedContent-Length: length num = string & kurs = string HTTP/1.1 200 OKContent-Type: text/xml; charset=utf-8Content-Length: length <?xml version="1.0" encoding="utf-8"?><string xmlns="http://localhost/myWebServices"> string </string>

Введем сумму равную 12 и курс равный 12 в ресультат е после нажатия на кнопку invoke будет выдан результат в виде xml

<?xml version="1.0" encoding="utf-8"?>

<string xmlns=" http://localhost/myWebServices ">144</string>

Здесь содержится посчитанный результат и тип данных которые необходимо использовать при работе с ними



Понравилась статья? Добавь ее в закладку (CTRL+D) и не забудь поделиться с друзьями:  



double arrow
Сейчас читают про: