?wsdl query does not work in combination with schemas with same file name in different paths

Solution In Progress - Updated -

Issue

This issue can be reduced down to something like this:

  • WSDL references two different schemas, e.g. schema1.xsd and schema2.xsd
  • Both schemas are in different folders, e.g. folder1 and folder2
  • Each schema references another schema with the same name, e.g. "mySchema.xsd"
  • There are two version of mySchema.xsd, one in folder1 and one in folder2

The problem with the scenario above is that one either schema1.xsd or schema2.xsd will have the wrong schemaLocation for mySchema.xsd because CXF uses the same schemaLocation for both versions of mySchema.xsd.

When the schemaLocation is populated, it doesn't resolve to the full URL causing the whole WSDL to fail because the schema's cannot be looked up.

Environment

  • Red Hat JBoss Enterprise Application Platform 6.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content