Error importing WSDL: messaging.resource.WSDLCompileFailed

Hello,

I have to import a WSDL to validate SOAP messages against it.

I know XSDs have to be in the same folder because APIGEE doesn't allow them to be in separate ones, so I've validated the following with SoapUI:

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://loyaltycards.com/loyalty/services/v1_0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://schemas.boots.com/loyalty/services/v1_0" schemaLocation="RetrieveCustomer.xsd"/>
<xs:import namespace="http://schemas.boots.com/loyalty/services/v1_0" schemaLocation="UpdateVirtualCampaign.xsd"/>
<xs:import namespace="http://schemas.boots.com/loyalty/services/v1_0" schemaLocation="RetrieveVirtualCampaign.xsd"/>
<xs:import namespace="http://schemas.boots.com/loyalty/datatypes/common/v1_0" schemaLocation="CommonDataTypes.xsd"/>
</xs:schema>

But when deploying the API proxy I get the following error message:

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6:deploy (deploy-bundle-step) on project loyalty-api: : MojoExecutionException: com.google.api.client.http.HttpResponseException: 400 Bad Request
[ERROR] {
[ERROR]   "code" : "steps.messagevalidation.ResourceCompileFailed",
[ERROR]   "message" : "MessageValidation MessageValidation.Loyalty.RetrieveCustomer: Failed to compile resource LoyaltyCard_V0.1.wsdl. Context Revision:16;APIProxy:loyalty-api;Organization:bootssandbox;Environment:dev",
[ERROR]   "contexts" : [ ],
[ERROR]   "cause" : {
[ERROR]     "code" : "messaging.resource.WSDLCompileFailed",
[ERROR]     "message" : "Compilation of wsdl resource LoyaltyCard_V0.1.wsdl failed",
[ERROR]     "contexts" : [ ],
[ERROR]     "cause" : {
[ERROR]       "message" : "WSDLException (at /wsdl:definitions/wsdl:types/xs:schema): faultCode=PARSER_ERROR: Problem parsing 'file:/var/tmp/schemaextractor3587948710632509254.dir/CommonDataTypes.xsd'.: java.io.FileNotFoundException: /var/tmp/schemaextractor3587948710632509254.dir/CommonDataTypes.xsd (No such file or directory)",
[ERROR]       "contexts" : [ ],
[ERROR]       "cause" : {
[ERROR]         "message" : "/var/tmp/schemaextractor3587948710632509254.dir/CommonDataTypes.xsd (No such file or directory)",
[ERROR]         "contexts" : [ ]
[ERROR]       }
[ERROR]     }
[ERROR]   }
[ERROR] }

This is the structure I have in my code (all the files in the 'wsdl' folder):

9397-annotation-2019-11-07-123643.png

Please can you help me?

0 0 437
0 REPLIES 0