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 "nadir amra (JIRA)" <ax...@ws.apache.org> on 2012/12/20 00:11:13 UTC

[jira] [Comment Edited] (AXISCPP-505) WSDL2Ws doesn't cope with WSDL complex types matching c/c++ types

    [ https://issues.apache.org/jira/browse/AXISCPP-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13536547#comment-13536547 ] 

nadir amra edited comment on AXISCPP-505 at 12/19/12 11:10 PM:
---------------------------------------------------------------

Stage 1 - when types clash with C/C++ language keywords and types, errors occurs.  This has now been corrected in revision http://svn.apache.org/viewvc?view=revision&revision=1424208
                
      was (Author: nadiramra):
    Stage 1 - when types clash with C/C++ language keywords and types, errors occurs.  This has not been corrected in revision http://svn.apache.org/viewvc?view=revision&revision=1424208
                  
> WSDL2Ws doesn't cope with WSDL complex types matching c/c++ types
> -----------------------------------------------------------------
>
>                 Key: AXISCPP-505
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-505
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: WSDL processing - Doc, WSDL processing - RPC
>            Reporter: Adrian Dick
>
> WSDL2Ws produces generated stubs that cannot be compiled when WSDL contains types whose names match c/c++ types.
> eg:
> <complexType name="list">
>   <sequence>
>     <element maxOccurs="unbounded" name="item" nillable="true" type="xsd:string"/>
>   </sequence>
> </complexType>
> There are several potential fixes to this, including the rejection of c/c++ type, but I suggest the following would probably be the best fix:
> Prefix all use user types with "::", eg:
>   ::myReturnType* myPortType::myOperation(::myInput* Value0)
>   {
>     ::myReturnType* pReturn = NULL;
>   ...
>     if(AXIS_SUCCESS == m_pCall->checkMessage("myOperationResponse", "urn:amwebars"))
>     {
>       pReturn = (::myReturnType*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_myReturnType, (void*) Axis_Create_myReturnType, (void*) Axis_Delete_myReturnType,"myOperationReturn", 0);
>     }
>   ...
>   }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org