axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Dick (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Resolved: (AXISCPP-357) createImmediateChild() and createChild() APIs in the IHeaderBlock does not create namespace declaration
Date Mon, 07 Feb 2005 16:52:13 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-357?page=history ]
     
Adrian Dick resolved AXISCPP-357:
---------------------------------

      Assign To: Adrian Dick  (was: Roshan Weerasuriya)
     Resolution: Fixed
    Fix Version: current (nightly)

Roshan, I hope I'm not trampling on your feet with my fixing this issue, but it happened to
be causing problems in the particular area I was looking at, so seemed sensible to try and
resolve.

As stated in an earlier comment, I resolved the initial issue of the namespace prefix not
being correctly declared in the SOAP message.  I have now resolved the secondary issue, that
this namespace prefix is not being propogated to any child/grandchild nodes using the same
namespace uri, but don't specifiy a prefix, in this fix I have also ensured that the prefix
is not re-declared.

Both of these fixes were in ComplexElement.cpp (v1.33 and v1.44) and ComplexElement.hpp (v1.24).

Regards,
Adrian

> createImmediateChild() and createChild() APIs in the IHeaderBlock does not create  namespace
declaration
> --------------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-357
>          URL: http://issues.apache.org/jira/browse/AXISCPP-357
>      Project: Axis-C++
>         Type: Bug
>   Components: SOAP
>     Reporter: James Jose
>     Assignee: Adrian Dick
>      Fix For: current (nightly)

>
> createImmediateChild (NODE_TYPE eNODE_TYPE, AxisChar *pachLocalName, AxisChar *pachPrefix,
AxisChar *pachUri, AxisChar *pachValue)=0 and
> createChild (NODE_TYPE eNODE_TYPE, AxisChar *pachLocalName, AxisChar *pachPrefix, AxisChar
*pachUri, AxisChar *pachValue)=0 
> APIs does not create namespace declaration.
> BasicNode *bn=phb->createImmediateChild (ELEMENT_NODE,"Name","np","http://axis.com",NULL);
> creates the following element without namespace declaration for prefix "np"
> <SOAP-ENV:Header><ns2:Test xmlns:ns2="http://apache.com">
> <np:Name></np:Name></ns2:Test></SOAP-ENV:Header>
> <SOAP-ENV:Body>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message