protected <T> T createPort(QName portName, EndpointReferenceType epr, Class<T> serviceEndpointInterface) { return createPort(portName, epr, serviceEndpointInterface, new WebServiceFeature[]{}); }
public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) { try { return createPort(null, null, serviceEndpointInterface, features); } catch (ServiceConstructionException e) { throw new WebServiceException(e); } }
public <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features) { if (portName == null) { throw new WebServiceException(BUNDLE.getString("PORT_NAME_NULL_EXC")); } try { return createPort(portName, null, serviceEndpointInterface, features); } catch (ServiceConstructionException e) { throw new WebServiceException(e); } }
public <T> T getPort(EndpointReferenceType endpointReference, Class<T> type, WebServiceFeature... features) { endpointReference = EndpointReferenceUtils.resolve(endpointReference, bus); QName serviceQName = EndpointReferenceUtils.getServiceName(endpointReference, bus); String portName = EndpointReferenceUtils.getPortName(endpointReference); QName portQName = null; if (portName != null && serviceQName != null) { String ns = serviceQName.getNamespaceURI(); if (StringUtils.isEmpty(ns)) { //hack to workaround a xalan bug for (QName qn : portInfos.keySet()) { if (portName.equals(qn.getLocalPart())) { ns = qn.getNamespaceURI(); } } } if (StringUtils.isEmpty(ns) && serviceName != null) { ns = serviceName.getNamespaceURI(); } portQName = new QName(ns, portName); } return createPort(portQName, endpointReference, type, features); }
protected <T> T createPort(QName portName, EndpointReferenceType epr, Class<T> serviceEndpointInterface) { return createPort(portName, epr, serviceEndpointInterface, new WebServiceFeature[]{}); }
public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) { try { return createPort(null, null, serviceEndpointInterface, features); } catch (ServiceConstructionException e) { throw new WebServiceException(e); } }
@Override protected <T> T createPort(QName portName, EndpointReferenceType epr, Class<T> serviceEndpointInterface, WebServiceFeature... features) { T port = super.createPort(portName, epr, serviceEndpointInterface, features); setupClient(port, serviceEndpointInterface, features); return port; }
public <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features) { if (portName == null) { throw new WebServiceException(BUNDLE.getString("PORT_NAME_NULL_EXC")); } try { return createPort(portName, null, serviceEndpointInterface, features); } catch (ServiceConstructionException e) { throw new WebServiceException(e); } }
public <T> T getPort(EndpointReferenceType endpointReference, Class<T> type, WebServiceFeature... features) { endpointReference = EndpointReferenceUtils.resolve(endpointReference, bus); QName serviceQName = EndpointReferenceUtils.getServiceName(endpointReference, bus); String portName = EndpointReferenceUtils.getPortName(endpointReference); QName portQName = null; if (portName != null && serviceQName != null) { String ns = serviceQName.getNamespaceURI(); if (StringUtils.isEmpty(ns)) { //hack to workaround a xalan bug for (QName qn : portInfos.keySet()) { if (portName.equals(qn.getLocalPart())) { ns = qn.getNamespaceURI(); } } } if (StringUtils.isEmpty(ns) && serviceName != null) { ns = serviceName.getNamespaceURI(); } portQName = new QName(ns, portName); } return createPort(portQName, endpointReference, type, features); }