Package javax.xml.ws.spi

Examples of javax.xml.ws.spi.ServiceDelegate


    System.out.println("Access web service " + wsdlURL + " / " + wrappedServiceQName + " .. ");

    org.jboss.ws.core.jaxws.spi.ProviderImpl provider = new org.jboss.ws.core.jaxws.spi.ProviderImpl();
   
    ServiceDelegate service = provider.createServiceDelegate(wsdlURL, wrappedServiceQName, this.getClass());

    System.out.println("Web service accessed as " + service.getServiceName());
   
    DigitalItemDeclarartionsWebsServiceRemote digitalItemDeclarartionsWebsService = service.getPort(DigitalItemDeclarartionsWebsServiceRemote.class);

    System.out.println("Web service port accessed");

    if(localTCPMonPort != -1) { // redirect the client
      BindingProvider bp = (BindingProvider)digitalItemDeclarartionsWebsService;
View Full Code Here


    public Provider getDelegate() {
        return delegate;
    }

    public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
        ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
        // the PortRef list is bound to this thread when using @WebServiceRef injection
        // When using the JAX-WS API we don't need to wrap the ServiceDelegate
        if (threadPortRefs.get() != null) {
            serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
           
View Full Code Here

    public Provider getDelegate() {
        return delegate;
    }

    public ServiceDelegate createServiceDelegate(final URL wsdlDocumentLocation, final QName serviceName, final Class serviceClass) {
        ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
        // the PortRef list is bound to this thread when using @WebServiceRef injection
        // When using the JAX-WS API we don't need to wrap the ServiceDelegate
        if (threadPortRefs.get() != null) {
            serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
View Full Code Here

    }

    public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface,
                         WebServiceFeature... features) {
        ServiceDelegate sd = createServiceDelegate(null, null, serviceEndpointInterface);
        return sd.getPort(endpointReference, serviceEndpointInterface, features);
    }
View Full Code Here

    }
   
    private ServiceImpl findDelegate() {
        for (Field f : ReflectionUtil.getDeclaredFields(Service.class)) {
            if (ServiceDelegate.class.equals(f.getType())) {
                ServiceDelegate del = ReflectionUtil.accessDeclaredField(f, this, ServiceDelegate.class);
                if (del instanceof ServiceImpl) {
                    return (ServiceImpl)del;
                }
                throw new WebServiceException("Delegate of class " + del.getClass() + " is not a CXF delegate.  "
                                              + " Check the classpath to make sure CXF is loaded first.");
            }
        }
        throw new WebServiceException("Could not find CXF service delegate");
    }
View Full Code Here

    }

    public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface,
                         WebServiceFeature... features) {
        ServiceDelegate sd = createServiceDelegate(null, null, serviceEndpointInterface);
        return sd.getPort(endpointReference, serviceEndpointInterface, features);
    }
View Full Code Here

    }

    public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface,
                         WebServiceFeature... features) {
        ServiceDelegate sd = createServiceDelegate(null, null, serviceEndpointInterface);
        return sd.getPort(endpointReference, serviceEndpointInterface, features);
    }
View Full Code Here

      QName serviceName = null;
      NativeEndpointReference nepr = EndpointReferenceUtil.transform(NativeEndpointReference.class, epr);
     
      wsdlLocation = nepr.getWsdlLocation();
      serviceName = nepr.getServiceName();
      ServiceDelegate delegate = createServiceDelegate(wsdlLocation, serviceName, Service.class);
      return delegate.getPort(epr, sei, features);
   }
View Full Code Here

    public Provider getDelegate() {
        return delegate;
    }

    public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
        ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
        serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
        return serviceDelegate;
    }
View Full Code Here

    public Provider getDelegate() {
        return delegate;
    }

    public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
        ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
        serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
        return serviceDelegate;
    }
View Full Code Here

TOP

Related Classes of javax.xml.ws.spi.ServiceDelegate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.