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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.