CaptainChainsaw Posted February 7, 2013 Share Posted February 7, 2013 Hi all, I've got this SOAP response: [ProcessApplicationDataResult] => <Response> <ApplicationDate>2/7/2013 10:16:36 AM</ApplicationDate> <IsApproved>False</IsApproved> <RedirectURL></RedirectURL> <Offer> <Amount></Amount> </Offer> </Response> How do I access the values? I've tried: $SOAP_RESPONSE->ProcessApplicationDataResult->ApplicationDate; $SOAP_RESPONSE->ApplicationDate; $SOAP_RESPONSE['ProcessApplicationDataResult']->ApplicationDate; This should be extremely easy to do. Thanks in advance, CaptainChainsaw Link to comment https://forums.phpfreaks.com/topic/274147-soap-response-getting-values-from-xml-should-be-very-simple/ Share on other sites More sharing options...
CaptainChainsaw Posted February 7, 2013 Author Share Posted February 7, 2013 Problem solved, this fixed it: $r=$SOAP_RESPONSE->ProcessApplicationDataResult; $data = simplexml_load_string($r); echo "app date: ".$data->ApplicationDate; Cheers Link to comment https://forums.phpfreaks.com/topic/274147-soap-response-getting-values-from-xml-should-be-very-simple/#findComment-1410713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.