本文整理了Java中javax.jws.WebService.targetNamespace()
方法的一些代码示例,展示了WebService.targetNamespace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebService.targetNamespace()
方法的具体详情如下:
包路径:javax.jws.WebService
类名称:WebService
方法名:targetNamespace
暂无
代码示例来源:origin: spring-projects/spring-framework
String ns = ann.targetNamespace();
if (StringUtils.hasText(ns)) {
setNamespaceUri(ns);
代码示例来源:origin: org.springframework/spring-web
String ns = ann.targetNamespace();
if (StringUtils.hasText(ns)) {
setNamespaceUri(ns);
代码示例来源:origin: opensourceBIM/BIMserver
public SService(SServicesMap servicesMap, SourceCodeFetcher sourceCodeFetcher, Class<? extends PublicInterface> interfaceClass) {
this.servicesMap = servicesMap;
this.sourceCodeFetcher = sourceCodeFetcher;
this.interfaceClass = interfaceClass;
this.nameSpace = interfaceClass.getAnnotation(WebService.class).targetNamespace();
this.fullName = interfaceClass.getAnnotation(WebService.class).targetNamespace() + "." + interfaceClass.getAnnotation(WebService.class).name();
this.simpleName = interfaceClass.getAnnotation(WebService.class).name();
}
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
name = service.name();
if (!StringUtils.isEmpty(service.targetNamespace())) {
namespace = service.targetNamespace();
name = service.name();
if (!StringUtils.isEmpty(service.targetNamespace()) && namespace == null) {
namespace = service.targetNamespace();
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
String tns = webService.targetNamespace();
if (tns.isEmpty()) {
tns = PackageUtils.getNamespace(PackageUtils.getPackageName(seiClass));
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
namespace = wsAnnotations.get(x).targetNamespace();
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
namespace = wsAnnotations.get(x).targetNamespace();
代码示例来源:origin: org.objectweb.celtix/celtix-rt
public String getTargetNamespace() {
if (webServiceAnnotation == null) {
return "";
}
return webServiceAnnotation.targetNamespace();
}
代码示例来源:origin: io.oasp.java.modules/oasp4j-cxf-client-ws
private String getNamespace(Class<?> api, WebService webService) {
String targetNamespace = webService.targetNamespace();
if (targetNamespace.isEmpty()) {
return api.getPackage().getName();
}
return targetNamespace;
}
代码示例来源:origin: oasp/oasp4j
private String getNamespace(Class<?> api, WebService webService) {
String targetNamespace = webService.targetNamespace();
if (targetNamespace.isEmpty()) {
return api.getPackage().getName();
}
return targetNamespace;
}
代码示例来源:origin: apache/cxf
@SuppressWarnings({
"unchecked", "rawtypes"
})
protected JAXBElement<?> convertToJAXBElement(Object evt) {
final Class<?> eventClass = evt.getClass();
String tns = endpointInterface.getAnnotation(WebService.class).targetNamespace();
return new JAXBElement(new QName(tns, eventClass.getName()), eventClass, evt);
}
代码示例来源:origin: org.apache.cxf/cxf-rt-ws-eventing
@SuppressWarnings({
"unchecked", "rawtypes"
})
protected JAXBElement<?> convertToJAXBElement(Object evt) {
final Class<?> eventClass = evt.getClass();
String tns = endpointInterface.getAnnotation(WebService.class).targetNamespace();
return new JAXBElement(new QName(tns, eventClass.getName()), eventClass, evt);
}
代码示例来源:origin: com.microsoft.bingads/microsoft.bingads
private QName getServiceQname(Class serviceInterface) {
WebService webServiceAnnotation = (WebService) serviceInterface.getAnnotation(WebService.class);
String serviceName = webServiceAnnotation.name();
if (serviceName.startsWith("I")) {
serviceName = serviceName.substring(1);
}
QName qName = new QName(webServiceAnnotation.targetNamespace(), serviceName);
return qName;
}
代码示例来源:origin: org.objectweb.celtix/celtix-rt
private QName getServiceName(WebService wsAnnotation) {
QName serviceQName = null;
if (wsAnnotation != null) {
serviceQName = new QName(wsAnnotation.targetNamespace(), wsAnnotation.serviceName());
}
return serviceQName;
}
代码示例来源:origin: BingAds/BingAds-Java-SDK
private QName getServiceQname(Class serviceInterface) {
WebService webServiceAnnotation = (WebService) serviceInterface.getAnnotation(WebService.class);
String serviceName = webServiceAnnotation.name();
if (serviceName.startsWith("I")) {
serviceName = serviceName.substring(1);
}
QName qName = new QName(webServiceAnnotation.targetNamespace(), serviceName);
return qName;
}
代码示例来源:origin: org.apache.openejb/openejb-core
public static QName getPortType(final Class<?> seiClass) {
final WebService webService = seiClass.getAnnotation(WebService.class);
if (webService != null) {
String localName = webService.name();
if (localName == null || localName.length() == 0) {
localName = seiClass.getSimpleName();
}
final String namespace = webService.targetNamespace();
return new QName(getNamespace(seiClass, namespace), localName);
}
return null;
}
代码示例来源:origin: org.apache.tomee/openejb-core
public static QName getPortType(final Class<?> seiClass) {
final WebService webService = seiClass.getAnnotation(WebService.class);
if (webService != null) {
String localName = webService.name();
if (localName == null || localName.length() == 0) {
localName = seiClass.getSimpleName();
}
final String namespace = webService.targetNamespace();
return new QName(getNamespace(seiClass, namespace), localName);
}
return null;
}
代码示例来源:origin: org.apache.openejb/openejb-core
public static QName getPortQName(final Class<?> clazz) {
final WebService webService = clazz.getAnnotation(WebService.class);
if (webService != null) {
return getPortQName(clazz, webService.targetNamespace(), webService.name(), webService.portName());
}
final WebServiceProvider webServiceProvider = clazz.getAnnotation(WebServiceProvider.class);
if (webServiceProvider != null) {
return getPortQName(clazz, webServiceProvider.targetNamespace(), null, webServiceProvider.portName());
}
throw new IllegalArgumentException("The " + clazz.getName() + " is not annotated");
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public static QName getPortQName(Class<?> clazz) {
WebService webService = clazz.getAnnotation(WebService.class);
if (webService != null) {
return getPortQName(clazz, webService.targetNamespace(), webService.name(), webService.portName());
}
WebServiceProvider webServiceProvider = clazz.getAnnotation(WebServiceProvider.class);
if (webServiceProvider != null) {
return getPortQName(clazz, webServiceProvider.targetNamespace(), null, webServiceProvider.portName());
}
throw new IllegalArgumentException("The " + clazz.getName() + " is not annotated");
}
代码示例来源:origin: org.apache.tomee/openejb-core
public static QName getPortQName(final Class<?> clazz) {
final WebService webService = clazz.getAnnotation(WebService.class);
if (webService != null) {
return getPortQName(clazz, webService.targetNamespace(), webService.name(), webService.portName());
}
final WebServiceProvider webServiceProvider = clazz.getAnnotation(WebServiceProvider.class);
if (webServiceProvider != null) {
return getPortQName(clazz, webServiceProvider.targetNamespace(), null, webServiceProvider.portName());
}
throw new IllegalArgumentException("The " + clazz.getName() + " is not annotated");
}
内容来源于网络,如有侵权,请联系作者删除!