[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SoapClient::__construct error



Hey

Without sounding to grumpy, would it be to much to ask that you READ the
errors before you ask the mailing list ?

HTTP/1.1 404 Not Found

Pretty much says that is wrong. It cannot load the WSDL, and thus you cannot
run your script.
If there futhermore is problems, you have to post copies, or links to a
working WSDL.

Your WSDL location is not working atm. so how should we ever be able to help
? ...

2007/10/11, kazi-hossain <kazi_neel@yahoo.com>:
>
>
> 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.
>
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Sincerely
  Claus Jørgensen, Denmark
  Mobil: +45 30 13 27 32
  http://www.dragons-lair.org

[PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux