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 SEPTEMBER 25, 2020

Applies to:

Oracle WebLogic Server - Version 8.1 to 8.1
Information in this document applies to any platform.

Symptoms

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//host/wsm']:PublishOrderInfo}

Changes

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. 

Example:

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


<types>
<xsd:schema xmlns:ch="http://host/common"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://host/wsm"
targetNamespace="http://host/wsm"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://host/contact"
schemaLocation="./Contact.xsd" />
<xsd:import namespace="http://host/common"
schemaLocation="./Common.xsd" />
</xsd:schema>

</types>




Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.