javax.xml.ws.spi.Provider.createServiceDelegate()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(8.7k)|赞(0)|评价(0)|浏览(278)

本文整理了Java中javax.xml.ws.spi.Provider.createServiceDelegate()方法的一些代码示例,展示了Provider.createServiceDelegate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider.createServiceDelegate()方法的具体详情如下:
包路径:javax.xml.ws.spi.Provider
类名称:Provider
方法名:createServiceDelegate

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);
}

相关文章