[ http://issues.apache.org/jira/browse/AXIS2-742?page=all ]

Kinichiro Inoguchi updated AXIS2-742:
-------------------------------------

    Attachment: Service1.wsdl

I created same kind of web service with VB.NET to compare WSDL generated by 
.NET and axis2.

.NET generated WSDL seems to generate "ArrayOf<class-name>" element when in/out 
params are array.

+++Service1.asmx.vb+++
    <System.Web.Services.WebMethod()> _
    Public Function testService(ByVal inParam As serviceIn()) As serviceOut()
        Dim outParam As serviceOut()
        testService = outParam
    End Function

+++serviceIn.vb+++
Public Class serviceIn
    Public val1 As String
    Public val2 As Integer
    Public val3 As Double
End Class

+++serviceOut.vb+++
Public Class serviceOut
        Public ret1 As String
    Public ret2 As Integer
    Public ret3 As Double
End Class


> RPCMessageReceiver and javabeans array
> --------------------------------------
>
>          Key: AXIS2-742
>          URL: http://issues.apache.org/jira/browse/AXIS2-742
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: wsdl
>     Versions: 1.0
>  Environment: JDK1.4.2 Tomcat5 WindowsXP
>     Reporter: Kinichiro Inoguchi
>     Assignee: Deepal Jayasinghe
>  Attachments: ArrayJavaBeans_src.zip, Service1.wsdl
>
> I'm testing RPCMessageReceiver with java class 
> that receives array of javabeans and returns array of javabeans.
>       package test;
>       public class ArrayJavaBeans {
>               public testServiceOut [] testService(testServiceIn []
> inParam) {
>                       testServiceOut [] outParam = new 
> testServiceOut[inParam.length];
>                       return outParam;
>               }
>       }
> After deploy this service, I tried to generate proxy code from .NET, 
> but I got errors like these;
> The document at the url 
> http://localhost:8080/axis2/services/ArrayJavaBeans?wsdl was not recognized 
> as a known document type. The error message from each known type may help you 
> fix the problem:
> - Report from 'WSDL Document' is 'There is an error in XML document (1, 
> 490).'.
>   - Invalid URI: The format of the URI could not be determined.
> - Report from 'DISCO Document' is 'Discovery document at the URL 
> http://localhost:8080/axis2/services/ArrayJavaBeans?wsdl could not be found.'.
>   - The document format is not recognized.
> - Report from 'XML Schema' is 'Expected Schema root. Make sure that the root 
> element is <schema> and the namespace is 'http://www.w3.org/2001/XMLSchema' 
> for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. 
> An error occurred at , (1, 2).'.
> It seems something wrong with WSDL generated by Axis2.
> Does anyone know about this problem ?
> Is there any way to avoid this trouble ?
> I attached sourcecode, services.xml and generated wsdl.

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