#33567 [Csd->Bgs]: SoapClient works only when exceptions are turned off
| From: | tony2001@php.net | Date: | Sat, 16 Jul 2005 20:11:29 +0000 |
| Subject: | #33567 [Csd->Bgs]: SoapClient works only when exceptions are turned off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81949@lists.php.net to get a copy of this message | ||
ID: 33567
Updated by: tony2001@php.net
Reported By: please-no-spam at blueyonder dot co dot uk
-Status: Closed
+Status: Bogus
Bug Type: SOAP related
Operating System: Windows XP Pro
PHP Version: 5.1.0b2
Assigned To: dmitry
New Comment:
IIS problem -> bogus.
Previous Comments:
------------------------------------------------------------------------
[2005-07-16 09:22:49] please-no-spam at blueyonder dot co dot uk
Possible an IIS Problem
------------------------------------------------------------------------
[2005-07-12 11:32:43] dmitry@php.net
Hehe. Now I see.
The soap response is proper, but for some reason it enclosed into HTML.
You should have just:
<?xml version="1.0"
encoding="UTF-8"?> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:xmethods-delayed-quotes"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP
-ENV:Body><ns1:getQuoteResponse><Result
xsi:type="xsd:float">98.42</Result></ns1:getQuoteResponse></SOAP-ENV:Bod
y></SOAP-ENV:Envelope>
and not any HTML tags. I haven't idea who inserted these tags (your
SOAP server's script or IIS).
Please, verify you soap server PHP script and IIS configuration.
------------------------------------------------------------------------
[2005-07-11 23:55:26] please-no-spam at blueyonder dot co dot uk
From Cmd Line:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from 'C:\Program Files\Php\stockquote2.wsdl' in
C:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php:21
Stack trace:
#0 C:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(21):
SoapClient->__construct('stockquote2.wsd...', Array)
#1 {main}
thrown in
C:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php on line
21
***********************************************************
From Web Page using the browser:
SoapFault exception: [SOAP-ENV:Client] looks like we got no XML
document in
c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php:24 Stack
trace: #0
c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(24):
SoapClient->__call('getQuote', Array) #1
c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(24):
SoapClient->getQuote('ibm') #2 {main}
string(110) "HTTP/1.1 100 Continue Server: Microsoft-IIS/5.1 Date: Mon,
11 Jul 2005 21:44:35 GMT X-Powered-By: ASP.NET " string(660) " 98.42 "
string(868) "<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html>
<head> <title>Title here!</title> </head> <body> <?xml
version="1.0"
encoding="UTF-8"?> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:xmethods-delayed-quotes"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getQuoteResponse><Result
xsi:type="xsd:float">98.42</Result></ns1:getQuoteResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
</body> </html> "
*******************************************************
Hope this helps.
------------------------------------------------------------------------
[2005-07-11 10:20:02] dmitry@php.net
Seems ext/soap is right.
You server answer - string(660) " 98.42 " is not an XML.
However may be all XML was hidden. Please try to run client from
command line or use
var_dump(htmlspecialchars($x->__getLastResponse())).
------------------------------------------------------------------------
[2005-07-05 17:44:13] please-no-spam at blueyonder dot co dot uk
Dump Info From:
===============
var_dump($x->__getLastResponseHeaders());
var_dump($x->__getLastResponse());
*********************************************
string(110) "HTTP/1.1 100 Continue Server: Microsoft-IIS/5.1 Date: Tue,
05 Jul 2005 15:37:50 GMT X-Powered-By: ASP.NET " string(660) " 98.42 "
*********************************************
Exception Info:
==============
SoapFault exception: [SOAP-ENV:Client] looks like we got no XML
document in
c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php:24 Stack
trace: #0
c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(24):
SoapClient->__call('getQuote', Array) #1
c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(24):
SoapClient->getQuote('ibm') #2 {main}
Hope this helps.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33567
--
Edit this bug report at http://bugs.php.net/?id=33567&edit=1