javax.xml.ws.WebFault.messageName()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(87)

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

WebFault.messageName介绍

暂无

代码示例

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

public String getMessageName(){
  if(messageName.length()>0){
    return name;
  }else{
    WebFault annotation= this.getAnnoWebFault();
    if(annotation!=null && annotation.messageName().length()>0){
      messageName=annotation.messageName();
    }else{
      // The default is undefined.
      // The JAX-WS layer may use the fault bean information to determine the name
    }
  }
  return messageName;
}

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

public String getMessageName(){
  if(messageName.length()>0){
    return name;
  }else{
    WebFault annotation= this.getAnnoWebFault();
    if(annotation!=null && annotation.messageName().length()>0){
      messageName=annotation.messageName();
    }else{
      // The default is undefined.
      // The JAX-WS layer may use the fault bean information to determine the name
    }
  }
  return messageName;
}

代码示例来源:origin: javaee/metro-jax-ws

if (webFault.targetNamespace().length()>0)
  namespace = webFault.targetNamespace();
if (webFault.messageName().length()>0)
  messageName = webFault.messageName();

代码示例来源:origin: com.sun.xml.ws/jaxws-rt

if (webFault.targetNamespace().length()>0)
  namespace = webFault.targetNamespace();
if (webFault.messageName().length()>0)
  messageName = webFault.messageName();

代码示例来源:origin: com.sun.xml.ws/rt

if (webFault.targetNamespace().length()>0)
  namespace = webFault.targetNamespace();
if (webFault.messageName().length()>0)
  messageName = webFault.messageName();

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

/**
 * This method will be used to attach @WebFault annotation data to the
 * <code>DescriptionBuilderComposite</code>
 *
 * @param composite - <code>DescriptionBuilderComposite</code>
 */
private void attachWebFaultAnnotation(DescriptionBuilderComposite composite) {
  WebFault webFault = (WebFault)ConverterUtils.getAnnotation(
      WebFault.class, serviceClass);
  if (webFault != null) {
    WebFaultAnnot webFaultAnnot = WebFaultAnnot.createWebFaultAnnotImpl();
    webFaultAnnot.setFaultBean(webFault.faultBean());
    webFaultAnnot.setName(webFault.name());
    webFaultAnnot.setTargetNamespace(webFault.targetNamespace());
    try {
      webFaultAnnot.setMessageName(webFault.messageName());
    } catch (NoSuchMethodError ex) {
      // Ignore: we are running on Java 1.6 and the JAX-WS 2.2 libs have not been endorsed
    }
    composite.setWebFaultAnnot(webFaultAnnot);
  }
}

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

/**
 * This method will be used to attach @WebFault annotation data to the
 * <code>DescriptionBuilderComposite</code>
 *
 * @param composite - <code>DescriptionBuilderComposite</code>
 */
private void attachWebFaultAnnotation(DescriptionBuilderComposite composite) {
  WebFault webFault = (WebFault)ConverterUtils.getAnnotation(
      WebFault.class, serviceClass);
  if (webFault != null) {
    WebFaultAnnot webFaultAnnot = WebFaultAnnot.createWebFaultAnnotImpl();
    webFaultAnnot.setFaultBean(webFault.faultBean());
    webFaultAnnot.setName(webFault.name());
    webFaultAnnot.setTargetNamespace(webFault.targetNamespace());
    try {
      webFaultAnnot.setMessageName(webFault.messageName());
    } catch (NoSuchMethodError ex) {
      // Ignore: we are running on Java 1.6 and the JAX-WS 2.2 libs have not been endorsed
    }
    composite.setWebFaultAnnot(webFaultAnnot);
  }
}

相关文章

微信公众号

最新文章

更多