Resolution for “The WSDL is not semantically valid” error while working with XML schema files.

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

“The WSDL is not semantically valid: The element or type specified for part’AIAFault‘ in message ‘{http://union.ca.net/EnterpriseServices/Core/AccountingEntry/V1}FaultMsg’ cannot be found in any schema referenced by this wsdl. at AccountingEntryEBS.wsdl”

Reason: The part ‘AIAFault’ is defined in my WSDL (AccountingEntryEBS.wsdl) as below

<message name=“FaultMsg”>

<part name=AIAFault element=“corecom:Fault”/>

</message>

The element attribute value from the above code is “corecom:Fault”. The ‘corecom’ is the namespace defined in the WSDL (AccountingEntryEBS.wsdl) file as xmlns:corecom=http://union.ca.net/EnterpriseObjects/Core/Common/V2.

In the element=“corecom:Fault” the Fault is the datatype defined in the schema (MetaRef.xsd) file which have targetNamespace value as http://union.ca.net/EnterpriseObjects/Core/Common/V1.

So targetNamespace value in MetaRef.xsd file and the xmlns:corecom attribute value in my AccountingEntryEBS.wsdl file were mismatching.

 

Resolution: I modifed the xmlns:corecom attribute value in my AccountingEntryEBS.wsdl file from =http://union.ca.net/EnterpriseObjects/Core/Common/V2 to =http://union.ca.net/EnterpriseObjects/Core/Common/V1. So now both namespace values in my WSDL AccountingEntryEBS.wsdl file and schema MetaRef.xsd file are matching, which means now the XML parser was able to find the defination for ‘Fault’ datatype from the Schema file.

 

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

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