xml - php SoapClient, __soapCall and __getLastRequest / __getLastResponse -
i used downloaded tool auto-create wrapper web service (fedex rate service) creates handy code base accessing service auto-generates class map , builds auto-loading data structure asking web service it's requirements , capabilities. creates wrapper 'extend' of soapclient
itself.
the problem is, makes separate service calls using abstract wrapper utilizes __soapcall
method. problem i've noticed apparently doesn't populate can retrieve xml calls themselves. whenever call __getlastrequest
or __getlastresponse
, return null though __soapcall('getrates', $args)
returns php object response service.
short of re-writing auto-generated code call $this->getrates($args)
or similar, there trick seeing xml used in request , returned in response when using __soapcall
?
nevermind - thought had trace defaulted true, , reason getting 'null' was defaulting false.
as long create interface instance second argument array('trace'=>1)
i'm getting xml now.
Comments
Post a Comment