Web Service Client Javax.Xml.Soap.Soapexception: failed to serialize interface javax.xml.soap.SOAPElement

(Doc ID 1220845.1)

Last updated on JUNE 09, 2016

In this Document


A web service client threw the following exception.  The web service client and server code were generated from the same WSDL.

javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http//abcd.efg.hij.com/wsm']:PublishOrderInfo}


You changed the WSDL to import some schemas.  The format of the import statements in the WSDL is important, and must be similar to the below example in order for the problem to occur. 


Your WSDL imports a "Contact" schema using the following format:

<xsd:schema xmlns:ch="http://ccc.ddd.com/common"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://abcd.efg.hij.com/contact"
schemaLocation="./Contact.xsd" />
<xsd:import namespace="http://ccc.ddd.com/common"
schemaLocation="./Common.xsd" />



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