#31695 [NEW]: Cannot redefine endpoint when using WSDL
| From: | adam at trachtenberg dot com | Date: | Tue, 25 Jan 2005 22:16:07 +0000 |
| Subject: | #31695 [NEW]: Cannot redefine endpoint when using WSDL | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72809@lists.php.net to get a copy of this message | ||
From: adam at trachtenberg dot com
Operating system: n/a
PHP version: 5.0.3
PHP Bug Type: SOAP related
Bug description: Cannot redefine endpoint when using WSDL
Description:
------------
The SOAP extension does not allow you to both use a WSDL file and specify
a custom endpoint. Some SOAP servers, including eBay, set a generic
endpoint in their WSDL, and require the developer to override it with
custom data.
By endpoint, I mean the location field as described here:
http://www.w3.org/TR/wsdl#_soap:address
Reproduce code:
---------------
$client = new SoapClient('some.wsdl', array('location' =>
'http://localhost/soap.php'));
It is also necessary to have a setLocation() method, because it's common
to need to modify the endpoint/location from request to request. Without
this, the developer would need to create a second instance of SoapClient
with the same WSDL.
$client->__setLocation('http://localhost/soap2.php');
Expected result:
----------------
The location from the WSDL is set to http://localhost/soap.php instead of
what's in the file.
Actual result:
--------------
The location parameter is ignored.
--
Edit bug report at http://bugs.php.net/?id=31695&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31695&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31695&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31695&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31695&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31695&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31695&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31695&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31695&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31695&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31695&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31695&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31695&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31695&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31695&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31695&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31695&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31695&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31695&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31695&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31695&r=mysqlcfg