'send_message' Request Example
If you select the Allow basic access authentication check box from the Message Scenario, Delivery Channels screen, then the user credentials are sent using the standard HTTP header "Authorization" in the request. Also, the <user> SOAP structure is sent in the body of the request. The client application can either use the standard HTTP header "Authorization" or the <user> SOAP structure to send user credentials in the request.
Authorization: Basic YnJjLnJvb3Q6MQ==
Host: 10.175.207.217
Content-Length: 832
Accept-Charset: utf-8
SOAPAction: "agent_service/send_message"
Keep-Alive: 0
User-Agent: TOA Server
Connection: close
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/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/"
xmlns:ns1="urn:toatech:agent">
<soapenv:Body>
<urn:send_message>
<urn:user>
<urn:now>2011-11-23T15:50:23+00:00</urn:now>
<urn:login>user_name</urn:login>
<urn:company>company_name</urn:company>
<urn:auth_string>67c5900a04abc54132a52da8a2320be2</urn:auth_string>
</urn:user>
<urn:messages>
<urn:message>
<urn:app_host>service.example.com</urn:app_host>
<urn:app_port>443</urn:app_port>
<urn:app_url>/soap/</urn:app_url>
<urn:message_id>2006</urn:message_id>
<urn:address>someone@examplemail.com</urn:address>
<urn:send_to>2011-11-24 01:59:00</urn:send_to>
<urn:subject></urn:subject>
<urn:body>{
"appt_number" : "XXX1234",
"name":"Rakesh Ivanov",
"phone": "1234567"
}</urn:body>
</urn:message>
</urn:messages>
</urn:send_message>
</soapenv:Body>
</soapenv:Envelope>
If you do not select the Allow basic access authentication check box, the standard HTTP header is not used in the request and the client application can use the <user> SOAP structure for authentication.
Host: 10.175.207.217
Content-Length: 832
Accept-Charset: utf-8
SOAPAction: "agent_service/send_message"
Keep-Alive: 0
User-Agent: TOA Server
Connection: close
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/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/"
xmlns:ns1="urn:toatech:agent">
<soapenv:Body>
<urn:send_message>
<urn:user>
<urn:now>2011-11-23T15:50:23+00:00</urn:now>
<urn:login>user_name</urn:login>
<urn:company>company_name</urn:company>
<urn:auth_string>67c5900a04abc54132a52da8a2320be2</urn:auth_string>
</urn:user>
<urn:messages>
<urn:message>
<urn:app_host>service.example.com</urn:app_host>
<urn:app_port>443</urn:app_port>
<urn:app_url>/soap/</urn:app_url>
<urn:message_id>2006</urn:message_id>
<urn:address>someone@examplemail.com</urn:address>
<urn:send_to>2011-11-24 01:59:00</urn:send_to>
<urn:subject></urn:subject>
<urn:body>{
"appt_number" : "XXX1234",
"name":"Rakesh Ivanov",
"phone": "1234567"
}</urn:body>
</urn:message>
</urn:messages>
</urn:send_message>
</soapenv:Body>
</soapenv:Envelope>