#48165 [NEW]: SoapClient and external import in WSDL make ns1, ns2, ns3 alias
| From: | apaella at gmail dot com | Date: | Wed, 06 May 2009 15:31:59 +0000 |
| Subject: | #48165 [NEW]: SoapClient and external import in WSDL make ns1, ns2, ns3 alias | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-136907@lists.php.net to get a copy of this message | ||
From: apaella at gmail dot com
Operating system: all
PHP version: 5.2.9
PHP Bug Type: Unknown/Other Function
Bug description: SoapClient and external import in WSDL make ns1, ns2, ns3 alias
Description:
------------
1) When a wsdl import external xsd, bad ns1:"defaultnamespace", Envelope
namespace bindings iscreated. Is there a way to drop it off?
2) Impossible to add custom namespace bindings to the root element
See
http://cert.webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/OTA_CancelLLSRQ.wsdl
for a sample WSDL
Reproduce code:
---------------
<?php
$objClient = new SoapClient(
"http://cert.webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/OTA_CancelLLSRQ.wsdl"
,array('trace' => 1
,'exceptions' => 0
, 'encoding' => 'utf-8'
)
);
$objClient->__setLocation("https://cert.webservices.sabre.com/tsts");
$xml =
'<OTA_CancelRQ />';
$soapvar = new SoapVar($xml, XSD_ANYXML);
$objResponse = $objClient->__soapCall("OTA_CancelRQ", array($soapvar));
var_dump($objClient->__getLastRequest());
Expected result:
----------------
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eb="http://www.ebxml.org/namespaces/messageHeader"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
Actual result:
--------------
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://webservices.sabre.com/sabreXML/2003/07">
--
Edit bug report at http://bugs.php.net/?id=48165&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48165&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48165&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48165&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48165&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48165&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48165&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48165&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48165&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48165&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48165&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48165&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48165&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48165&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48165&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48165&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48165&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48165&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48165&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48165&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48165&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48165&r=mysqlcfg