本文整理了Java中javax.xml.ws.Binding.getBindingID()
方法的一些代码示例,展示了Binding.getBindingID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.getBindingID()
方法的具体详情如下:
包路径:javax.xml.ws.Binding
类名称:Binding
方法名:getBindingID
[英]Get the URI for this binding instance.
[中]获取此绑定实例的URI。
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
String bindingId = endpoint.getJaxwsBinding().getBindingID();
代码示例来源:origin: org.jboss.ws/jbossws-common
/**
* Setups a given Binding instance using a specified CommonConfig
*
* @param binding the Binding instance to setup
* @param config the CommonConfig with the input configuration
*/
@SuppressWarnings("rawtypes")
public void setupConfigHandlers(Binding binding, CommonConfig config)
{
if (config != null) {
//start with the use handlers only to remove the previously set configuration
List<Handler> userHandlers = getNonConfigHandlers(binding.getHandlerChain());
List<Handler> handlers = convertToHandlers(config.getPreHandlerChains(), binding.getBindingID(), true); //PRE
handlers.addAll(userHandlers); //ENDPOINT
handlers.addAll(convertToHandlers(config.getPostHandlerChains(), binding.getBindingID(), false)); //POST
binding.setHandlerChain(handlers);
}
}
代码示例来源:origin: Talend/components
protected void publish() throws Exception {
int portNumber = FreePortFinder.findFreePort(28080, FreePortFinder.MAX_PORT_NUMBER);
URL endpointAddress = new URL("http://localhost:" + portNumber + "/services/" + portName);
logger.info("Endpoint address: {}", endpointAddress);
portMockAdapter = portAdapterClass.newInstance();
portMockAdapter.setEndpointAddress(endpointAddress);
// Publish the SOAP Web Service
endpoint = Endpoint.publish(endpointAddress.toString(), portMockAdapter);
assertTrue(endpoint.isPublished());
assertEquals("http://schemas.xmlsoap.org/wsdl/soap/http", endpoint.getBinding().getBindingID());
}
代码示例来源:origin: apache/cxf
String bindingId = endpoint.getJaxwsBinding().getBindingID();
内容来源于网络,如有侵权,请联系作者删除!