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/11 08:41:53 UTC

[jira] Closed: (AXISCPP-520) WSDL2Ws does not create a compilable stub for a Document Literal WSDL with arrays of simple data types

     [ http://issues.apache.org/jira/browse/AXISCPP-520?page=history ]
     
Samisa Abeysinghe closed AXISCPP-520:
-------------------------------------

     Resolution: Fixed
    Fix Version: 1.5 Final

 There were may fixes needed to cpp/doclit/ClientStubWriter.java to solve this issue.
 I do not know why on earth this source file was this much broken.
 As far as I could test, these fixes seem to have minimal side-effects, however I admit that there is a risk.
 I myself do not like the fixes I did here to cpp/doclit/ClientStubWriter.java. However I had to live with these fixes as I wanted to minimize the side effects and for the very reason that I did not want to change any other file (so that in case of problems a roll back would be trivial)




> WSDL2Ws does not create a compilable stub for a Document Literal WSDL with arrays of simple data types
> ------------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-520
>          URL: http://issues.apache.org/jira/browse/AXISCPP-520
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     Reporter: Andrew Perry
>     Assignee: Samisa Abeysinghe
>      Fix For: 1.5 Final

>
> WSDL2Ws does not create a compilable stub for a Document Literal WSDL with arrays of simple data types.
> I have created a simple WSDL which works correctly for a Java client using stubs generated by WSDL2Java, but when WSDL2Ws is run against it the generated code fails to compile.
> The stub hpp file is correct, but the corresponding cpp file has the wrong signitures for the operations.
> -------- hpp snippet ----------
>     STORAGE_CLASS_INFO xsd__short_Array echoShortArray(xsd__short_Array Value0);
>     STORAGE_CLASS_INFO xsd__int_Array echoIntArray(xsd__int_Array Value0);
>     STORAGE_CLASS_INFO xsd__long_Array echoLongArray(xsd__long_Array Value0);
>     STORAGE_CLASS_INFO xsd__float_Array echoFloatArray(xsd__float_Array Value0);
> -------------------------------
> -------- cpp snippet ----------
> xsd__short SimpleArrays::echoShortArray(xsd__short Value0)
> xsd__int SimpleArrays::echoIntArray(xsd__int Value0)
> xsd__long SimpleArrays::echoLongArray(xsd__long Value0)
> xsd__float SimpleArrays::echoFloatArray(xsd__float Value0)
> -------------------------------
> As can be seen the cpp is generated with the basic data type and not the Array of the basic data type.
> The WSDL SimpleArrays.wsdl and the test Client are in CVS in the ws-axis/c/tests/auto_build/testcases directory structure.

-- 
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