Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide option to pass inlineSchemas value at runtime in jaxws-rt. #49

Open
uttambhatia opened this issue Apr 7, 2019 · 0 comments

Comments

@uttambhatia
Copy link

uttambhatia commented Apr 7, 2019

Please provide option to pass inlineSchemas value at runtime in jaxws-rt.

Currently value for inlineSchemas is set to false and there is no option to change it at runtime/startup.

See the below code snippet spl. marked as ** :: com.sun.xml.ws.server.EndpointFactory.java

private static SDDocumentImpl generateWSDL(WSBinding binding, AbstractSEIModelImpl seiModel, Collection docs,
Container container, Class implType) {
BindingID bindingId = binding.getBindingId();
if (!bindingId.canGenerateWSDL()) {
throw new ServerRtException("can.not.generate.wsdl", bindingId);
}

    if (bindingId.toString().equals(SOAPBindingImpl.X_SOAP12HTTP_BINDING)) {
        String msg = ServerMessages.GENERATE_NON_STANDARD_WSDL();
        logger.warning(msg);
    }

  
    WSDLGenResolver wsdlResolver = new WSDLGenResolver(docs,seiModel.getServiceQName(),seiModel.getPortTypeName());
    WSDLGenInfo wsdlGenInfo = new WSDLGenInfo(); 
    wsdlGenInfo.setWsdlResolver(wsdlResolver);
    wsdlGenInfo.setContainer(container);
    wsdlGenInfo.setExtensions(ServiceFinder.find(WSDLGeneratorExtension.class).toArray());
    **wsdlGenInfo.setInlineSchemas(false);**
    wsdlGenInfo.setSecureXmlProcessingDisabled(isSecureXmlProcessingDisabled(binding.getFeatures()));
    seiModel.getDatabinding().generateWSDL(wsdlGenInfo);
    return wsdlResolver.updateDocs();
}

I expect - make inlineSchemas as configurable/ runtime argument passing at startup/load time. Please make it in next release 2.4.0.RELEASE. I need this for backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant