热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.axis2.description.AxisEndpoint.setName()方法的使用及代码示例

本文整理了Java中org.apache.axis2.description.AxisEndpoint.setName()方法的一些代码示例,展示了Axis

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

AxisEndpoint.setName介绍

暂无

代码示例

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

public static void addSoap12Endpoint(AxisService axisService, String protocol,
String endpointName) throws Exception {
AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
httpSoap12Endpoint.setName(endpointName);
httpSoap12Endpoint.setParent(axisService);
httpSoap12Endpoint.setTransportInDescription(protocol);
populateSoap12Endpoint(axisService, httpSoap12Endpoint, null);
axisService.addEndpoint(httpSoap12Endpoint.getName(), httpSoap12Endpoint);
}

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

public static void addHttpEndpoint(AxisService axisService, String url) {
String protocol = org.apache.axis2.util.Utils.getURIScheme(url);
String httpEndpointName = getEndpointName(axisService, protocol, null);

AxisEndpoint httpEndpoint = new AxisEndpoint();
httpEndpoint.setName(httpEndpointName);
httpEndpoint.setParent(axisService);
httpEndpoint.setEndpointURL(url.toString());
httpEndpoint.setTransportInDescription(protocol);
populateHttpEndpoint(axisService, httpEndpoint, null);
axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint);
}

代码示例来源:origin: apache/axis2-java

public static void addHttpEndpoint(AxisService axisService,
String protocol, String endpointName) {
AxisEndpoint httpEndpoint = new AxisEndpoint();
httpEndpoint.setName(endpointName);
httpEndpoint.setParent(axisService);
httpEndpoint.setTransportInDescription(protocol);
populateHttpEndpoint(axisService, httpEndpoint, null);
axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint);
}

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

public static void addHttpEndpoint(AxisService axisService,
String protocol, String endpointName) {
AxisEndpoint httpEndpoint = new AxisEndpoint();
httpEndpoint.setName(endpointName);
httpEndpoint.setParent(axisService);
httpEndpoint.setTransportInDescription(protocol);
populateHttpEndpoint(axisService, httpEndpoint, null);
axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint);
}

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

private AxisEndpoint processEndpoint(Endpoint endpoint, Interface serviceInterface) throws AxisFault {
AxisEndpoint axisEndpoint = new AxisEndpoint();
axisEndpoint.setParent(axisService);
axisEndpoint.setName(endpoint.getName().toString());
setEndpointURL(axisEndpoint, endpoint.getAddress().toString());
Binding binding = endpoint.getBinding();
AxisBinding axisBinding;
if (processedBindings.containsKey(binding.getName())) {
axisBinding = (AxisBinding) processedBindings.get(binding.getName());
} else {
axisBinding = processBinding(binding, serviceInterface);
}
axisEndpoint.setBinding(axisBinding);

String bindingType = binding.getType().toString();
if (bindingType.equals(WSDL2Constants.URI_WSDL2_SOAP)) {
processSOAPBindingEndpointExtensions(endpoint, axisEndpoint);
} else if (bindingType.equals(WSDL2Constants.URI_WSDL2_HTTP)) {
processHTTPBindingEndpointExtensions(endpoint, axisEndpoint);
}
addDocumentation(axisEndpoint, endpoint.toElement());
return axisEndpoint;
}

代码示例来源:origin: apache/axis2-java

public static void addSoap12Endpoint(AxisService axisService, String protocol,
String endpointName) throws Exception {
AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
httpSoap12Endpoint.setName(endpointName);
httpSoap12Endpoint.setParent(axisService);
httpSoap12Endpoint.setTransportInDescription(protocol);
populateSoap12Endpoint(axisService, httpSoap12Endpoint, null);
axisService.addEndpoint(httpSoap12Endpoint.getName(), httpSoap12Endpoint);
}

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

