From:             hans at lintoo dot dk
Operating system: FreeBSD 5.4
PHP version:      5.1.2
PHP Bug Type:     SOAP related
Bug description:  SOAP in WDSL incorrect complex type encoding

Description:
------------
Please excuse me if this problem is related to my code, i tried all
combinations of coding methods I could think of, but still it did not
return the code I was expecting.

I get the following exception:
SoapFault exception: [soap:Client] Incorrect format for named street text
line
which i believe is due to incorrect coding of the complex types.

You can find the WSDL at:
http://dev.lintoo.net/findaddressservice.wsdl

Reproduce code:
---------------
<?php
header('Content-type: text/xml');
$client = new
SoapClient('http://dev.lintoo.net/findaddressservice.wsdl',     array(
        'soap_version'  => SOAP_1_1,
        "trace" => 1,
        "exceptions" => 1
));
class FindAddressAccessRequest {
        public $NamedStreetTextInput;
        public $StreetBuildingIdentifier;
        public $MunicipalitySearch;
        public $DistrictSearch;
        public $DistrictSubdivisionSearch;
}
$FindAddressAccessRequest = new FindAddressAccessRequest();
$FindAddressAccessRequest->NamedStreetTextInput = "Hjallesevej";
$FindAddressAccessRequest->StreetBuildingIdentifier = "34";

$findAddressParam = array('NamedStreetTextInput' => "Hjallesevej",
'StreetBuildingIdentifier' => '34');

$client->FindAddressAccess($FindAddressAccessRequest);

print($client->__getLastRequest());
?>

Expected result:
----------------
<ns2:FindAddressAccessRequest>
<NamedStreetTextInput>Hjallesevej</NamedStreetTextInput>
<ns1:StreetBuildingIdentifier>34</ns1:StreetBuildingIdentifier>
<MunicipalitySearch/>
<DistrictSearch/>
<DistrictSubdivisionSearch/>
</ns2:FindAddressAccessRequest>

Actual result:
--------------
<ns2:FindAddressAccessRequest>
<ns2:NamedStreetTextInput>Hjallesevej</ns2:NamedStreetTextInput>
<ns1:StreetBuildingIdentifier>34</ns1:StreetBuildingIdentifier>
<ns2:MunicipalitySearch/>
<ns2:DistrictSearch/>
<ns2:DistrictSubdivisionSearch/>
</ns2:FindAddressAccessRequest>

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

Reply via email to