Unable to parse XML from PHP -


i not able find same problem,ihave issue below.the target show xml attributes values using soap message.php code looks like:

    $client = new soapclient("https://domain.com/xml/listener.asmx?wsdl"); $getresults = $client->getfab(array('username' => "anyuser", 'password' => "anypassword", 'code' => "1108324")); print_r($getresults); 

the xml soap ui using same request has different structure:

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> 

      <getjobresponse xmlns="http://www....> <getjobresult>             <number>79593</jobnumber>             <status>invoiced</jobstatus>             <code>cb0071</thirdpartycode>  > 

             <fin seq="422">                 <val>1</val>                 <att seq="732">                    <line>0</line>                    <val/>  $xml = simplexml_load_string($getresults); var_dump($getresults); 

i warning: simplexml_load_string() expects parameter 1 string, object given in.?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -