From: alejandro at vicomstudio dot com
Operating system: Windows
PHP version: 5.2.5
PHP Bug Type: SOAP related
Bug description: SOAPAction empty when WSDL has 2+ port bindings
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 bug report at http://bugs.php.net/?id=44856&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44856&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44856&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44856&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44856&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44856&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44856&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44856&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44856&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44856&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44856&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44856&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44856&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44856&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44856&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44856&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44856&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44856&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44856&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44856&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44856&r=mysqlcfg