2 years ago

Parsing soap response in PHP

Posted 2 years ago by bobmyles

I am new in Soap Web Services. I am trying to get the values from a soap request;

        <?xml version="1.0" encoding="UTF-8"?>
           <soapenv:Envelope xmlns:soapenv="">
              <c2b:C2BPaymentValidationRequest xmlns:c2b="">

I tried making an object

$xml=simplexml_load_string($response) or die("Error: Cannot create object");

So that I can read the values as below;


But it fails here die("Error: Cannot create object");

Or even better how can I change the soap request to json and get the values? Anyone?

Please sign in or create an account to participate in this conversation.