AnsweredAssumed Answered

Stopping the API Gateway from trying to connect to the internet while importing a WSDL

Question asked by richiethom on Apr 12, 2018
Latest reply on Apr 27, 2018 by Mark_HE

I am trying to import a schema with the following structure:

 

<definitions name="customerrelationships" targetNamespace="http://mynamespace/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:swaRef="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:tns="http://mynamespace/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <types>
       
            <xs:schema targetNamespace="http://mynamespace/" version="1.0" xmlns:tns="http://mynamespace/" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:import namespace="http://ws-i.org/profiles/basic/1.1/xsd" schemaLocation="http://ws-i.org/profiles/basic/1.1/swaref.xsd"/>
                <xs:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="http://www.w3.org/2005/05/xmlmime"/>
               
                ...
            </xs:schema>
   
    ...
   
</definitions>

 

 

When I import the schema, the API tries to connect to the schemaLocation values, which it is not able to do as it cannot contact the internet. These two schemaLocation values are already listed in the Manage Global Resources window in the System ID column, but despite this, the API Gateway still tries to contact the internet.

 

 

What am I doing wrong?

Outcomes