Problem Consuming SOAP Service

The place for general PHP questions and hints for PHP on IBM i
Post Reply
Posts: 2
Joined: Thu Jun 16, 2016 9:06 pm

Problem Consuming SOAP Service

Post by mich9530 » 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) {
string(25) "Could not connect to host"
string(0) ""
string(86) "xxxxxxxx"
array(15) {
array(4) {
string(11) "__doRequest"
string(10) "SoapClient"
string(2) "->"
array(4) {
string(436) "
<?xml version="1.0" encoding="UTF-8"?>

Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: Problem Consuming SOAP Service

Post by erich_hieden » 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?

Post Reply