axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <>
Subject [jira] Commented: (AXIS2-1519) empty arrays are not parsed correctly by Axis client
Date Fri, 27 Oct 2006 17:11:17 GMT
    [ ] 
Amila Chinthaka Suriarachchi commented on AXIS2-1519:

hi shahar,
can you please attach you skelton which produces this output soap message?
As I can see here is your xsd element for response,
<xs:element name="getServiceConnectionsResponse">
                        <xs:element maxOccurs="unbounded" name="return" nillable="true"
Since minOccurs is *not zero* it can not produce such an output as your output soap xml.
It should be some thing like this if the GetServiceConnectionsResponse object is empty.
<ns1:getServiceConnectionsResponse xmlns:ns1=""><ns1:return
xmlns:xsi="" xsi:nil="true" /></ns1:getServiceConnectionsResponse>

> empty arrays are not parsed correctly by Axis client
> ----------------------------------------------------
>                 Key: AXIS2-1519
>                 URL:
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: om
>         Environment: Windows XP Pro
>            Reporter: Shahar Kedar
>         Attachments: inSoapMessage.xml, outSoapMessage.xml, ServiceManager.wsdl
> My webservice sometimes returns an empty array of some object (which is properly declared
in the WSDL). In those cases, the Axis2 generated client fails to parse to SOAP message. I'm
getting the following error message:
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement getServiceSessionsResponse
>             at
>             at
>             at
>             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>             at sun.reflect.NativeMethodAccessorImpl.invoke(
>             at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>             at java.lang.reflect.Method.invoke(
>             at junit.framework.TestCase.runTest(
>             at junit.framework.TestCase.runBare(
>             at junit.framework.TestResult$1.protect(
>             at junit.framework.TestResult.runProtected(
>             at
>             at
>             at junit.framework.TestSuite.runTest(
>             at
>             at
>             at
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
>             at
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> Caused by: java.lang.RuntimeException: Unexpected subelement getServiceSessionsResponse
>             at$GetServiceSessionsResponse$Factory.parse(
>             at
>             ... 20 more

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message