Inspect XML created by PHP SoapClient call before/without sending the request

前端 未结 3 1413
忘掉有多难
忘掉有多难 2020-12-04 11:35

The question: Is there a way to view the XML that would be created with a PHP SoapClient function call BEFORE you actually send the request?

background:

I am

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 11:54

    I don't believe there is a way that you'll be able to see any XML that's being created... mainly because the function is failing on it's attempt to create/pass it.

    Not sure if you tried already, but if you're having trouble trying to decide what exactly you need to pass into the function you could use:

    $client->__getTypes();

    http://us3.php.net/manual/en/soapclient.gettypes.php

    Hope this helps!

提交回复
热议问题