Thursday, August 25, 2011

XML-24500 can not build schema

Problem:

I created a simple Mediator project where the WSDL interface was defined as an MDS import (technically, the problem here made no difference whether the WSDL was MDS referenced, HTTP referenced, or local to the project).


When compiling the SOA Suite 11g project via JDeveloper, the following error is returned:
Buildfile: C:\Oracle\jdev\jdeveloper\bin\ant-sca-compile.xml

scac:
     [scac] Validating composite "C:\Users\anaga\jdev_projects\Temp\Project2\composite.xml"
     [scac]
     [scac] XML-24500: (Error) Can not build schema ' ' located at 'urn:oracle:bpel:top-xsd:noNamespaceXSD:TEMP_TOP.__OAUX_GENXSD_.TOP.XSD'
     [scac] error: location {/ns:composite/ns:import[@location='file:/C:/Users/anaga/jdev_projects/Temp/Project2/SalesOrderEBS.wsdl']}: Load of wsdl "SalesOrderEBS.wsdl with Message part element undefined in wsdl [file:/C:/Users/anaga/jdev_projects/Temp/Project2/SalesOrderEBS.wsdl] part name = CreateSalesOrderListEBM    type = {http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SalesOrder/V2}CreateSalesOrderListEBM" failed
     [scac] warning: in Mediator1.mplan: Operation\Event "CreateSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "SyncCreateSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "CreateSalesOrderList" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "QuerySalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "QuerySalesOrderList" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "SyncUpdateSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "UpdateSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "UpdateSalesOrderList" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "DeleteSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "DeleteSalesOrderList" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "SyncSalesOrderList" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "ValidateSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "ProcessSalesOrder" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "ProcessSalesOrderShippingChargeCalculation" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "ProcessSalesOrderATPCheck" does not contain case. No operation\event will be executed\processed respectively.
     [scac] warning: in Mediator1.mplan: Operation\Event "QuerySalesOrderCommon" does not contain case. No operation\event will be executed\processed respectively.

BUILD FAILED
C:\Oracle\jdev\jdeveloper\bin\ant-sca-compile.xml:269: Java returned: 1 Check log file : C:\Users\anaga\jdev_projects\Temp\Project2\SCA-INF\classes\scac.log for errors

Total time: 3 seconds

Solution:

There may be a namespace conflict. This behavior appears to be consistent with JDeveloper 11g and the AIA Foundation Pack 11g WSDLs.

1. Edit the .wsdl file (whether it's on the MDS, HTTP server, or local)

2.  Make the following change, and try again:
OLD:
<xsd:schema targetNamespace="http://xmlns.oracle.com/EnterpriseServices/SalesOrder/V2" elementFormDefault="qualified">

NEW:
<xsd:schema>

Applicable Versions:
  • Oracle JDeveloper 11g (11.1.1.5)
  • Oracle SOA Suite 11g (11.1.1.4)
  • Oracle AIA Foundation Pack 11g (11.1.1.4)

References:

Ahmed Aboulnaga

No comments: