axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: Help with schema / Unexpected subelement Body
Date Tue, 08 Jul 2008 13:28:57 GMT
Can you look the request you send and the  response you received using the
tcp mon. and send us?

thanks,
Amila.

On Tue, Jul 8, 2008 at 2:07 AM, Jake Goulding <goulding@vivisimo.com> wrote:

> Apologies, but the XML should say:
>
> <tree xmlns="urn:/vivisimo/types"
>
> I attached an earlier version, before I cleaned up my namespaces.
>
> -Jake
>
> Jake Goulding wrote:
>
>> Hey all:
>>
>> I am trying to figure out my other problems, and I ran into this:
>>
>> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
>> Unexpected subelement Body
>>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>        at vivisimo.ServiceStub.fromOM(ServiceStub.java:2346)
>>        at vivisimo.ServiceStub.Simple(ServiceStub.java:194)
>>        at Main.main(Main.java:24)
>> Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
>> Unexpected subelement Body
>>        at vivisimo.ServiceStub$Tree$Factory.parse(ServiceStub.java:878)
>>        at vivisimo.ServiceStub.fromOM(ServiceStub.java:2340)
>>        ... 2 more
>> Caused by: org.apache.axis2.databinding.ADBException: Unexpected
>> subelement Body
>>        at vivisimo.ServiceStub$Tree$Factory.parse(ServiceStub.java:864)
>>        ... 3 more
>>
>> I have narrowed down my schema, WSDL, and java file to the attached.
>>
>> I have 2 nodes, <tree> and <node>. Tree has exactly one <node>
child, and
>> <node> can have 0-unbounded <node> children. I think the schema is correctly
>> specifying this.
>>
>> However it looks like axis incorrectly exits out of the node, and then
>> reports that the *containing* element is an "unexpected subelement".
>>
>> Boiled down, my example says:
>>
>> soap:body
>>  tree
>>    node
>>
>> Any help on this would be great. Thanks!
>>
>> -Jake
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message