SOAP > Uncaught SoapFault exception: [HTTP] SoapClient->__doRequest

Anyone shed light on why I'm getting this error?  I'm guessing it's because some of the paths in the WSDL don't resolve?

http://bizdirect-test.covad.com/extserver/com/covad/b2b/bizdirectapi/extserver/service/B2BGateway.jws?WSDL
PHP Fatal error:  Uncaught SoapFault exception: [HTTP] Could not connect to host in /home/t1shopper/www/dev/soap/covad1.php:13
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://localhos...', 'http://bizdirec...', 1, 0)
#1 [internal function]: SoapClient->__call('processServiceA...', Array)
#2 /home/t1shopper/www/dev/soap/covad1.php(13): SoapClient->processServiceAvailability(Array)\n#3 {main}
  thrown in /home/t1shopper/www/dev/soap/covad1.php on line 13, referer: http://www.t1shopper.com/dev/soap/

Open in new window

covad.txt
Geoff MillikanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Koma666Commented:
Hmm, for me the processServiceAvailability function does not take any parameter, or am I blind...
0
Geoff MillikanAuthor Commented:
Sorry, the script should really just read as the below.  (And yes, you're right but that would return a different error than what we're seeing.)
<?php
$client = new SoapClient("http://bizdirect-test.covad.com/extserver/com/covad/b2b/bizdirectapi/extserver/service/B2BGateway.jws?WSDL");
echo "<pre>";
var_dump($client->__getFunctions());
var_dump($client->__getTypes()); 
echo "</pre>";
?>

Open in new window

0
Koma666Commented:
if i try to call the service i get
 
IWAB0135E An unexpected error has occurred.
java.net.ConnectException
Connection refused: connect

So perhaps you have to sign in anywhere or your Ip has to be activated befpre you cann call this service.
0
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Koma666Commented:
Ah ok, there is an localhost in the endpoint so i can not connect :-)
0
Geoff MillikanAuthor Commented:
Right, that's the same issue I think I'm having?!  The WSDL is remote for me too.  I have no control over it.

So are you saying that the error I'm seeing is due to errors in the WSDL?
0
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
As of now yes the problem is with your WSDL end point

see this is what my Eclipse client says

IWAB0379E Unable to open http://bizdirect-test.covad.com/extserver/com/covad/b2b/bizdirectapi/extserver/service/B2BGateway.jws?WSDL.
IWAB0135E An unexpected error has occurred.
WSDLException
WSDLException: faultCode=OTHER_ERROR: Connection timed out: connect

Just inform the same to the service providers I think they need to Change that localhost to some public Ip or they need to use WS Addressing to handle this situation.  
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geoff MillikanAuthor Commented:
Thanks guys for your answers, I'm still working on this...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.