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 "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/03/10 02:49:59 UTC

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

     [ http://issues.apache.org/jira/browse/AXISCPP-505?page=comments#action_60553 ]
     
Samisa Abeysinghe commented on AXISCPP-505:
-------------------------------------------

Adrian,
    What is the test WSDL for this issue?
Samisa...

> WSDL2Ws doesn't cope with WSDL complex types matching c/c++ types
> -----------------------------------------------------------------
>
>          Key: AXISCPP-505
>          URL: http://issues.apache.org/jira/browse/AXISCPP-505
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     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 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