From:             marek dot raida at lmc dot eu
Operating system: Linux, Windows
PHP version:      Irrelevant
Package:          SOAP related
Bug Type:         Bug
Bug description:SOAPClient returns null without any bug or exception thrown

Description:
------------
We're calling our internal company service using Soap client. There is WSDL
including XSD file and PHP client is able to call method properly and is
also getting back proper response and headers, but there is NULL as a
result, always, and after couple of hours we still do not have any clue
why... Tested on different version of PHP 5.1 - 5.5 alpha, always the same
results. Java/Ruby clients behave correctly.

I'm including test script below, which is however depending on WSDL + XSD
files and response from internal server.

However, we captured real response and are putting those WSDL publicly with
faked real response file, for you to easily try it for yourselves.

http://svg.kvalitne.cz/mix/soap/gis.wsdl
http://svg.kvalitne.cz/mix/soap/gis.xsd
http://svg.kvalitne.cz/mix/soap/response.xml (recorded and stubbed in-place
response from real server)


Test script:
---------------
<?php
$wsdl = "http://svg.kvalitne.cz/mix/soap/gis.wsdl";;
$client = new SoapClient($wsdl, array('trace' => 1, 'exceptions' => true,
'cache_wsdl' => WSDL_CACHE_NONE));
$params =  array('acContext' => array('countryIds' => 56, 'language' =>
19),
                 'searchString' => "Josefská 505/10, Brno, Brno-město");
try {
   var_dump($client->__soapCall('getAddressOptions', array('parameters' =>
$params)));
} catch (Exception $e) {
   var_dump($e);
}
echo "\nLast Request: " . $client->__getLastRequest()."\n";
echo "Last Request Headers: " . $client->__getLastRequestHeaders()."\n\n";
echo "Last Response: " . $client->__getLastResponse()."\n";
echo "Last Response Headers: " . $client->__getLastResponseHeaders()."\n";


Expected result:
----------------
have $result, object with parsed response from server

Actual result:
--------------
we are getting NULL but do not know why

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64140&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64140&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64140&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64140&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64140&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64140&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64140&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64140&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64140&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64140&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64140&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64140&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64140&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64140&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64140&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64140&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64140&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64140&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64140&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64140&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64140&r=mysqlcfg

Reply via email to