Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #5622 No way to set the default namespace
Submitted: 2005-10-07 07:19 UTC
From: mdk Assigned: yunosh
Status: Closed Package: SOAP
PHP Version: 4.3.9 OS: Redhat AS4
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-07 07:19 UTC] mdk
Description: ------------ It seem that I can't find a way to set the default namespace. I'm trying to connection to a .NET soap server, and it requires me to set the default namespace as I'm using a SOAP BODY and HEADER. E.G. <SOAP-ENV .... xmlns="http://SOMETHING" .....

Comments

 [2006-02-04 04:38 UTC] martin dot kup at digidy dot com
try to add "namespace" => "your namespace here" into array $options used in ->call() and add following code $xmlns = ' xmlns="'.$elNamespace.'"'; on line 586 in Base.php after // Add namespaces. if ($elNamespace) { $elPrefix = $this->_getNamespacePrefix($elNamespace); if ($elPrefix) {
 [2007-01-21 18:22 UTC] yunosh (Jan Schneider)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. A setDefaultNamespace() method has been added to the SOAP_Base class.