You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Adrian Dick (JIRA)" <ax...@ws.apache.org> on 2005/02/04 18:12:27 UTC

[jira] Commented: (AXISCPP-357) createImmediateChild() and createChild() APIs in the IHeaderBlock does not create namespace declaration

     [ http://issues.apache.org/jira/browse/AXISCPP-357?page=comments#action_58605 ]
     
Adrian Dick commented on AXISCPP-357:
-------------------------------------

While working with James Jose to fix some related problems, I found, and applied, a small fix (in src/soap/ComplexElement.cpp) which resolves the initial problem:
ie:
  <np:name>...
where it should be:
  <np:name xmlns:np="http://mynamespace.com">

However, the issue still exists as to how we allow this namespace to be correctly propogated to any further children.
The test IHeaderBlockTest4 highlights the exact problem.

> 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: Roshan Weerasuriya

>
> 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