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 "Roshan Weerasuriya (JIRA)" <ax...@ws.apache.org> on 2005/01/06 03:24:08 UTC
[jira] Created: (AXISCPP-356) Unable to specify the prefix when creating a HeaderBlock throguh Stubs
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
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
[jira] Closed: (AXISCPP-356) Unable to specify the prefix when creating a HeaderBlock throguh Stubs
Posted by "Roshan Weerasuriya (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-356?page=history ]
Roshan Weerasuriya closed AXISCPP-356:
--------------------------------------
Fixed this issue
> 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
[jira] Assigned: (AXISCPP-356) Unable to specify the prefix when creating a HeaderBlock throguh Stubs
Posted by "Roshan Weerasuriya (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-356?page=history ]
Roshan Weerasuriya reassigned AXISCPP-356:
------------------------------------------
Assign To: Roshan Weerasuriya
> 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
[jira] Resolved: (AXISCPP-356) Unable to specify the prefix when creating a HeaderBlock throguh Stubs
Posted by "Roshan Weerasuriya (JIRA)" <ax...@ws.apache.org>.
[ 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
[jira] Commented: (AXISCPP-356) Unable to specify the prefix when creating a HeaderBlock throguh Stubs
Posted by "Roshan Weerasuriya (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-356?page=comments#action_57336 ]
Roshan Weerasuriya commented on AXISCPP-356:
--------------------------------------------
The "ws" object in the above example code is a instance of the User stub.
> 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