Apigee X deployment error : messaging.resource.WSDLCompileFailed

Hi , 
I am trying to validate the request against a wsdl file, it has some xsds import as well. 

All the files are in resources section where wsdl files are in wsdl folder and xsds in xsd folder.
Importing xsds into wsdl syntax is  like

<wsdl:types>
   <xsd:schema targetNamespace="urn:abc.xyz.com/Process">
     <xsd:include schemaLocation="xsd://ProcessIdentity.xsd"/>
     <xsd:include schemaLocation="xsd://ProcessPayload.xsd"/>
   </xsd:schema>
</wsdl:types>

while deploying it fails with this error "messaging.resource.WSDLCompileFailed: "Compilation of wsdl resource process.wsdl failed".

Please help to resolve this.

1 4 117
4 REPLIES 4

Hi @dchiesa1 , 
Issue still persist, I am following the document for xsd paths, it is not compiling.

     <xsd:include schemaLocation="xsd://ProcessIdentity.xsd"/>
     <xsd:include schemaLocation="xsd://ProcessPayload.xsd"/>

 

Any updates

It's not clear how you have the SOAP Message Validation policy configured since you did not include this in your previous posts. I will speculate and say that it is not set up correctly, which is why the WSDL cannot be compiled. Make sure you include the XSD resources in the SOAP Message Validation policy. It should look something like this -

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessageValidation continueOnError="false" enabled="true" name="SOAP-Message-Validation">
    <DisplayName>SOAP-Message-Validation</DisplayName>
    <Properties/>
    <Source>message</Source>
    <SOAPMessage version="1.1"/>
    <Element namespace="http://soap.company.com/OrderSvc">MySoapRequest</Element>
    <ResourceURL>xsd://ProcessIdentity.xsd</ResourceURL>
    <ResourceURL>xsd://ProcessPayload.xsd</ResourceURL>
    <ResourceURL>wsdl://MySoapWsdl.wsdl</ResourceURL>
</MessageValidation>

 

XSD elements must be listed before the reference to your WSDL resource file.

Check the SOAPMessage versions tag in your policy.

Check that loading the WSDL into other tools eg SoapUI can load your wsdl without errors.