My Oracle Support Banner

Web Service Client Javax.Xml.Soap.Soapexception: failed to serialize interface javax.xml.soap.SOAPElement (Doc ID 1220845.1)

Last updated on APRIL 05, 2018

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//']: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=""
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace=""
schemaLocation="./Contact.xsd" />
<xsd:import namespace=""
schemaLocation="./Common.xsd" />



To view full details, 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 a vibrant support community of peers and Oracle experts.