No return value for a soap call

Source: Internet
Author: User
Tags soapui
No return value for a soap call I use $ result = $ this-> CLIENT-> GetOrders (new SoapVar ($ XMLSearch, XSD_ANYXML); call the soap GetOrders function without return 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?


Reply to discussion (solution)

Unable to test because the user name and password are missing

Unable to test because the user name and password are missing


The user name and password are from the company. how do you want to test them? I can post the return value. thank you.

You didn't meanNo return value?
SinceYou can post the returned values.
What else do you want to ask?

1. the return value of _ getlastresponse:
True1467API Dev \ APi LiveAPI Dev \ APi Live14672013-04-08t06:44: 07.46Describeds live2013-03-21T14: 32: 11.8236565 SGD 2063.86 6581HotelsCX13Describeds28433336 SGD 327.06 202.54000000000002 EUR 2013-05-09T00: 00: 00 2013-05-16T00: 00: 00 SGD 2063.86 1278.08 EUR 2013-05-15T00: 00: 00 2013-05-17T00: 00: 00 SGD 2063.86 1278.08 EUR 2013-05-18T00: 00: 00 No show 2013-05-18T00: 00: 002013-05-25T00: 00: 00633 Toyo, Kotoku, Tokyo, 1350016 JapanTokyoJP81 to 3-568357754032332East 21+ 81 3 5683 56834135001626081AvailableRoom only ROStandard 26081 User Mr. Test Adult 26083 User Mrs. Dummy Adult ROOM ONLYDOUBLE SEMIDOUBLEDOUBLE SEMIDOUBLEDoubleAvailableRoom only ROStandard 26082 Stig Sir The Adult ROOM ONLYSINGLE STANDARDSINGLE STANDARDSingle1467API Dev \ APi LiveAPI Dev \ APi Live14672013-04-08t06:43: 40.637GTA live B2B2013-03-28T09: 35: 56.3076990 SGD 302 7006HotelsCX12GTAIiVpcP5twk + dJP + ts3G + aQ =993592 SGD 151 151 SGD 2013-06-02T00: 00: 00 2013-06-07T00: 00: 00 Cancellation SGD 302 302 SGD 2013-06-08T00: 00: 00 No show 2013-06-08T00: 00: 002013-06-10T00: 00: 00730 Yellowst Rd, Cody, 824141123, Wy, UsCODY YELLOWSTONE NATIONAL PARK AREAUS1-307-52762144088151Super 8 Cody1-307-5276214227793AvailableRoom only ROStandard 27793 Rosete Mr Vincent Adult 27794 Conde Mr Jr Adult Room onlyStandard Queen Non SmokingStandard Queen Non SmokingQueen
2. no return value for getorder
3. the return value of _ getFunctions:
Array (4 ){
[0] =>
String (38) "UNKNOWN GetOrders (UNKNOWN $ parameters )"
[1] =>
String (41) "UNKNOWN GetFinReport (UNKNOWN $ parameters )"
[2] =>
String (38) "UNKNOWN GetOrders (UNKNOWN $ parameters )"
[3] =>
String (41) "UNKNOWN GetFinReport (UNKNOWN $ parameters )"
}
4. _ getlastrequest return value:

**** **** 2013-01-12T00: 00: 0002013-05-12T00: 00: 00

You didn't meanNo return value?
SinceYou can post the returned values.
What else do you want to ask?


I tested it with soapui and can return a normal result. Is the return value of soapui returned through soapclient's _ getLastResponse instead of getorders?

Without testing, how do I know if you write correctly?

Without testing, how do I know if you write correctly?


Thank you. I seem to know the problem. I tested it. each of them has two sets of functions. there is a problem with one set and there is no returned value.

I thought the problem was found and the problem was not found. There are two servers, but https: // rd00155d3a2faa/BookingServices/OrdersService. all requests of svc have no response, not just getOrder.

Is this problem solved now? I also encountered this problem.

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.