ID:               44856
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to