This discussion is archived
3 Replies Latest reply: Jun 11, 2012 2:23 AM by robert224810 RSS

Request Delayed Response - Duplicated definition for: ‘EndpointReference’

robert224810 Explorer
Currently Being Moderated
Hi,
I am trying to make one composite call another via the request delayed response message exchange pattern.
The composite is a providor ABCS.

I have created a WSDL with
- Two message types (one request one response)
- Two Port types (again req and response)
- Two partnerLinkType (one request and one response)

The request message is going to be from one schema (It's an EBM)
The response message is going to be from another (It's an ABM)

I have imported both the schemas in the top of the WSDL document in the types tag:
<types>
     <schema xmlns="http://www.w3.org/2001/XMLSchema">
               <import
               namespace="http://ic.ac.uk/AIAMetaData/AIAComponents/EnterpriseObjectsLibrary/Core/SYS/IC/TransactionRequest/V1/TransactionRequestEBM"
               schemaLocation="oramds:/apps/AIAMetaData/AIAComponents/EnterpriseObjectLibrary/Core/SYS/IC/TransactionRequest/V1/TransactionRequestEBM.xsd"
          />
               <import
               namespace="http://ic.ac.uk/AIAMetaData/AIAComponents/ApplicationObjectLibrary/Ebiz/IC/V1/schemas/ProcessTransactionMSg"
               schemaLocation="oramds:/apps/AIAMetaData/AIAComponents/ApplicationObjectLibrary/Ebiz/IC/V1/schemas/ProcessTransactionMsg.xsd"
          />
     
     </schema>
</types>

I have created the request composites and they work and run fine.
I am now trying to execute the response messages.
I think I have created an invalid schema because I am getting error messages in JDeveloper.
The error comes up in a number of places, one of which is:
In the transport which needs to call back the ABCS with a response
Define a new schema,
select element and press torch
Goto Partner link types and select the partnet link for the response
select it's wsdl
goto Inline Schemas,

It then displays the message Exception: Error occured reading inline schemas.

I can click on show detailed node information and it gives more detail of the message.
Basically it is a lot of messages like:
Duplicated definition for: ‘EndpointReference’
Duplicated definition for: ‘EndpointReferenceType’
etc.

You can see this error https://code.metcarob.com/node/123

This problem also occurs when I try and setup Coroleation Sets, and when I create test suites.

I have traced the error to the face that I import two seperate xsd files into my wsdl,
one for the ABM and one for the EBM.

Both these files (via lots of imports) end up linking to the same file in order to provide common types,
in this case it is WS-Addressing.xsd

since this file is linked twice I have duplicate definitions.

The problem is that both files need to link to this xsd because they need to reference types inside it.

Can anyone point me in the right direction.
Thanks
Robert

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points