From:             
Operating system: ALL
PHP version:      Irrelevant
Package:          SOAP related
Bug Type:         Feature/Change Request
Bug description:SoapClient::getNameSpace

Description:
------------
---
>From manual page: http://www.php.net/soapheader.soapheader
---
SoapHeader::SoapHeader ( 
  string $namespace , <----- we need to pass the $namespace!!!
  string $name 
  [, mixed $data [, bool $mustunderstand = false [, string $actor ]]] )

SoapHeader requires passing the namespace for the header.  The namespace
would normally be specified in the wsdl file which is passed to the
SoapClient constructor.  If the wsdl file changes its namespace (which is
allowed) there is no way to know without first downloading and parsing the
file.  This is counter productive since we need to pass the link to
SoapClient anyway.

My feature request is to be able to call a new SoapClient method (maybe
called getNameSpace) that will return the namespace specified in the parsed
wsdl file.  Obviously this is only for wsdl based SoapClients.

Test script:
---------------
No test script since the feature is not implemented yet..

Expected result:
----------------
$client = new SoapClient($pathToWsdlFile);
$client->__soapCall("SomeFunction", array($a, $b, $c), NULL,
                new SoapHeader($client->getNameSpace,
                               'echoMeStringRequest',
                               'hello world'));

Actual result:
--------------
$client = new SoapClient($pathToWsdlFile);
$client->__soapCall("SomeFunction", array($a, $b, $c), NULL,
                new SoapHeader('namespace',
                               'echoMeStringRequest',
                               'hello world'));

-- 
Edit bug report at https://bugs.php.net/bug.php?id=61495&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61495&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61495&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61495&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61495&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61495&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61495&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61495&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61495&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61495&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61495&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61495&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61495&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61495&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61495&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61495&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61495&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61495&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61495&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61495&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61495&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61495&r=mysqlcfg

Reply via email to