PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This webservice has to return an XML output based on which i'll allow or disallow the member to enter into my website's member section. But instead of getting an XML output I getthe following error
Since this is the first time I am accessing a webservice I am breaking my head over this . I will be very much obliged if someone could help me sort this thing.
I had a similar problem when connecting to a web service. I could access the WSDL fine, but I could not access the service. I found that the problem was a proxy server sitting between my local machine and the web service. I had to add the following parameters to my SoapClient instantiation call:
// Define proxyHost and proxyPort in a file global to your application or test.
// Then define an array of params for the SoapClient instantiation.
$params = array('trace' => true, 'proxy_host' => $proxyHost, 'proxy_port' => $proxyPort );
$client = new SoapClient('https://www.apta.org/AM/APTAAPPS/ComponentAuthWebService/aptamemberauthorize.cfc?WSDL', $params );
This did the trick for me. Do you know if you're sitting behind a proxy server?
Thanx for the reply, but I checked with the Client a few times and they specifically said that the above mentioned information are only required for connecting to the webservice.
So I tried printing the "Request" and "Response" in the catch section and the request get's printed except for the response. I believe that if it's behind a proxy then it won't be able to the return the request. Am I correct ?