I am using SOAP webservices to retrieve records. I have managed to make a successful retrieval in XML, However I am having problems making the same call in PHP. How do I convert this xml code into php code?
<soap:Body>
<query xmlns="http://k.com/type">
<queryString>Comp_codeid = 0</queryString>
<entityname>Code</entityname>
</query>
</soap:Body>
and this is my php code:
//$data = new SoapVar($object, SOAP_ENC_OBJECT, NULL, NULL, NULL);
$data = new SoapVar($myId, SOAP_ENC_OBJECT, NULL, NULL, NULL);
// Prepare the data for sending
$company = array( 'queryString' =>$data,'entityname' => 'code',);