WSDL Based OTD Project fails to build if WSDL has two Elements with the same name but different case (Doc ID 1307997.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version R6 U1 and later
Information in this document applies to any platform.
***Checked for relevance on 23-September-2013***

Symptoms

The Repository based project contains a JCD that includes a WSDL based OTD. The WSDL contains 2 elements of the same name but different case:

example:
<xsd:element name="object" type="tns:InputType"/>
<xsd:element name="OBJECT" type="tns:ObjectType"/>

The project fails to build with the errors:

com.stc.codegen.framework.model.CodeGenException: Error compiling source: Error compiling source:
WsdlObjectNames.CMap1_Collaboration_11.Collaboration_1_Runtime_Handler:372,-1:http___schemas_<...cut...>.WSDLDocument cannot be resolved to a type
XSupportCasesWsdlObjectNames.Collaboration_1:15,-1:http___schemas_<...cut...>_.WSDLDocument cannot be resolved to a type
at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.compileCodegen(CodeGenFrameworkImpl.java:1013)
at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:728)
at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1608)
at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:409)
at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:312)
at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:272)
at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:954)
at com.stc.codegen.driver.module.DeploymentBuildAction.access$1100(DeploymentBuildAction.java:176)
at com.stc.codegen.driver.module.DeploymentBuildAction$2.run(DeploymentBuildAction.java:630)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

Caused by: com.stc.codegen.framework.model.CodeGenException: Error compiling source:
WsdlObjectNames.CMap1_Collaboration_11.Collaboration_1_Runtime_Handler:372,-1:http___schemas_<...cut...>.WSDLDocument cannot be resolved to a type
XSupportCasesWsdlObjectNames.Collaboration_1:15,-1:http___schemas_<...cut...>.WSDLDocument cannot be resolved to a type
at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.compileCodegen(CodeGenFrameworkImpl.java:1009)
... 10 more

If one of the element names is changed so there are no longer two elements of the same name (eg. object is changed to Robject), the project then builds successfully. However the original elements names are required and expected by the remote system.

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