Soap call value without return value this post is Last edited by rosecshly0928 from 2013-05-0812: 36: 30 I use $ result & nbsp; $ this-& gt; CLIENT-& gt; GetOrders (new & nbsp; SoapVar ($ XMLSearch, XSD_ANYXML); no return value is returned when a soap call is called.
This post was last edited by rosecshly0928 at 12:36:30
I use $ result = $ this-> CLIENT-> GetOrders (new SoapVar ($ XMLSearch, XSD_ANYXML); call the GetOrders function of soap without returning a value, however, I use $ this-> CLIENT->__ getLastRequest (); to get the xml format of the expected result.
1. I have a new soapclient,
$ This-> CLIENT = new SoapClient ('http: // services.carsolize.com/BookingServices/OrdersService.svc? Wsdl ',
Array (
/* "SoapAction" => "urn: IOrdersService/GetOrders ",*/
'Exception' => true,
"Trace" => 1,
)
);
2. send a 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, nothing is printed, and no error is reported, but $ this-> CLIENT->__ getLastResponse () has a value
I don't know what the problem is. Why does getlastresponse have another value while getorder has no value?
------ Solution --------------------
Unable to test because the user name and password are missing