Hi,
The failure you are seeing is probably not due to the client but
thrown from the server and reported by the client as an exception. The
general cause of this error message is the presence of an incompatible
element in the XML.
However in your case the XMLBeans service works which means there is
no probs with the client and hence this could well be a bug in ADB
(may restriction handling which was a recent addition)
In any case see whether you can use tcpmon to capture a few message.
Ajith
On 4/17/07, Sampige, Srinivas <[EMAIL PROTECTED]> wrote:
I have implemented 2 versions of the same webservice; one using ADB and
the other using XMLBeans binding. Both services have the same exact
WSDL. I generated a client using xmlbeans binding which works fine
against the service using xmlbeans. But, the same client when pointed
against the service using ADB binding the, client fails with "
Unexpected subelement"
-------------------------------
org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected
subelement Time
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:271)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:202)
at
com.directv.dtss.itx.client.ScheduleServiceStub.ScheduleReceiveService(S
cheduleServiceStub.java:152)
at
com.directv.dtss.itx.client.helper.ScheduleReceiveServiceClientHelper.po
stSchedule(ScheduleReceiveServiceClientHelper.java:112)
at
com.directv.dtss.itx.client.sample.ScheduleServiceClientSample.main(Sche
duleServiceClientSample.java:157)
----------------------------------
From my understanding, given a WSDL, when we generate a client it should
work regardless of how the service is implemented correct?(transparent
to the client hence the very purpose of the WSDL right?).
I am running Axis2-1.1.1 on Tomcat 5.5.23
I have attached 2 files=
1) the wsdl itself (scheduleService.wsdl)
2) the request/response output from tcpmon in the 2 cases
(adbxmlbeans.txt)
I followed steps outlined in
http://www.nabble.com/-Axix2--java.lang.RuntimeException:-Unexpected-sub
element-value-t3489089.html but I cannot get to the stage where I can
see the response in the scenario when it fails.
Thanks in advance
Srinivas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]