I was not able to find same problem,Ihave Issue below.The Target is to show xml attributes values using soap message.PHP code looks like:
The XML I get from SOAP UI using same request has different structure:
I get Warning: simplexml_load_ string() expects parameter 1 to be string, object given in.?
Thanks for you help
Code:
$client = new SoapClient("https://domain.com/xml/listener.asmx?WSDL");
$Getresults = $client->GetFab(array('Username' => "anyuser", 'Password' => "anypassword", 'code' => "1108324"));
print_r($Getresults);
Code:
<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>
Code:
<pre class='xdebug-var-dump' dir='ltr'> <b>object</b>(<i>stdClass</i>)[<i>94</i>] <i>public</i> 'JobNumber' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>79593</font> <i>public</i> 'JobStatus' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'INVOICED'</font> <i>(length=8)</i> <i>public</i> 'ThirdPartyCode' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'CB0071'</font> <i>(length=6)</i> <i>public</i> 'CustomerName' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'BECK CRESPEL'</font> <i>(length=12)</i> <i>public</i> 'CustomerName_' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>''</font> <i>(length=0)</i> <i>public</i> 'Reference' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>1169910</font> <i>public</i> 'ContactSeq' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'106798'</font> <i>(length=6)</i> <i>public</i> 'Date' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'2015-04-08T00:00:00'</font> <i>(length=19)</i> <i>public</i> 'DateCompleted' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'0001-01-01T00:00:00'</font> <i>(length=19)</i> <i>public</i> 'Title' <font color='#888a85'>=></font> <small>string</small> <font color='#cc0000'>'E : LIVRET D ACCUEIL - WIREO - 70 PAGES (35 FEUILLETS) - 21 X 14.8 CM - Q RV'</font> <i>(length=76)</i> <i>public</i> 'Quantity' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>200</font> <i>public</i> 'Product' <font color='#888a85'>=></font>
Comment