InterfaceContract interfaceContract = createDOMInterfaceContract(endpoint.getComponent(), endpoint.getService());
return new HazelcastServiceBindingProvider(endpoint, interfaceContract);
}
private InterfaceContract createDOMInterfaceContract(Component component, Contract contract) {
WebServiceBindingFactory wsFactory = extensionsRegistry.getExtensionPoint(WebServiceBindingFactory.class);
WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
BindingWSDLGenerator.generateWSDL(component, contract, wsBinding, extensionsRegistry, null);
InterfaceContract interfaceContract = wsBinding.getBindingInterfaceContract();
interfaceContract.getInterface().resetDataBinding(DOMDataBinding.NAME);
return interfaceContract;
}