aspose file tools*
The moose likes Web Services and the fly likes ADBException: Unexpected subelement fileNam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "ADBException: Unexpected subelement fileNam" Watch "ADBException: Unexpected subelement fileNam" New topic
Author

ADBException: Unexpected subelement fileNam

francis varkey
Ranch Hand

Joined: Sep 13, 2005
Posts: 169
Dear ,

When I am trying to use one web service , I am getting following error.

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement fileName


......................................

Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement fileName
at thmc.THMC_WSBeanServiceStub$ThmcTHM017CancellationVOWrapper$Factory.parse(THMC_WSBeanServiceStub.java:36062)
at thmc.THMC_WSBeanServiceStub$S_p004_CancelBookingResponse$Factory.parse(THMC_WSBeanServiceStub.java:42830)
at thmc.THMC_WSBeanServiceStub$S_p004_CancelBookingResponseE$Factory.parse(THMC_WSBeanServiceStub.java:6395)
at thmc.THMC_WSBeanServiceStub.fromOM(THMC_WSBeanServiceStub.java:50952)
... 219 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement fileName
at thmc.THMC_WSBeanServiceStub$ThmcTHM017CancellationVOWrapper$Factory.parse(THMC_WSBeanServiceStub.java:35679)
... 222 more


---------------------------------------

Sample wsdl


------

<xs:complexType name="masterCraftFileWrapper">

<xs:sequence>
<xs:element minOccurs="0" name="fileContent" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="fileName" type="xs:string"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="thmcTHM017CancellationVOWrapper">

<xs:sequence>
<xs:element minOccurs="0" name="atrr_CanStatus" type="xs:string"/>
<xs:element minOccurs="0" name="attr_CanRecpt" type="tns:masterCraftFileWrapper"/>
<xs:element minOccurs="0" name="attr_THM017_CancellationVO_applcntEmail" type="xs:string"/>
<xs:element name="attr_THM017_CancellationVO_applcntPhone" type="xs:long"/>
<xs:element name="attr_THM017_CancellationVO_bookingId" type="xs:int"/>
<xs:element minOccurs="0" name="attr_THM017_CancellationVO_bookingNumber" type="xs:string"/>
<xs:element name="attr_THM017_CancellationVO_bookingVer" type="xs:int"/>
</xs:sequence>
</xs:complexType>


<xs:complexType name="s_p004_CancelBooking">

<xs:sequence>
<xs:element minOccurs="0" name="ThreadSpecificContext" type="tns:threadSpecificContextWrapper"/>
<xs:element minOccurs="0" name="sp_in_CancellationInput" type="tns:thmcTHM017CancellationVOWrapper"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="s_p004_CancelBookingResponse">

<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:thmcTHM017CancellationVOWrapper"/>
<xs:element minOccurs="0" name="ErrorMessages" type="tns:errMessagesWrapper"/>
</xs:sequence>
</xs:complexType>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ADBException: Unexpected subelement fileNam