CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- Запрос
- POST /History/HistoryService.asmx HTTP/1.1
- Host: https://217.117.65.147:81
- Content-Type: text/xml; charset=utf-8
- Content-Length: length
- SOAPAction: "https://217.117.65.147:81/SaveMessage"
- <?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>
- <SaveMessage xmlns="https://217.117.65.147:81/">
- <type>string</type>
- <client_name>string</client_name>
- <mobilePhone>string</mobilePhone>
- <comment>string</comment>
- <id_manager>string</id_manager>
- <referal>string</referal>
- <sourceMessage>AGENTPORTAL-API</sourceMessage>
- <request_id>string</request_id>
- </SaveMessage>
- </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>
- <SaveMessageResponse xmlns="https://217.117.65.147:81/">
- <SaveMessageResult>string</SaveMessageResult>
- </SaveMessageResponse>
- </soap:Body>
- </soap:Envelope>