Hi Hasunie,

I think the error says the body is the Unexpected element. So I think there
is something wrong with the SOAP body element. But when I checked the
response in TcpMon it was fine.

Thanks,

On Thu, Aug 27, 2015 at 11:16 AM, Hasunie Adikari <hasu...@wso2.com> wrote:

> Hi Mushthaq,
>
> In general, "Unexpected subelement" means that the message being processed
> doesn't conform to the WSDL that was used to generate the ADB code.you are
> getting this exception on the client side, it means that the response from
> the server is invalid.
> check if your mandatory elements are filled within the server.
>
> On Thu, Aug 27, 2015 at 10:23 AM, Kasun Bandara <kas...@wso2.com> wrote:
>
>> Hi Mushthaq,
>>
>> According to [1] , aforementioned error mostly occur in Axis2 in ADB
>> databinding type, when the sequence of tags coming in SOAP response is not
>> same as that of attributes in java class formed from wsdl. You can resolved
>> this by changing the sequence of tags in wsdl.
>>
>> [1]
>> http://stackoverflow.com/questions/10113395/apache-unexpected-subelement-exception-while-generating-a-webservice-client
>>
>> Thanks.
>>
>>
>>
>>
>> On Wed, Aug 26, 2015 at 7:14 PM, Mushthaq Rumy <musht...@wso2.com> wrote:
>>
>>> Thanks Dinusha,
>>>
>>> I'll check and see.
>>>
>>> Thanks,
>>>
>>> On Wed, Aug 26, 2015 at 6:59 PM, Dinusha Boteju <dinus...@wso2.com>
>>> wrote:
>>>
>>>> Hi Mushthaq,
>>>>
>>>> From the little info you have given, I did a bit of a research. One
>>>> possible reason for this could be incompatible response type. Have a look
>>>> at [1].
>>>>
>>>> [1] -
>>>> http://mail-archives.apache.org/mod_mbox/axis-java-user/200807.mbox/%3c60708f4b0807090748t289f5971wf44e1057b89d7...@mail.gmail.com%3E
>>>>
>>>> -Dinusha
>>>>
>>>>
>>>> On Wed, Aug 26, 2015 at 6:49 PM, Harsha Thirimanna <hars...@wso2.com>
>>>> wrote:
>>>>
>>>>>
>>>>> On Wed, Aug 26, 2015 at 6:37 PM, Mushthaq Rumy <musht...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> org.apache.axis2.databinding.ADBException: Unexpected subelement {
>>>>>> http://schemas.xmlsoap.org/soap/envelope/}Body
>>>>>>
>>>>>
>>>>> ​Can you try out this with building stub that is pointing jaxbri ?​
>>>>>
>>>>>
>>>>>
>>>>> *Harsha Thirimanna*
>>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>>>> * <http://www.apache.org/>*
>>>>> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 *
>>>>> *twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>*
>>>>> *harshathirimannlinked-in: **http:
>>>>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>>>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>>>>
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Dinusha Boteju*
>>>> *Associate Tech Lead,*
>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>> *lean.enterprise.middleware.*
>>>>
>>>> email: dinus...@wso2.com <ruw...@wso2.com>
>>>> phone:(+94) 776640275 <%28%2B94%29%20777739736>
>>>>
>>>
>>>
>>>
>>> --
>>> Mushthaq Rumy
>>> *Software Engineer*
>>> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
>>> Email : musht...@wso2.com
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Bandara
>> *Software Engineer*
>> Mobile : +94 (0) 718 338 360
>> <%2B94%20%280%29%20773%20451194>
>> kas...@wso2.com <thili...@wso2.com>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Hasunie Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> blog http://hasuniea.blogspot.com
> Mobile:+94715139495
>



-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to