Answer the question
In order to leave comments, you need to log in
SOAP request in PHP how to access attributes?
Hello. Please help me with the request.
I make a request to one service through the standard PHP SoapClient (which I can’t say, unfortunately), the problem is this:
the API requires, let’s say, to send an XML of the form:
<?xml version="1.0" encoding="utf-8"?>
<soap:Header>
...
</soap:Header>
<soap:Body>
<QT_Param>
<My_Param>какой то текст</My_Param >
</QT_Param>
</soap:Body>
$client = new SoapClient($url, array('trace' => 1, 'exception' => 1, 'soap_version' => SOAP_1_1));
$ws_request['My_Param'] ='какой то текст';
$r = $client->ping($ws_request);
<soap:Body>
<QT_Param>
</QT_Param>
</soap:Body>
<QT_Param myToken="1234">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question