From: j dot dunn5 at ntlworld dot com Operating system: RedHat PHP version: 5.2.5 PHP Bug Type: SOAP related Bug description: PHP SOAP/.NET
Description: ------------ Hello, There seems to be many unsolved occurances of the following bug when trying to establish a SOAP connection to a .NET endpoint: Server was unable to process request. ---> Object reference not set to an instance of an object. I am yet to find a solution - the same application works fine when connected to from a .net platform. Reproduce code: --------------- <?php ini_set('display_errors', 1); ini_set("soap.wsdl_cache_enabled", 0); $params = new stdClass; $params->POS->Source = (object)array('ISOCountry' => 'GB', 'ISOCurrency' => 'GBP'); $params->POS->Source->BookingChannel->CompanyName = (object)array('CompanyShortName' => 'Testing'); $params->AvailRequestSegments->UTSv_AvailRequestSegment->StayDateRange->StartDateWindow = (object)array('EarliestDate' => '2008-04-01'); $params->AvailRequestSegments->UTSv_AvailRequestSegment->StayDateRange->EndDateWindow = (object)array('EarliestDate' => '2008-04-02'); $params->AvailRequestSegments->UTSv_AvailRequestSegment->ConsumerCandidates->ConsumerCandidate->ConsumerCounts->ConsumerCount = (object)array('AgeQualifyingCode' => 'Adult', 'Count' => 2); $params->AvailRequestSegments->UTSv_AvailRequestSegment->TPA_Extensions->SearchCriteria = (object)array('IndustryClassification' => 1); try { $client = new SoapClient( "http://www.testing123.com/AvailabilityService.asmx?WSDL", array('trace' => true) ); $client->SearchSupplierProductTypeAvailability($params); echo $client->__getLastRequestHeaders() . "\r" . $client->__getLastRequest() . "\r\r" . $client->__getLastResponse();; } catch (Exception $e) { echo "Error!<br />"; echo $e -> getMessage (); } ?> -- Edit bug report at http://bugs.php.net/?id=44482&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44482&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44482&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44482&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44482&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44482&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44482&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44482&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44482&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44482&r=support Expected behavior: http://bugs.php.net/fix.php?id=44482&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44482&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44482&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44482&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44482&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44482&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44482&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44482&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44482&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44482&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44482&r=mysqlcfg