axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roshan Weerasuriya (JIRA)" <>
Subject [jira] Resolved: (AXISCPP-356) Unable to specify the prefix when creating a HeaderBlock throguh Stubs
Date Thu, 06 Jan 2005 05:30:13 GMT
     [ ]
Roshan Weerasuriya resolved AXISCPP-356:

    Resolution: Fixed

Added this functionality. Now the user can do this through the Stub. Also after adding the
namespace (and the prefix prefered by the user), the child elements of the HeaderBlock can
use this namespace. This is illustrated below:

IHeaderBlock *phb = ws.createSOAPHeaderBlock("TestHeader",
                "", "myprefix");
    //create parent node
    BasicNode *parentNode = phb->createChild(ELEMENT_NODE);

The out come is below:

<myprefix:TestHeader xmlns:myprefix=""><myprefix:Credentials>....</myprefix:Credentials></myprefix:TestHeader>

> Unable to specify the prefix when creating a HeaderBlock throguh Stubs
> ----------------------------------------------------------------------
>          Key: AXISCPP-356
>          URL:
>      Project: Axis-C++
>         Type: New Feature
>   Components: Basic Architecture
>     Versions: current (nightly)
>     Reporter: Roshan Weerasuriya
>     Assignee: Roshan Weerasuriya
>     Priority: Minor
>      Fix For: current (nightly)

> IHeaderBlock *AXISCALL createSOAPHeaderBlock(AxisChar *pachLocalName,AxisChar *pachUri)
API will create a namespace 
> declaration by taking prefix like 'ns1'or 'ns2'..
> I feel it is better to get this prefix from the user itself.
> ie it is better if the API is like   IHeaderBlock *AXISCALL createSOAPHeaderBlock(AxisChar
*pachLocalName, AxisChar *pachPrefix, AxisChar *pachUri) 
> Also the document for this API(stub.html) gives an example of this kind. ie creating
a header block by giving three arguments but the API doesn't support three parameters. This
needs to be looked into.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message