Php soapclient returns null




















Maybe using some other library like nu-soap would help? There seems to be more doc online about it. Using an array to pass the parameter does not work, SOAP expects separate arguments. No exception is thrown whatsoever. I found this whole thing pretty confusing when I started using the SoapClient libraries in php.

The proper way to format this stuff is as follows:. Such that you reference the returns like this…. No idea where to go next. Sorry - SOAP is enabled on the server and using other methods without parameters brings back a result object which I'm able to parse with no problems. Operation type: Request-response. The endpoint receives a message, and sends a correlated message.

I've now implemented a work-around using the nusoap library which returns an array of results. Whilst it doesn't answer the original question, it does do what I wanted it to do originally. Okay, i will also try to find out other way. Thanks for replying back with solution — neeraj. Chambers Joseph. Chambers 21 5 5 bronze badges. Jose Jose 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

The code for the soap call looks like:. The problem is the SSL setup, the error that is thrown when I try to call your code on my server is as follows:. I am assuming you are trying to get the code to work with a self signed certificate as indicated in your SSL array inside of the request, however it looks like the SoapClient is not paying attention to it and throwing an error anyway. So my solution would be to either buy an SSL very cheap now days, try sites such as namecheap etc Lastly I noticed a typo, in your code one line before last you have ; which should read ;.

For an testing-server it's sometimes not worth the effort, so maybe this link help you to use a little workarround, to got your SOAP-Request working without need to create a fully-validated SSL-Certificat:.

You can ignore it perfectly, as server certificate it's mainly to avoid phishing, and I understand that url it's really the one you're attempting to reach. In command line curl, this is realized with the -k option. In php, SoapClient exactly, you can use this exactly your problem, check third answer, and see what says about PHP7. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more.



0コメント

  • 1000 / 1000