Zend_Soap_Client doesn't work with proxy
Posted
by understack
on Stack Overflow
See other posts from Stack Overflow
or by understack
Published on 2010-05-28T21:19:04Z
Indexed on
2010/05/28
21:22 UTC
Read the original article
Hit count: 359
I'm accessing a SOAP web service like :
$wsdl_url = 'http://abslive3.timesgroup.com:8888/clsRSchedule.soap?wsdl' ;
$client = new Zend_Soap_Client($wsdl_url, array('proxy_host'=>"http://virtual-browser.25u.com" , 'proxy_port'=>80));
Since my shared server blocks port 8888, I'm using this proxy server. But Zend Soap Client tries to directly connect it.
Exception information:
Message: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://abslive3.timesgroup.com:8888/clsRSchedule.soap?wsdl' : failed to load external entity "http://abslive3.timesgroup.com:8888/clsRSchedule.soap?wsdl"
Stack trace:
#0 /home/..../library/Zend/Soap/Client/Common.php(51): SoapClient->SoapClient('http://abslive3...', Array)
#1 /home/..../library/Zend/Soap/Client.php(1024): Zend_Soap_Client_Common->__construct(Array, 'http://abslive3...', Array)
#2 /home/..../library/Zend/Soap/Client.php(1180): Zend_Soap_Client->_initSoapClientObject()
#3 /home/..../library/Zend/Soap/Client.php(1104): Zend_Soap_Client->getSoapClient()
#4 [internal function]: Zend_Soap_Client->__call('ReturnDataSet', Array)
What am I doing wrong?
© Stack Overflow or respective owner