What should I do if there is no return value for a soap call?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.