Skip to content

Tag: wsdl

How to avoid SoapClient PHP to decode base64 response result?

Am using SoapClient (PHP) to retrieve data from a remote webservice. And I am able to communicate perfectly with this webservice. The request am sending is supposed to retrieve base64 encoded image data. It turned out that SoapClient automatically decode base64 response and the result looks like this: My question is how prevent this automatic decoding by SoapClient. My REST

Wrong namespaces assigned by PHP SOAP Client

I have little to no experience in SOAP. And I am interacting with a third party wsdl web service. For this I use PHP’s native SoapClient. When I send the request I’m getting an error response that states the following: The relevant parts of the autogenerated XML are as follow: If I take the autogenerated XML, change the namespace alias

PHP WSDL response as object

I am sending a request for response to a WSDL in PHP (code below). The response is structured in a way that I’m not sure how to extract data from it. It comes back as an object with the XML inside. Is there a standard way of parsing the XML of this object? Here is my code: ?> Here is