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

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

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

Provider.getPort介绍

[英]The getPort method returns a proxy. If there are any reference parameters in the endpointReference, then those reference parameters MUST appear as SOAP headers, indicating them to be reference parameters, on all messages sent to the endpoint. The parameter serviceEndpointInterface specifies the service endpoint interface that is supported by the returned proxy. The parameter endpointReference specifies the endpoint that will be invoked by the returned proxy. In the implementation of this method, the JAX-WS runtime system takes the responsibility of selecting a protocol binding (and a port) and configuring the proxy accordingly from the WSDL metadata of the serviceEndpointInterface and the EndpointReference. For this method to successfully return a proxy, WSDL metadata MUST be available and the endpointReference MUST contain an implementation understood serviceName metadata.
[中]getPort方法返回一个代理。如果endpointReference中有任何引用参数,那么这些引用参数必须在发送到端点的所有消息上显示为SOAP头,指示它们是引用参数。参数serviceEndpointInterface指定返回的代理所支持的服务端点接口。参数endpointReference指定将由返回的代理调用的端点。在该方法的实现中,JAX-WS运行时系统负责选择协议绑定(和端口),并根据serviceEndpointInterface和EndpointReference的WSDL元数据相应地配置代理。要使此方法成功返回代理,WSDL元数据必须可用,endpointReference必须包含可理解的serviceName元数据。

代码示例

代码示例来源:origin: org.apache.axis2/axis2-jaxws-api

public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) {
  return Provider.provider().getPort(this, serviceEndpointInterface, features);
}

代码示例来源:origin: org.apache.openejb/javaee-api

public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) {
  return Provider.provider().getPort(this, serviceEndpointInterface, features);
}

代码示例来源:origin: jakarta.xml.ws/jakarta.xml.ws-api

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

代码示例来源:origin: javax.xml.ws/com.springsource.javax.xml.ws

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

代码示例来源:origin: org.jboss.spec.javax.xml.ws/jboss-jaxws-api_2.2_spec

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

代码示例来源:origin: javax/javaee-endorsed-api

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

代码示例来源:origin: org.glassfish.metro/webservices-api-osgi

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

代码示例来源:origin: org.glassfish.metro/webservices-api

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

代码示例来源:origin: jboss/jboss-javaee-specs

return Provider.provider().getPort(this, serviceEndpointInterface,
                  features);

相关文章