From:             vanya at myfastmail dot com
Operating system: Kubuntu 9.04
PHP version:      5.2.9
PHP Bug Type:     SOAP related
Bug description:  Invalid and wrong SOAP request using WSDL

Description:
------------
PHP SOAP extension produces invalid and incorrect SOAP request, see actual
result. __soapCall was tried, direct ->functionName(attributes) approach
tried as well.

Reproduce code:
---------------
http://pastebin.com/d4a1551db

Expected result:
----------------
No Exception thrown, SOAP request should be something like this:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://www.tsystems.com/zfinder/1.0";>
   <soapenv:Header/>
   <soapenv:Body>
      <ns:getLebenslageTree>
         <lebenslageKey>
            <id>93256</id>
            <mandantenId>0</mandantenId>
         </lebenslageKey>
         <kategorieIds>783160</kategorieIds>
         <kategorieIds>783161</kategorieIds>     
         <mandantenIds>0</mandantenIds>
         <profilData>
            <ags>0</ags>
            <plz>0</plz>
            <sprache>deu</sprache>
         </profilData>
      </ns:getLebenslageTree>
   </soapenv:Body>
</soapenv:Envelope>

Actual result:
--------------
Exception from server because of wrong request, SOAP request is the
following:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:ns1="http://www.tsystems.com/zfinder/1.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
        <SOAP-ENV:Body>
                <ns1:getLebenslageTree xsi:type="ns1:PrimaryKeyWs">
                        <id>93256</id>
                        <mandantenId>0</mandantenId>
                </ns1:getLebenslageTree>
                <param1>
                        <xsd:int>783160</xsd:int>
                        <xsd:int>783161</xsd:int>
                </param1>
                <param2>
                        <xsd:int>0</xsd:int>
                </param2>
                <param3>false</param3>
                <param4 xsi:type="ns1:ProfilDataWs">
                        <ags>0</ags>
                        <plz>0</plz>
                        <sprache>deu</sprache>
                        <regionIds xsi:nil="true" />
                        <mandantenIds xsi:nil="true" />
                        <kategorien xsi:nil="true" />
                        <kategorienUndVerknuepfung />
                </param4>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Which is TOTALLY wrong... :(

-- 
Edit bug report at http://bugs.php.net/?id=48283&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48283&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48283&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48283&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48283&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48283&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48283&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48283&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48283&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48283&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48283&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48283&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48283&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48283&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48283&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48283&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48283&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48283&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48283&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48283&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48283&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48283&r=mysqlcfg

Reply via email to