Saturday, May 13, 2017

java wsdl bypass service check on deploy



we need to disable endpoint testing at system startup. Often the environments are separate, so it is not possible to validate a service in test or production using a development url!

Remove jax_ws_catalog.xml file form the artefact!


On the WS client you can disabl wsdlAddress validation as follow:

MyService service = new MyService();
MyServiceInterface port = service.getMyServicePort();
BindingProvider bindingProvider = (BindingProvider) port;
bindingProvider.getRequestContext().put(
    "set-jaxb-validation-event-handler", Boolean.FALSE);