SOAP request reply throws exception:caused by: org.xml.sax.SAXException: validation error: xsi:type "{http://schemas.xmlsoap.org/soap/encoding/}Array" is not validly derived from the allowed type definition of "responsibles" (typed as null)
book
Article ID: KB0086210
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: Title: BW SOAP request reply throws the following exception when getting response from AXIS server: caused by: org.xml.sax.SAXException: validation error: xsi:type "{http://schemas.xmlsoap.org/soap/encoding/}Array" is not validly derived from the allowed type definition of "responsibles" (typed as null)
The WSDL is defined as: <xsd:complexType name = "ArrayOf_Responsible"> <xsd:complexContent> <xsd:restriction base = "soapenc:Array"> <xsd:attribute ref = "soapenc:arrayType" wsdl:arrayType = "db:Responsible[]"/> </xsd:restriction> </xsd:complexContent>
Resolution: The problem happens because of wrong "xsi:type" value on the array element. The value set for "xsi:type" is based on "http://schemas.xmlsoap.org/soap/encoding/" standard, which was introduced before XML schema became standard. Industry is moving away from using soapencoding definitions and adopting schema standard that's why BW expects xsi:type="ns1:ArrayOf_Responsible" for element responsibles, not xsi:type="soapenc:Array".
To resolve this problem, please refer to WS-I recommendations for declaration of array types: http://www.ws-i.org/Profiles/BasicProfile-2_0(WGD).html#soapenc_Array
SOAP request reply throws exception:caused by: org.xml.sax.SAXException: validation error: xsi:type "{http://schemas.xmlsoap.org/soap/encoding/}Array" is not validly derived from the allowed type definition of "responsibles" (typed as null)