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
scheduleService.wsdl
Description: scheduleService.wsdl
-----------------not working. xmlbeans client against abd service <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><ScheduleReceiveService xmlns="http://Omnibus.US.ItxDirecTV.WebServices.SchedulingServices/"><scheduleMessage><Events><EventId>05962339820000</EventId><StartDate>2007-04-17T17:58:17.065-07:00</StartDate><StartTime><Time xmlns="http://www.example.org/AsRun">11:10:09:00</Time></StartTime><StartMode>Automatic</StartMode><MaterialId>P159254</MaterialId><Duration><Time xmlns="http://www.example.org/AsRun">01:30:00:00</Time></Duration><Title>ADLT TEN CH596</Title><SOM><Time xmlns="http://www.example.org/AsRun">01:30:00:00</Time></SOM><Offset><Time xmlns="http://www.example.org/AsRun">01:30:00:00</Time></Offset><MaterialType>Other</MaterialType><Destination>Destination</Destination><BreakPreTime>10</BreakPreTime><Type>PrimaryA</Type></Events><Header><Boc>00922</Boc><CCID>8901</CCID><ItxChannel>true</ItxChannel><Channel>8901</Channel><VC><string xmlns="http://www.example.org/AsRunResponse">596</string></VC><StartDateTime>2007-04-17T17:58:17.003-07:00</StartDateTime><EndDateTime>2007-04-17T17:58:16.972-07:00</EndDateTime><Generation>2007-04-17T17:58:17.003-07:00</Generation><Description>Schedule for CCID 231</Description><Type>Ingest</Type></Header></scheduleMessage></ScheduleReceiveService></soapenv:Body></soapenv:Envelope> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>java.lang.RuntimeException: Unexpected subelement Time</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope> -------------------------------------working xmlbeans client against xmlbeans service <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><ScheduleReceiveService xmlns="http://Omnibus.US.ItxDirecTV.WebServices.SchedulingServices/"><scheduleMessage><Events><EventId>05962339820000</EventId><StartDate>2007-04-17T18:01:10.058-07:00</StartDate><StartTime><Time xmlns="http://www.example.org/AsRun">11:10:09:00</Time></StartTime><StartMode>Automatic</StartMode><MaterialId>P159254</MaterialId><Duration><Time xmlns="http://www.example.org/AsRun">01:30:00:00</Time></Duration><Title>ADLT TEN CH596</Title><SOM><Time xmlns="http://www.example.org/AsRun">01:30:00:00</Time></SOM><Offset><Time xmlns="http://www.example.org/AsRun">01:30:00:00</Time></Offset><MaterialType>Other</MaterialType><Destination>Destination</Destination><BreakPreTime>10</BreakPreTime><Type>PrimaryA</Type></Events><Header><Boc>00922</Boc><CCID>8901</CCID><ItxChannel>true</ItxChannel><Channel>8901</Channel><VC><string xmlns="http://www.example.org/AsRunResponse">596</string></VC><StartDateTime>2007-04-17T18:01:09.995-07:00</StartDateTime><EndDateTime>2007-04-17T18:01:09.980-07:00</EndDateTime><Generation>2007-04-17T18:01:09.995-07:00</Generation><Description>Schedule for CCID 231</Description><Type>Ingest</Type></Header></scheduleMessage></ScheduleReceiveService></soapenv:Body></soapenv:Envelope> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><ScheduleReceiveServiceResponse xmlns="http://Omnibus.US.ItxDirecTV.WebServices.SchedulingServices/"><ScheduleReceiveServiceResult><Header><Boc>00922</Boc><CCID>8901</CCID><ItxChannel>true</ItxChannel><Channel>8901</Channel><VC><string xmlns="http://www.example.org/AsRunResponse">596</string></VC><StartDateTime>2007-04-17T18:01:09.995-07:00</StartDateTime><EndDateTime>2007-04-17T18:01:09.980-07:00</EndDateTime><Generation>2007-04-17T18:01:09.995-07:00</Generation><Description>Schedule for CCID 231</Description><Type>Ingest</Type></Header><Response><AckNakResponse>ACK</AckNakResponse></Response></ScheduleReceiveServiceResult></ScheduleReceiveServiceResponse></soapenv:Body></soapenv:Envelope>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
