axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roshan Weerasuriya (JIRA)" <axis-c-...@ws.apache.org>
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
     [ http://issues.apache.org/jira/browse/AXISCPP-356?page=history ]
     
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",
                "http://ws.apache.org/axisCppTest/", "myprefix");
                                                                                         
                                                                                  
    //create parent node
    BasicNode *parentNode = phb->createChild(ELEMENT_NODE);
    parentNode->setLocalName("Credentials");
        parentNode->setURI("http://ws.apache.org/axisCppTest/");
        .....
        ..........

The out come is below:

<SOAP-ENV:Header>
<myprefix:TestHeader xmlns:myprefix="http://ws.apache.org/axisCppTest/"><myprefix:Credentials>....</myprefix:Credentials></myprefix:TestHeader>


> Unable to specify the prefix when creating a HeaderBlock throguh Stubs
> ----------------------------------------------------------------------
>
>          Key: AXISCPP-356
>          URL: http://issues.apache.org/jira/browse/AXISCPP-356
>      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:
   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