php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44482 PHP SOAP/.NET
Submitted: 2008-03-19 16:37 UTC Modified: 2009-05-03 01:00 UTC
Votes:12
Avg. Score:4.9 ± 0.3
Reproduced:12 of 12 (100.0%)
Same Version:6 (50.0%)
Same OS:4 (33.3%)
From: j dot dunn5 at ntlworld dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.5 OS: RedHat
Private report: No CVE-ID: None
 [2008-03-19 16:37 UTC] 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 ();
	
}

?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-25 16:14 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 21:01:27 2024 UTC