#48165 [NEW]: SoapClient and external import in WSDL make ns1, ns2, ns3 alias
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: --- 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 = ''; $soapvar = new SoapVar($xml, XSD_ANYXML); $objResponse = $objClient->__soapCall("OTA_CancelRQ", array($soapvar)); var_dump($objClient->__getLastRequest()); Expected result: 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: -- 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
#47446 [Opn->Csd]: Error docdocument::schemaValidate a valid schema
ID: 47446 User updated by: apaella at gmail dot com Reported By: apaella at gmail dot com -Status: Open +Status: Closed Bug Type: DOM XML related Operating System: WIN XP PRO PHP Version: 5.3.0beta1 New Comment: updated libxml to version 2.7.3 and fixed. sorry for my mistake Previous Comments: [2009-02-19 08:18:19] apaella at gmail dot com Description: Trying to validate a valid XML (AltovaXML commandline & Liquid XML Studio says that) I got a "local complex type:The content type must specify a particle." error... Reproduce code: --- $xmlString= ' http://www.opentravel.org/OTA/2003/05"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; TimeStamp="2009-02-18T16:24:59" MaxResponses="5" Target="Production" Version="2008.02" SequenceNmbr="1" EchoToken="960" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 http://www.opentravel.org/2008B/OTA_AirAvailRQ.xsd";> 2009-03-10T20:00:00 '; $xdoc = new DomDocument(); $xdoc->loadXML($xmlString); $xdoc->schemaValidate("http://www.opentravel.org/2008B/ OTA_AirAvailRQ.xsd"); Expected result: A "valid schema" result Actual result: -- Warning : "local complex type:The content type must specify a particle." -- Edit this bug report at http://bugs.php.net/?id=47446&edit=1
#47446 [NEW]: Error docdocument::schemaValidate a valid schema
From: apaella at gmail dot com Operating system: WIN XP PRO PHP version: 5.3.0beta1 PHP Bug Type: DOM XML related Bug description: Error docdocument::schemaValidate a valid schema Description: Trying to validate a valid XML (AltovaXML commandline & Liquid XML Studio says that) I got a "local complex type:The content type must specify a particle." error... Reproduce code: --- $xmlString= ' http://www.opentravel.org/OTA/2003/05"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; TimeStamp="2009-02-18T16:24:59" MaxResponses="5" Target="Production" Version="2008.02" SequenceNmbr="1" EchoToken="960" xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 http://www.opentravel.org/2008B/OTA_AirAvailRQ.xsd";> 2009-03-10T20:00:00 '; $xdoc = new DomDocument(); $xdoc->loadXML($xmlString); $xdoc->schemaValidate("http://www.opentravel.org/2008B/ OTA_AirAvailRQ.xsd"); Expected result: A "valid schema" result Actual result: -- Warning : "local complex type:The content type must specify a particle." -- Edit bug report at http://bugs.php.net/?id=47446&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47446&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47446&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47446&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47446&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47446&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47446&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47446&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47446&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47446&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47446&r=support Expected behavior: http://bugs.php.net/fix.php?id=47446&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47446&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47446&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47446&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47446&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47446&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47446&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47446&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47446&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47446&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47446&r=mysqlcfg