Invoke of a Web Service Which References An Element Defined With Type Inheritance Fails With a Fault.

(Doc ID 1450951.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version R6.3 to R6.3 [Release 6.0]
Information in this document applies to any platform.

Symptoms

Invoke of an external web service from a Java Collaboration (JCD) in a Java CAPS repository based project fails. The response received from the external web service contains the following fault:

<faultstring>javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.bind.UnmarshalException: Unable to create an instance of ....WsPer
- with linked exception:
[java.lang.InstantiationException]]</faultstring>

wsPer is defined to include type inheritance, an extract from the xsd is:

  <xs:complexType name="wsDocument">
  <xs:sequence>
  <xs:element name="title" type="xs:string" minOccurs="0"></xs:element>
  <xs:element name="legalSig" type="tns:wsPer"
  minOccurs="0"></xs:element>
  </xs:sequence>
  </xs:complexType>
  ...
  <xs:complexType name="wsPer" abstract="true">
  <xs:sequence>
  <xs:element name="authorId" type="xs:string"
  minOccurs="0"></xs:element>
  <xs:element name="specialtyCd" type="xs:string"
  minOccurs="0"></xs:element>
  </xs:sequence>
  </xs:complexType>
  ...
  <xs:complexType name="wsHealthProf">
  <xs:complexContent>
  <xs:extension base="tns:wsPer">
  <xs:sequence>
  <xs:element name="firstName" type="xs:string" minOccurs="0"></xs:element>
  <xs:element name="lastName" type="xs:string" minOccurs="0"></xs:element>
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms