E
E
evilelf2016-12-10 18:45:42
PHP
evilelf, 2016-12-10 18:45:42

How to write a SOAP client correctly?

You need to make such a request:
How to write it in php correctly?

<?xml version="1.0" encoding="utf-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ei="http://schemas.compassplus.com/mc/checkout.xsd"> 
<SOAP-ENV:Header/> 
<SOAP-ENV:Body> 
<ei:Request Language="RU" Challenge="f21ce99afd7c1883" PwdHashBlock="65EFB770FD7EEACE259FC7ECF36C8BF1A96B1C17"> 
<ei:Login>user1</ei:Login> 
<ei:CheckLogin/> 
</ei:Request> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-12-11
@Rou1997

SOAP - это HTTP.
Заголовки и т.п. никакие не нужны? Тогда попробуйте просто file_put_contents, отправляйте строку с этим XML.
Если нужны заголовки и т.п., то лучше curl, и проверяйте сниффером какой получается запрос, всё.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question