Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ADBException: Unexpected subelement fileNam

 
francis varkey
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic