本文整理了Java中javax.xml.ws.spi.Provider.createServiceDelegate()
方法的一些代码示例,展示了Provider.createServiceDelegate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.createServiceDelegate()
方法的具体详情如下:
包路径:javax.xml.ws.spi.Provider
类名称:Provider
方法名:createServiceDelegate
[英]Creates a service delegate object.
[中]创建服务委托对象。
代码示例来源:origin: org.apache.openejb/openejb-client
@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;
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-client
public ServiceDelegate createServiceDelegate(URL wsdlDocumentLocation, QName serviceName, Class serviceClass) {
ServiceDelegate serviceDelegate = delegate.createServiceDelegate(wsdlDocumentLocation, serviceName, serviceClass);
serviceDelegate = new ServiceDelegateWrapper(serviceDelegate);
return serviceDelegate;
}
代码示例来源:origin: org.jboss.spec.javax.xml.ws/jboss-jaxws-api_2.2_spec
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
代码示例来源:origin: org.apache.openejb/openejb-core
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;
}
代码示例来源:origin: org.apache.openejb/javaee-api
/**
* @since 2.2
*/
protected Service(URL wsdlDocumentLocation, QName serviceName, WebServiceFeature... features) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass(), features);
}
代码示例来源:origin: org.apache.tomee/openejb-core
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;
}
代码示例来源:origin: org.jboss.spec.javax.xml.ws/jboss-jaxws-api_2.2_spec
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass(), features);
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
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;
}
代码示例来源:origin: javax/javaee-endorsed-api
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
代码示例来源:origin: javax/javaee-endorsed-api
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName, WebServiceFeature ... features) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass(), features);
}
代码示例来源:origin: javax.xml.ws/com.springsource.javax.xml.ws
protected Service(java.net.URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation,
serviceName,
this.getClass());
}
代码示例来源:origin: org.apache.openejb/javaee-api
protected Service(URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass());
}
/**
代码示例来源:origin: org.apache.axis2/axis2-jaxws-api
protected Service(URL wsdlDocumentLocation, QName serviceName) {
_delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass());
}
代码示例来源:origin: jakarta.xml.ws/jakarta.xml.ws-api
/**
* 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());
}
代码示例来源:origin: org.glassfish.metro/webservices-api
/**
* 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());
}
代码示例来源:origin: org.glassfish.metro/webservices-api-osgi
/**
* 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());
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* 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());
}
代码示例来源:origin: jakarta.xml.ws/jakarta.xml.ws-api
/**
* 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);
}
代码示例来源:origin: org.glassfish.metro/webservices-api
/**
* 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);
}
代码示例来源:origin: io.cloudsoft.windows/winrm4j-client
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);
}
内容来源于网络,如有侵权,请联系作者删除!