Parse SOAP web service XML response

44
February 12, 2019, at 7:30 PM

I´m consuming a WS and it gives me data as XML. When the response returns to my PHP it came as Object and not as XML. The XML is too large, how could I parse it to XML again and show it to the screen.

Sincerly I do not have an idea how to do that, I tried

$data = (array) $xml_response; 
//o tambien
$data = json_decode(json_encode($xml_response), true);

What is the fastest way? I don´t want to loop the object because as I said, it is too large, and it has objects inside (XML nodes).

The WS and the consume works fine, I got the data on $xml_response, What is the next step?

READ ALSO
How to extract in an array using Simple HTML Dom

How to extract in an array using Simple HTML Dom

I am trying to extract some values parsing html from a websiteWhere are many values with the same tag and when I try to extract them, I got back just "array" word

49
Best way to combine two tables in php [on hold]

Best way to combine two tables in php [on hold]

I'm working on a project where I want to be able to create a weekly calendar and display shifts for that week next to each employee's name

65
WP Acceptance and the composer.json file required

WP Acceptance and the composer.json file required

I am having trouble setting up WP Acceptance and would like some assistance pleaseIn the documentation it states that it is not required to use WP Local Docker so I have the basic required items installed already

69