Search code examples
javawsdlejbweblogicweblogic12c

WSDL parsing causes outboudn internet connection to w3.org on weblogic12


the problem:

We are having 2 .war files, both providing a set of webservices (JDK8, EJB), so both contain a WSDL file. At deployment weblogic (12c R2) parses the WSDL files. Both contain a reference to w3.org(xmlns:xsd="http://www.w3.org/2001/XMLSchema"). For one of the WSDL files this does not causes an outbound connection to w3.org, but for the other it does, and since the server is not allowed to have an internet access for security reasons, this causes the deployment to fail.

I tried to compare web.xml, weblogic.xml, weblogic-application.xml and the two WSDL files, but I do not see any difference that could cause the different behavior. (The two .war files are deployed on the same server).

Does anybody has a suggestion how to solve this?

Thanks in advance,

Ben.


Solution

  • Well, I can't see much difference on those headers, anyway, the common workaround (when there is no internet connection) is to download the required XSD's to your project (war/jar) and reference them from WSDL without an URL, for instance:

    from:

    xsd="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    

    to:

    xsd="oasis-200401-wss-wssecurity-secext-1.0.xsd"