X
X
xlamys2015-07-29 17:12:58
PHP
xlamys, 2015-07-29 17:12:58

How to see SOAP request?

Good evening friends!

I'm tired of looking for a solution on Google. I decided to ask here, if anyone can suggest something on the topic, I would be very grateful.
There is a soap client in php. How to see what data in xml format it sends?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2015-07-29
@Ashlst

SoapUI

C
ChernovGV, 2015-08-12
@ChernovGV

$client    = new SoapClient($location, array('trace' => $trace, 'login' => $login, 'password' => $pass, 'soap_version' => 'SOAP_1_1'); 
        try {
            $request = $client->method_name();
            $last_request = $client->__getLastRequest();
        } catch (SoapFault $exception) {
            $last_request = $client->__getLastRequest();
        }

$last_request - Last envelope in XML format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question