Resolution for targetNamespace of the referenced XML Schema mismatch.

While I was working on XML schema definition (XSD) files, during compilation I was receiving the below error –

The targetNamespace of the referenced XML Schema does not match the expected namespace. at AccountingEntryEBS.wsdl”

Reason: In my AccountingEntryEBS.wsdl file I’m importing another schema file as below –

<xsd:import namespace=http://union.ca.net/EnterpriseObjects/Core/Common/V2 schemaLocation=“../Schemas/Meta.xsd/>

In Meta.xsd schema file the targetNamespace attribute values was definesd as ‘http://union.ca.net/EnterpriseObjects/Core/Common/V1’.

Since in my reference namespace URL (http://union.ca.net/EnterpriseObjects/Core/Common/V2) and the targetNamespace attribute value (http://union.ca.net/EnterpriseObjects/Core/Common/V1) mismatches this issue was araising.

Resoultion: I have modified my reference namespace URL from http://union.ca.net/EnterpriseObjects/Core/Common/V2 to http://union.ca.net/EnterpriseObjects/Core/Common/V1. This fixed the issue.

 

Advertisements
This entry was posted in BPEL, Oracle Service Bus (OSB), Service Oriented Architecture (SOA 11g), XML and tagged , , , , . Bookmark the permalink.

2 Responses to Resolution for targetNamespace of the referenced XML Schema mismatch.

  1. Mohit Sharma says:

    Thanks for sharing. it worked for me too.

    Regards
    Mohit

  2. Shaolin says:

    Thanks for your help =)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s