SoapClient::__construct error

[email protected] (kazi-hossain)
Newsgroups php.soap
Message-ID <[email protected]>
hi 
I write a program, but when i run my program i got the following error:

Warning:
SoapClient::__construct(http://144.60.93.13:8200/esmwebsvc/services/SvcObjIntfService_SvcObjIntfPort)
[function.SoapClient---construct]: failed to open stream: HTTP request
failed! HTTP/1.1 404 Not Found in /usr/local/apache2/htdocs/test9.php on
line 15

Warning: SoapClient::__construct() [function.SoapClient---construct]: I/O
warning : failed to load external entity
"http://144.60.93.13:8200/esmwebsvc/services/SvcObjIntfService_SvcObjIntfPort"
in /usr/local/apache2/htdocs/test9.php on line 15

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:
Couldn't load from
'http://144.60.93.13:8200/esmwebsvc/services/SvcObjIntfService_SvcObjIntfPort'
in /usr/local/apache2/htdocs/test9.php:15 Stack trace: #0
/usr/local/apache2/htdocs/test9.php(15):
SoapClient->__construct('http://144.60.9...', Array) #1 {main} thrown in
/usr/local/apache2/htdocs/test9.php on line 15


here is my example code:

?php
$wsdlurl  ="http://ip:8200/abc/SvcObjIntfService_SvcObjIntfPort";
$login    = "abc";
$password = ""xxxx;
$name = "Kazi";
?>

<HTML><HEAD><TITLE>Call SAP WebService</TITLE></HEAD>
<BODY>
<?php
  $client = new SoapClient($wsdlurl,
                array('login'      => $login,
                      'password'   => $password,
                      'trace'      => true,
                      'exceptions' => true));

  try {
     echo $client->ZKB_TEST_RFC(array('INPUT_TEXT' => $name))->OUTPUT_TEXT;
  }
  catch (SoapFault $e) {
     echo 'Caught an Error: [' . $e->faultcode . '] - ' . $e->faultstring;
  }

     echo "<hr><pre>\n";
     echo "Request :\n".htmlspecialchars($client->__getLastRequest()) ."\n";
     echo "Response:\n".htmlspecialchars($client->__getLastResponse())."\n";
     echo "</pre>";

?>
</BODY></HTML>


-- 
View this message in context: http://www.nabble.com/SoapClient%3A%3A__construct-error-tf4608740.html#a13160436
Sent from the Php - Soap mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.