#44482 [Opn->Fbk]: PHP SOAP/.NET
ID: 44482
Updated by: jani@php.net
Reported By: j dot dunn5 at ntlworld dot com
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: RedHat
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-03-19 16:37:40] j dot dunn5 at ntlworld dot com
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 this bug report at http://bugs.php.net/?id=44482&edit=1
Thread (3 messages)