Soap call no return value value
This post was last edited by rosecshly0928 on 2013-05-08 12:36:30
I use $result = $this->client->getorders (new Soapvar ($XMLSearch, Xsd_anyxml)), call the getorders function of soap, no return value, but I use $ This->client->__getlastrequest (); can get the XML format of the result I want.
1. I have a new soapclient,
$this->client = new SoapClient (' http://services.carsolize.com/BookingServices/OrdersService.svc?wsdl ',
Array
/* "soapaction" = "urn:iordersservice/getorders", */
' Exceptions ' = true,
"Trace" = 1,
)
);
2. Send the request:
try{
$XMLSearch = '
'. Carsolize_password. ' '. Carsolize_username. '
'. $this->input_validation[' VALID ' [' date_from ']. ' t00:00:000 '. $this->input_validation[' VALID ' [' date_to ']. ' t00:00:00
';
$result = $this->client->getorders (
New Soapvar ($XMLSearch, Xsd_anyxml)
);
Var_dump ($this->client->__getfunctions ());
echo $this->client->__getlastresponse ());
Var_dump ($this->client->__gettypes ());
echo $result;
}catch (Exception $e) {
echo $e->getmessage ();
}
3. $result is empty, no print, no error, but $this->client->__getlastresponse () has a value
I don't know where the problem is, why Getlastresponse value and GetOrder no value?
------Solution--------------------
The user name and password are missing and cannot be tested