@SuppressWarnings("unchecked") @Override public ServiceDelegate createServiceDelegate(final URL wsdlDocumentLocation, final QName serviceName, final Class serviceClass) { ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass); serviceDelegate = new ServiceDelegateWrapper(serviceDelegate); return serviceDelegate; }
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class serviceClass) { ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass); serviceDelegate = new ServiceDelegateWrapper(serviceDelegate); return serviceDelegate; }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
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); } return serviceDelegate; }
/** * @since 2.2 */ protected Service(URL wsdlDocumentLocation, QName serviceName, WebServiceFeature... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass(), features); }
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); } return serviceDelegate; }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass(), features); }
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); } return serviceDelegate; }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass(), features); }
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
protected Service(URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass()); } /**
protected Service(URL wsdlDocumentLocation, QName serviceName) { _delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass()); }
/** * Creates a {@code Service}. * * The specified WSDL document location and service qualified name MUST * uniquely identify a {@code wsdl:service} element. * * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
/** * Creates a {@code Service}. * * The specified WSDL document location and service qualified name MUST * uniquely identify a {@code wsdl:service} element. * * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
/** * Creates a {@code Service}. * * The specified WSDL document location and service qualified name MUST * uniquely identify a {@code wsdl:service} element. * * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
/** * Creates a {@code Service}. * * The specified WSDL document location and service qualified name MUST * uniquely identify a {@code wsdl:service} element. * * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); }
/** * Creates a {@code Service}. The created instance is * configured with the web service features. * * The specified WSDL document location and service qualified name MUST * uniquely identify a {@code wsdl:service} element. * * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service * @param features Web Service features that must be configured on * the service. If the provider doesn't understand a feature, * it must throw a WebServiceException. */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass(), features); }
/** * Creates a {@code Service}. The created instance is * configured with the web service features. * * The specified WSDL document location and service qualified name MUST * uniquely identify a {@code wsdl:service} element. * * @param wsdlDocumentLocation {@code URL} for the WSDL document location * for the service * @param serviceName {@code QName} for the service * @param features Web Service features that must be configured on * the service. If the provider doesn't understand a feature, * it must throw a WebServiceException. */ protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) { delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass(), features); }
private static WinRm doCreateServiceWithReflectivelySetDelegate() { WinRmService service = doCreateService_1_CreateMinimalServiceInstance(); try { Field delegateField = javax.xml.ws.Service.class.getDeclaredField("delegate"); //ALLOW CXF SPECIFIC SERVICE DELEGATE ONLY! delegateField.setAccessible(true); ServiceDelegate previousDelegate = (ServiceDelegate) delegateField.get(service); if (!previousDelegate.getClass().getName().contains("cxf")) { ServiceDelegate serviceDelegate = ((Provider) Class.forName("org.apache.cxf.jaxws.spi.ProviderImpl").newInstance()) .createServiceDelegate(WinRmService.WSDL_LOCATION, WinRmService.SERVICE, service.getClass()); delegateField.set(service, serviceDelegate); } } catch (Exception e) { throw new RuntimeException("Error reflectively setting CXF WS service delegate", e); } return doCreateService_2_GetClient(service); }