public static void addSoap12Endpoint(AxisService axisService, String url)
throws Exception {
String protocol = org.apache.axis2.util.Utils.getURIScheme(url);
String soap12EndpointName = getEndpointName(axisService, protocol, "Soap12");
AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
httpSoap12Endpoint.setName(soap12EndpointName);
httpSoap12Endpoint.setParent(axisService);
httpSoap12Endpoint.setEndpointURL(url.toString());
httpSoap12Endpoint.setTransportInDescription(protocol);
populateSoap12Endpoint(axisService, httpSoap12Endpoint, null);
axisService.addEndpoint(httpSoap12Endpoint.getName(),
httpSoap12Endpoint);
}

代码示例来源:origin: apache/axis2-java

private AxisEndpoint processEndpoint(Endpoint endpoint, Interface serviceInterface) throws AxisFault {
AxisEndpoint axisEndpoint = new AxisEndpoint();
axisEndpoint.setParent(axisService);
axisEndpoint.setName(endpoint.getName().toString());
setEndpointURL(axisEndpoint, endpoint.getAddress().toString());
Binding binding = endpoint.getBinding();
AxisBinding axisBinding;
if (processedBindings.containsKey(binding.getName())) {
axisBinding = (AxisBinding) processedBindings.get(binding.getName());
} else {
axisBinding = processBinding(binding, serviceInterface);
}
axisEndpoint.setBinding(axisBinding);

String bindingType = binding.getType().toString();
if (bindingType.equals(WSDL2Constants.URI_WSDL2_SOAP)) {
processSOAPBindingEndpointExtensions(endpoint, axisEndpoint);
} else if (bindingType.equals(WSDL2Constants.URI_WSDL2_HTTP)) {
processHTTPBindingEndpointExtensions(endpoint, axisEndpoint);
}
addDocumentation(axisEndpoint, endpoint.toElement());
return axisEndpoint;
}

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

axisEndpoint.setName(axisService.getName() + transportIn + usedAxisBinding.getName().getLocalPart() + "Endpoint");
axisEndpoint.setBinding(usedAxisBinding);
axisEndpoint.setTransportInDescription(transportIn);

代码示例来源:origin: apache/axis2-java

axisEndpoint.setName(axisService.getName() + transportIn + usedAxisBinding.getName().getLocalPart() + "Endpoint");
axisEndpoint.setBinding(usedAxisBinding);
axisEndpoint.setTransportInDescription(transportIn);

代码示例来源:origin: apache/axis2-java

public static void addHttpEndpoint(AxisService axisService, String url) {
String protocol = org.apache.axis2.util.Utils.getURIScheme(url);
String httpEndpointName = getEndpointName(axisService, protocol, null);

AxisEndpoint httpEndpoint = new AxisEndpoint();
httpEndpoint.setName(httpEndpointName);
httpEndpoint.setParent(axisService);
httpEndpoint.setEndpointURL(url.toString());
httpEndpoint.setTransportInDescription(protocol);
populateHttpEndpoint(axisService, httpEndpoint, null);
axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint);
}

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

public static void addSoap11Endpoint(AxisService axisService, String protocol,
String endpointName) throws Exception {
AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
httpSoap11Endpoint.setName(endpointName);
httpSoap11Endpoint.setParent(axisService);
httpSoap11Endpoint.setTransportInDescription(protocol);
populateSoap11Endpoint(axisService, httpSoap11Endpoint, null);
axisService.addEndpoint(httpSoap11Endpoint.getName(), httpSoap11Endpoint);
// setting soap11 endpoint as the default endpoint
axisService.setEndpointName(endpointName);
}

代码示例来源:origin: apache/axis2-java

httpSoap11Endpoint.setName(soap11EndpointName);
httpSoap11Endpoint.setParent(axisService);
httpSoap11Endpoint.setTransportInDescription(transportName);
+ "Soap12Endpoint";
AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
httpSoap12Endpoint.setName(soap12EndpointName);
httpSoap12Endpoint.setParent(axisService);
httpSoap12Endpoint.setTransportInDescription(transportName);
+ "Endpoint";
AxisEndpoint httpEndpoint = new AxisEndpoint();
httpEndpoint.setName(httpEndpointName);
httpEndpoint.setParent(axisService);
httpEndpoint.setTransportInDescription(transportName);

