Skip to content
Advertisement

Tag: web-services

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

convert string to xml in PHP

When I use simplexml_load_file from a webservice, it returns But, I cannot parse it as XML to get the attributes. I need it to be formatted as such: and then this code works: I tried str_replace and decoding, without success. Answer The contents of the “string” element is an XML document itself – stored in an text node. You can

Why the SOAP request is empty?

I develop the system to export some data from the client’s side using the SOAP. I have a link to their staging wsdl, and implemented some kind of the SOAP client, but unfortunately my SOAP request is empty and the response is the error one. Link to WSDL: https://rewardsservices.griris.net/mapi/OrderManagementServices.svc?wsdl Operation called: exportPendingOrder Snippet of my SOAP Client: Log information (incl.

Call a REST API in PHP

Our client had given me a REST API to which I need to make a PHP call. But as a matter of fact, the documentation given with the API is very limited, so I don’t really know how to call the service. I’ve tried to Google it, but the only thing that came up was an already expired Yahoo! tutorial

Advertisement