[ 
http://issues.apache.org/jira/browse/AXISCPP-363?page=comments#action_12314040 
] 

Samisa Abeysinghe commented on AXISCPP-363:
-------------------------------------------

SOAP version to be used is determined by the generated code. In case this is 
SOAP 1.1, if the user tries to create a SOAP 1.2 attribute, then this error 
happens.

Until a method is invoked on the stub, the SOAP version is not set. Hence if 
the user is trying to set the attribute with SOAP version, before a method 
invocation, which is the typical case, there is no way to validate the version 
used. Hnece we have a basic design problem here.

> createStdAttribute()  uses an undeclared namespace prefix 'env' when 
> SOAP_VER_1_2 is passed as the SOAP_VERSION.
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-363
>          URL: http://issues.apache.org/jira/browse/AXISCPP-363
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - API
>     Reporter: James Jose
>     Assignee: Samisa Abeysinghe

>
> IHeaderBlock *phb=ws.createSOAPHeaderBlock("TestHeader","http://axis.com";);
> IAttribute *attr=phb->createStdAttribute(ROLE_NEXT,SOAP_VER_1_2);
> will create the following SOAP Header.
> <SOAP-ENV:Header><ns2:TestHeader xmlns:ns2="http://axis.com"; 
> env:role="http://www.w3.org/2003/05/soap-envelope                             
> /role/next"></ns2:TestHeader>
> </SOAP-ENV:Header>
> Here the prefix 'env' is an undeclared prefix. Also there is lot of spaces in 
> the value of 'role' attribute.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to