Problem Consuming SOAP Service

The place for general PHP questions and hints for PHP on IBM i

Problem Consuming SOAP Service

Postby mich9530 on Fri Jun 17, 2016 6:26 pm

I am trying to use Zend_Soap_Client to consume a web service we have created. It works without issue in SOAP UI however when I run it from the Zend_Soap_Client I get a "Could not connect to host" error. The uri is embedded in the WSDL file so I do not understand this issue. Is there something that needs to be included (library etc.) or configured on the server? The fact that it is working in SOAP UI has me perplexed why it isn’t working here. Any ideas would be helpful.

object(SoapFault)#1386 (9) {
["message":protected]=>
string(25) "Could not connect to host"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(86) "xxxxxxxx"
["line":protected]=>
int(995)
["trace":"Exception":private]=>
array(15) {
[0]=>
array(4) {
["function"]=>
string(11) "__doRequest"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(4) {
[0]=>
string(436) "
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:env=xxxxx"
xmlns:ns1="xxxxxxxx">
<env:Body>
<ns1:f998t>
<arg0>
<WSKDIST>V40</WSKDIST>
<WSKTYPE>FTC</WSKTYPE>
<WSKVALUE>0004</WSKVALUE>
<WSKLIB>DTA106</WSKLIB>
</arg0>
</ns1:f998t>
<param1>
<item>
<key>soap_version</key>
<value>1</value>
</item>
<item>
<key>cache_wsdl</key>
<value>false</value>
</item>
</param1>
</env:Body>
</env:Envelope>
mich9530
 
Posts: 2
Joined: Thu Jun 16, 2016 9:06 pm

Re: Problem Consuming SOAP Service

Postby erich_hieden on Mon Jun 20, 2016 2:15 pm

Just shooting from my hip: Have you defined the DNS-setting on your IBM i? Can you ping SOAP host from the command line?
erich_hieden
 
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am


Return to PHP Questions / Hints

Who is online

Users browsing this forum: No registered users and 1 guest