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; }
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; }
if (webFault.targetNamespace().length()>0) namespace = webFault.targetNamespace(); if (webFault.messageName().length()>0) messageName = webFault.messageName();
if (webFault.targetNamespace().length()>0) namespace = webFault.targetNamespace(); if (webFault.messageName().length()>0) messageName = webFault.messageName();
if (webFault.targetNamespace().length()>0) namespace = webFault.targetNamespace(); if (webFault.messageName().length()>0) messageName = webFault.messageName();
/** * 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); } }
/** * 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); } }