#44856 [Opn->Fbk]: SOAPAction empty when WSDL has 2+ port bindings

From: Date: Tue, 21 Oct 2008 11:34:22 +0000
Subject: #44856 [Opn->Fbk]: SOAPAction empty when WSDL has 2+ port bindings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129968@lists.php.net to get a copy of this message
 ID:               44856
 Updated by:       jani@php.net
 Reported By:      alejandro at vicomstudio dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SOAP related
 Operating System: Windows
 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-04-28 17:24:31] alejandro at vicomstudio dot com

Description:
------------
PHP SoapClient seems to have trouble making calls when the WSDL has two
or more port bindings present that share function names

Reproduce code:
---------------
<?php
class mySoapClient extends SoapClient {

	public function __doRequest( $request, $location, $action, $version,
$one_way ){
		print_r( 'SOAPAction: "' . $action . '"<br>' );
		return '';		// Response is not important here 
	}
	
}

$wsdl = 'http://www.vicomstudio.com/alejandro/WSDL2.wsdl';
$ws = new mySoapClient( $wsdl, array( 'trace' => true ) );

// Create an example request
$response = $ws->listOffers( array(
		'keywords' => 'dvd',
		'itemPage' => 1,
		'merchantID' => array( 'value' => 'Amazon' ),
		'category' => array( 'name' => 'Automotive', 'value'
=> 'Automotive'
)
	)
);

?>

Expected result:
----------------
SOAPAction: "listOffers"

Actual result:
--------------
SOAPAction: ""


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44856&edit=1



Thread (2 messages)

« previous php.bugs (#129968) next »