#46121 [NEW]: SoapServer doesn't support SOAP 1.2 in WSDL-Mode
| From: | d dot reiche at gmx dot ch | Date: | Fri, 19 Sep 2008 09:35:21 +0000 |
| Subject: | #46121 [NEW]: SoapServer doesn't support SOAP 1.2 in WSDL-Mode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-129099@lists.php.net to get a copy of this message | ||
From: d dot reiche at gmx dot ch
Operating system: Linux
PHP version: 5.2.6
PHP Bug Type: SOAP related
Bug description: SoapServer doesn't support SOAP 1.2 in WSDL-Mode
Description:
------------
When creating a SoapServer in WSDL-Mode the server fails to import the
SOAP-1.2 compliant WSDL with a error message stating that the SOAP 1.2 HTTP
transport binding is not supported.
However this transport binding is necessary for clients in other languages
(i.e. axis2/java) to handle the messages correctly.
Currently, the SoapServer only handles SOAP 1.1 compliant bindings
correctly (using:
schema: http://schemas.xmlsoap.org/wsdl/soap/
transport: http://schemas.xmlsoap.org/soap/http
).
SOAP 1.2 compliant bindings require both of the following schemas to be
present:
schema: http://schemas.xmlsoap.org/wsdl/soap12/
transport: http://www.w3.org/2003/05/soap/bindings/HTTP/
Reproduce code:
---------------
Set up a WSDL file with the following entries:
<wsdl:definitions
...
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/"
...>
<!-- snip : types, messages and porttype -->
<wsdl:binding name="test" type="tns:test>
<soap:binding style="rpc"
transport="http://www.w3.org/2003/05/soap/bindings/HTTP/"
/>
<!-- snip: binding operations and the service element-->
Setup a SoapServer using:
<?php
$SoapServer = new SoapServer( 'test.wsdl',
array(
'soap_version'=> SOAP_1_2,
'uri' => 'http://example.org/test/',
'encoding' => 'UTF-8',
));
$SoapServer->setClass('test');
$SoapServer->handle();
?>
and a testclass that handles the requests.
Expected result:
----------------
the Service should be callable
Actual result:
--------------
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>WSDL</faultcode>
<faultstring>
SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport
'http://www.w3.org/2003/05/soap/bindings/HTTP/'
</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--
Edit bug report at http://bugs.php.net/?id=46121&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46121&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46121&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46121&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46121&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=46121&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46121&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46121&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46121&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46121&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46121&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46121&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46121&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46121&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46121&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46121&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46121&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46121&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46121&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46121&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46121&r=mysqlcfg