Service


Kliknij tutaj, aby uzyskać pełną listę operacji.

dodawanie

Dodawanie liczb double.

Test

Aby przetestować operację przy użyciu protokołu HTTP POST, kliknij przycisk Wywołaj.
Parametr Wartość
x:
y:

SOAP 1.1

Poniżej zamieszczono przykładowe żądanie i odpowiedź SOAP 1.1. Zamiast symboli zastępczych należy podać rzeczywiste wartości.

POST /www/serwis/service.asmx HTTP/1.1
Host: argo.umg.edu.pl
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://argo.umg.edu.pl/www/serwis/dodawanie"

<?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>
    <dodawanie xmlns="http://argo.umg.edu.pl/www/serwis/">
      <x>double</x>
      <y>double</y>
    </dodawanie>
  </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="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>
    <dodawanieResponse xmlns="http://argo.umg.edu.pl/www/serwis/">
      <dodawanieResult>double</dodawanieResult>
    </dodawanieResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

Poniżej zamieszczono przykładowe żądanie i odpowiedź SOAP 1.2. Zamiast symboli zastępczych należy podać rzeczywiste wartości.

POST /www/serwis/service.asmx HTTP/1.1
Host: argo.umg.edu.pl
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>
    <dodawanie xmlns="http://argo.umg.edu.pl/www/serwis/">
      <x>double</x>
      <y>double</y>
    </dodawanie>
  </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>
    <dodawanieResponse xmlns="http://argo.umg.edu.pl/www/serwis/">
      <dodawanieResult>double</dodawanieResult>
    </dodawanieResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

Poniżej zamieszczono przykładowe żądanie i odpowiedź HTTP GET. Zamiast symboli zastępczych należy podać rzeczywiste wartości.

GET /www/serwis/service.asmx/dodawanie?x=string&y=string HTTP/1.1
Host: argo.umg.edu.pl
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<double xmlns="http://argo.umg.edu.pl/www/serwis/">double</double>

HTTP POST

Poniżej zamieszczono przykładowe żądanie i odpowiedź HTTP POST. Zamiast symboli zastępczych należy podać rzeczywiste wartości.

POST /www/serwis/service.asmx/dodawanie HTTP/1.1
Host: argo.umg.edu.pl
Content-Type: application/x-www-form-urlencoded
Content-Length: length

x=string&y=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<double xmlns="http://argo.umg.edu.pl/www/serwis/">double</double>