Webservice problems, soap problems, response problems-please forgive me! Where is the great god?

Source: Internet
Author: User
Tags try catch
Webservice problems, soap problems, response problems-please forgive me! Where is the great god? How can I determine whether the request's GetInfo does not provide a response?
$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);

If all my parameters are correct, how can I determine that webservice does not respond? Didn't I return the data I want?


Reply to discussion (solution)

? Others ?? ??

? Others ?? ??

? Others ?? ??

How can I determine whether the request's GetInfo does not provide a response?

$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);

If all my parameters are correct, how can I determine that webservice does not respond? Didn't I return the data I want?


The difference between not responding and not returning data is that if no response is made, the request is not received, or is the result not returned?

Try {$ soap = new SoapClient ("http ://......? WSDL "); $ param = array (); $ xml = $ soap-> GetInfo ($ param);} catch (Exception $ e) {echo $ e-> getMessage (); // if an error occurs, it will arrive here}

Try {$ soap = new SoapClient ("http ://......? WSDL "); $ param = array (); $ xml = $ soap-> GetInfo ($ param);} catch (Exception $ e) {echo $ e-> getMessage (); // if an error occurs, it will arrive here}

Try {$ soap = new SoapClient ("http ://......? WSDL "); $ param = array (); $ xml = $ soap-> GetInfo ($ param);} catch (Exception $ e) {echo $ e-> getMessage (); // if an error occurs, it will arrive here}

How can I determine whether the request's GetInfo does not provide a response?

$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);

If all my parameters are correct, how can I determine that webservice does not respond? Didn't I return the data I want?


The difference between not responding and not returning data is that if no response is made, the request is not received, or is the result not returned?

How can I determine whether the request's GetInfo does not provide a response?

$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);

If all my parameters are correct, how can I determine that webservice does not respond? Didn't I return the data I want?


The difference between not responding and not returning data is that if no response is made, the request is not received, or is the result not returned?

Try catch to see if there is any problem.

Try {$ soap = new SoapClient ("http ://......? WSDL "); $ param = array (); $ xml = $ soap-> GetInfo ($ param);} catch (Exception $ e) {echo $ e-> getMessage (); // if an error occurs, it will arrive here}

Thank you. that's what I did.


How can I determine whether the request's GetInfo does not provide a response?

$soap = new SoapClient(“http://xxxxxxxxxWSDL”);$xml = $soap->GetInfo($param);

If all my parameters are correct, how can I determine that webservice does not respond? Didn't I return the data I want?


The difference between not responding and not returning data is that if no response is made, the request is not received, or is the result not returned?

The request is sent, no results are returned, or an error is reported on the server.

Try {$ soap = new SoapClient ("http ://......? WSDL "); $ param = array (); $ xml = $ soap-> GetInfo ($ param);} catch (Exception $ e) {echo $ e-> getMessage (); // if an error occurs, it will arrive here}


What is the difference between me and you?

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.