AmootSMSWebService2


Click here for a complete list of operations.

CalculatePatternMessagePrice

Test

The test form is only available for methods with primitive types as parameters.

SOAP 1.1

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

POST /webservice2.asmx HTTP/1.1
Host: portal.amootsms.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CalculatePatternMessagePrice"

<?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>
    <CalculatePatternMessagePrice xmlns="http://tempuri.org/">
      <UserName>string</UserName>
      <Password>string</Password>
      <Mobile>string</Mobile>
      <PatternCodeID>int</PatternCodeID>
      <PatternValues>
        <string>string</string>
        <string>string</string>
      </PatternValues>
    </CalculatePatternMessagePrice>
  </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>
    <CalculatePatternMessagePriceResponse xmlns="http://tempuri.org/">
      <CalculatePatternMessagePriceResult>int</CalculatePatternMessagePriceResult>
    </CalculatePatternMessagePriceResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

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

POST /webservice2.asmx HTTP/1.1
Host: portal.amootsms.com
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>
    <CalculatePatternMessagePrice xmlns="http://tempuri.org/">
      <UserName>string</UserName>
      <Password>string</Password>
      <Mobile>string</Mobile>
      <PatternCodeID>int</PatternCodeID>
      <PatternValues>
        <string>string</string>
        <string>string</string>
      </PatternValues>
    </CalculatePatternMessagePrice>
  </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>
    <CalculatePatternMessagePriceResponse xmlns="http://tempuri.org/">
      <CalculatePatternMessagePriceResult>int</CalculatePatternMessagePriceResult>
    </CalculatePatternMessagePriceResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /webservice2.asmx/CalculatePatternMessagePrice?UserName=string&Password=string&Mobile=string&PatternCodeID=string&PatternValues=string&PatternValues=string HTTP/1.1
Host: portal.amootsms.com
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>

HTTP POST

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

POST /webservice2.asmx/CalculatePatternMessagePrice HTTP/1.1
Host: portal.amootsms.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=string&Password=string&Mobile=string&PatternCodeID=string&PatternValues=string&PatternValues=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>