public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features) { ServiceDelegate sd = createServiceDelegate(null, null, serviceEndpointInterface); return sd.getPort(endpointReference, serviceEndpointInterface, features); }
@Override protected Object performInvocation(Exchange exchange, final Object serviceObject, Method m, Object[] paramArray) throws Exception { if (invoker != null) { return invoker.invoke(m, paramArray); } return super.performInvocation(exchange, serviceObject, m, paramArray); }
public W3CEndpointReference build() { return Provider.provider().createW3CEndpointReference(address, serviceName, endpointName, metadataElements, wsdlDocumentLocation, referenceParameters); }
/** * @since 2.2 */ public static Endpoint create(Object implementor, WebServiceFeature ... features) { return Provider.provider().createEndpoint(null, implementor, features); } /**
/** * Gets the location of the WSDL document for this Service. * * @return URL for the location of the WSDL document for * this service. **/ public java.net.URL getWSDLDocumentLocation() { return delegate.getWSDLDocumentLocation(); }
/** * Returns the configured handler resolver. * * @return HandlerResolver The {@code HandlerResolver} being * used by this {@code Service} instance, or {@code null} * if there isn't one. **/ public HandlerResolver getHandlerResolver() { return delegate.getHandlerResolver(); }
/** * Gets the name of this service. * @return Qualified name of this service **/ public QName getServiceName() { return delegate.getServiceName(); }
static <T extends Exception> Object newInstance(String className, String defaultImplClassName, ClassLoader classLoader, final ExceptionHandler<T> handler) throws T { try { return safeLoadClass(className, defaultImplClassName, classLoader).newInstance(); } catch (ClassNotFoundException x) { throw handler.createException(x, "Provider " + className + " not found"); } catch (Exception x) { throw handler.createException(x, "Provider " + className + " could not be instantiated: " + x); } }
public Endpoint createEndpoint(String bindingId, Class<?> implementorClass, Invoker invoker, WebServiceFeature ... features) { if (EndpointUtils.isValidImplementor(implementorClass)) { Bus bus = BusFactory.getThreadDefaultBus(); JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); if (features != null) { factory.getJaxWsServiceFactory().setWsFeatures(Arrays.asList(features)); } if (invoker != null) { factory.setInvoker(new JAXWSMethodInvoker(invoker)); try { invoker.inject(new WebServiceContextImpl()); } catch (Exception e) { throw new WebServiceException(new Message("ENDPOINT_CREATION_FAILED_MSG", LOG).toString(), e); } } EndpointImpl ep = new EndpointImpl(bus, null, factory); ep.setImplementorClass(implementorClass); return ep; } throw new WebServiceException(new Message("INVALID_IMPLEMENTOR_EXC", LOG).toString()); }
/** * @since 2.2 */ public static Endpoint create(String bindingId, Object implementor, WebServiceFeature ... features) { return Provider.provider().createEndpoint(bindingId, implementor, features); }
/** * Gets the location of the WSDL document for this Service. * * @return URL for the location of the WSDL document for * this service. **/ public java.net.URL getWSDLDocumentLocation() { return delegate.getWSDLDocumentLocation(); }
/** * Returns the configured handler resolver. * * @return HandlerResolver The <code>HandlerResolver</code> being * used by this <code>Service</code> instance, or <code>null</code> * if there isn't one. **/ public HandlerResolver getHandlerResolver() { return delegate.getHandlerResolver(); }
/** * Gets the name of this service. * @return Qualified name of this service **/ public QName getServiceName() { return delegate.getServiceName(); }
/** * Gets the location of the WSDL document for this Service. * * @return URL for the location of the WSDL document for * this service. **/ public java.net.URL getWSDLDocumentLocation() { return delegate.getWSDLDocumentLocation(); }
/** * Returns the configured handler resolver. * * @return HandlerResolver The {@code HandlerResolver} being * used by this {@code Service} instance, or {@code null} * if there isn't one. **/ public HandlerResolver getHandlerResolver() { return delegate.getHandlerResolver(); }
/** * Gets the name of this service. * @return Qualified name of this service **/ public QName getServiceName() { return delegate.getServiceName(); }
/** * Gets the location of the WSDL document for this Service. * * @return URL for the location of the WSDL document for * this service. **/ public java.net.URL getWSDLDocumentLocation() { return delegate.getWSDLDocumentLocation(); }
/** * Returns the configured handler resolver. * * @return HandlerResolver The <code>HandlerResolver</code> being * used by this <code>Service</code> instance, or <code>null</code> * if there isn't one. **/ public HandlerResolver getHandlerResolver() { return delegate.getHandlerResolver(); }
/** * Gets the name of this service. * @return Qualified name of this service **/ public QName getServiceName() { return delegate.getServiceName(); }
/** * Gets the location of the WSDL document for this Service. * * @return URL for the location of the WSDL document for * this service. **/ public java.net.URL getWSDLDocumentLocation() { return delegate.getWSDLDocumentLocation(); }