String endpointAddress = findEndpointAddress();
String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
//definitions.getBindingId(_serviceName, portName);
Binding binding = getBinding(bindingId);
PortProxyHandler handler =
new PortProxyHandler(skeleton, endpointAddress, binding);
if (portName == null)
portName = new QName(skeleton.getNamespace(), skeleton.getPortName());
PortInfoImpl portInfo = new PortInfoImpl(bindingId, portName,
_serviceName, endpointAddress);
// Check for @HandlerChain on the service API
if (_handlerResolver == null) {
HandlerChain handlerChain =
(HandlerChain) api.getAnnotation(HandlerChain.class);
if (handlerChain != null)
_handlerResolver = JAXWSUtil.createHandlerResolver(api, handlerChain);
}
// Check for @HandlerChain on the Service
if (_handlerResolver == null) {
HandlerChain handlerChain =
(HandlerChain) _serviceClass.getAnnotation(HandlerChain.class);
if (handlerChain != null)
_handlerResolver = JAXWSUtil.createHandlerResolver(api, handlerChain);
}
if (_handlerResolver != null)
binding.setHandlerChain(_handlerResolver.getHandlerChain(portInfo));
_portMap.put(portName, portInfo);
Class[] interfaces = new Class[] {api, BindingProvider.class};