WSDL Proxy Generation Causes "Error creating model from WSDL" (Doc ID 975496.1)

Last updated on JULY 06, 2017

Applies to:

Web Services - Version 10.1.3.0.0 to 10.1.3.4.0
Information in this document applies to any platform.
***Checked for relevance on 27-Aug-2013***
***Checked for relevance on 01-Sept-2015***

Symptoms

The following error occurs when trying to generate a web service client proxy using the JDeveloper Web Service Client Proxy wizard

oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/D:/Temp/OTMService_60_WMServlet.wsdl": (Relevant to above error) another "XLane" is generated from here.This error is caused because on Windows you cannot have both "XLane.java" and "XLANE.java" in the same directory.A class/interface with the same name "com.oracle.xmlns.apps.otm.XLANE" is already in use. Use a class customization to resolve this conflict.Two declarations cause a collision in the ObjectFactory class.(Related to above error) This is the other declaration. (Relevant to above error) This confusing error happened most likely because the schema uses a technique called "chameleon schema", which causes a single definition to be loaded multiple times into different namespaces. See http://forums.java.net/jive/thread.jspa?threadID=18631 for more about this. 

This is reproduced using the steps.

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