// This method is used for Dispatch client only private WSDLPort getPortModel(WSServiceDelegate owner, QName portName) { if (owner.getWsdlService() != null) { Iterable<WSDLPortImpl> ports = owner.getWsdlService().getPorts(); for (WSDLPortImpl port : ports) { if (port.getName().equals(portName)) return port; } } return null; }
/** * Creates {@link BindingImpl} for this {@link PortInfo}. * * @param webServiceFeatures User-specified features. * @param portInterface Null if this is for dispatch. Otherwise the interface the proxy is going * to implement */ public BindingImpl createBinding(WebServiceFeature[] webServiceFeatures, Class<?> portInterface) { WebServiceFeatureList r = new WebServiceFeatureList(webServiceFeatures); if (portModel != null) // merge features from WSDL r.mergeFeatures(portModel, portInterface == null /*if dispatch, true*/, false); // merge features from interceptor for (WebServiceFeature wsf : owner.serviceInterceptor.preCreateBinding(this, portInterface, r)) r.add(wsf); BindingImpl bindingImpl = BindingImpl.create(bindingId, r.toArray()); owner.getHandlerConfigurator().configureHandlers(this, bindingImpl); return bindingImpl; }
/** * @deprecated Only meant to be used via {@link javax.xml.ws.handler.PortInfo}. Use {@link * WSServiceDelegate#getServiceName()}. */ public QName getServiceName() { return owner.getServiceName(); }