代码示例来源:origin: apache/axis2-java

public static void addSoap12Endpoint(AxisService axisService, String url)
throws Exception {
String protocol = org.apache.axis2.util.Utils.getURIScheme(url);
String soap12EndpointName = getEndpointName(axisService, protocol, "Soap12");
AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
httpSoap12Endpoint.setName(soap12EndpointName);
httpSoap12Endpoint.setParent(axisService);
httpSoap12Endpoint.setEndpointURL(url.toString());
httpSoap12Endpoint.setTransportInDescription(protocol);
populateSoap12Endpoint(axisService, httpSoap12Endpoint, null);
axisService.addEndpoint(httpSoap12Endpoint.getName(),
httpSoap12Endpoint);
}

代码示例来源:origin: apache/axis2-java

public static void addSoap11Endpoint(AxisService axisService, String protocol,
String endpointName) throws Exception {
AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
httpSoap11Endpoint.setName(endpointName);
httpSoap11Endpoint.setParent(axisService);
httpSoap11Endpoint.setTransportInDescription(protocol);
populateSoap11Endpoint(axisService, httpSoap11Endpoint, null);
axisService.addEndpoint(httpSoap11Endpoint.getName(), httpSoap11Endpoint);
// setting soap11 endpoint as the default endpoint
axisService.setEndpointName(endpointName);
}

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

public static void addSoap11Endpoint(AxisService axisService, String url)
throws Exception {
String protocol = org.apache.axis2.util.Utils.getURIScheme(url);
String soap11EndpointName = getEndpointName(axisService, protocol, "Soap11");
AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
httpSoap11Endpoint.setName(soap11EndpointName);
httpSoap11Endpoint.setParent(axisService);
httpSoap11Endpoint.setEndpointURL(url.toString());
httpSoap11Endpoint.setTransportInDescription(protocol);
populateSoap11Endpoint(axisService, httpSoap11Endpoint, null);
axisService.addEndpoint(httpSoap11Endpoint.getName(),
httpSoap11Endpoint);
// setting soap11 endpoint as the default endpoint
axisService.setEndpointName(soap11EndpointName);
}

代码示例来源:origin: apache/axis2-java

public static void addSoap11Endpoint(AxisService axisService, String url)
throws Exception {
String protocol = org.apache.axis2.util.Utils.getURIScheme(url);
String soap11EndpointName = getEndpointName(axisService, protocol, "Soap11");
AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
httpSoap11Endpoint.setName(soap11EndpointName);
httpSoap11Endpoint.setParent(axisService);
httpSoap11Endpoint.setEndpointURL(url.toString());
httpSoap11Endpoint.setTransportInDescription(protocol);
populateSoap11Endpoint(axisService, httpSoap11Endpoint, null);
axisService.addEndpoint(httpSoap11Endpoint.getName(),
httpSoap11Endpoint);
// setting soap11 endpoint as the default endpoint
axisService.setEndpointName(soap11EndpointName);
}

代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

String soap11EndpointName = prefix
+ WSDL2Constants.DEFAULT_SOAP11_ENDPOINT_NAME;
soap11Endpoint.setName(soap11EndpointName);
soap11Endpoint.setBinding(soap11Binding);
soap11Endpoint.setParent(axisService);
String soap12EndpointName = prefix
+ WSDL2Constants.DEFAULT_SOAP12_ENDPOINT_NAME;
soap12Endpoint.setName(soap12EndpointName);
soap12Endpoint.setBinding(soap12Binding);
soap12Endpoint.setParent(axisService);
String httpEndpointName = prefix
+ WSDL2Constants.DEFAULT_HTTP_ENDPOINT_NAME;
httpEndpoint.setName(httpEndpointName);
httpEndpoint.setBinding(httpBinding);
httpEndpoint.setParent(axisService);

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

axisEndpoint.setName(port.getName());

代码示例来源:origin: apache/axis2-java

axisEndpoint.setName(port.getName());

推荐阅读
author-avatar
顺顺当当的小屋约_564
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有