Direction msgDirection=faulRef.getDirection(); if(msgDirection==Direction.IN){ tagName=DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20, String msglable=faulRef.getMessageLabel().toString(); QName attrQName=faulRef.getRef(); String attrName= DOMUtils.getQualifiedValue(faulRef.getNamespaceURI(attrQName.getPrefix()).toString(), attrQName.getLocalPart(), faulRef); DOMUtils.printAttribute(Constants.ATTR_REF, attrName, pw); printExtensibilityAttributes(faulRef.getExtensionAttributes(), faulRef, pw); pw.println('>'); printDocumentation(faulRef.getDocumentationElements(), des, pw); printExtensibilityElements(faulRef.getClass(), faulRef.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');
/** * Test assertion QName-resolution-1064 for an InterfaceFaultReference element. \ * A Description component must not contain broken QName references. * * @param faultReference The interface fault reference to check for a broken reference. * @param errorReporter An error reporter. * @return True if the assertion passes, false otherwise. * @throws WSDLException */ protected boolean testAssertionQNameResolution1064ForInterfaceFaultReference(InterfaceFaultReferenceElement faultReference, ErrorReporter errorReporter) throws WSDLException { QName ref = faultReference.getRef(); if(ref != null) { InterfaceFaultElement fault = faultReference.getInterfaceFaultElement(); if(fault == null) { errorReporter.reportError(new ErrorLocatorImpl(), "QName-resolution-1064", new Object[]{ref.toString(), "interface fault reference", "interface fault"}, ErrorReporter.SEVERITY_ERROR); return false; } } return true; } }
faultRef.setDirection(Direction.IN); faultRef.setDirection(Direction.OUT); faultRef.setRef(qname); } catch (WSDLException e) { getErrorReporter().reportError( if(msgLabel != null) faultRef.setMessageLabel(new NCName(msgLabel)); InterfaceOperationElement iop = (InterfaceOperationElement)faultRef.getParentElement(); URI mep = iop.getPattern(); faultRef.setMessageLabel(MessageLabel.OUT); faultRef.setMessageLabel(MessageLabel.IN); faultRef.setMessageLabel(MessageLabel.IN); //the <outfault> is triggered by the <input> faultRef.setMessageLabel(MessageLabel.OUT); faultRef.addExtensionElement( parseExtensionElement(InterfaceFaultReferenceElement.class, faultRef, tempEl, desc) );
public InterfaceFaultReferenceElement getInterfaceFaultReferenceElement() { InterfaceFaultReferenceElement intFaultRef = null; if(fRef != null && fMessageLabel != null) { BindingOperationElement bindOp = (BindingOperationElement)getParentElement(); InterfaceOperationElement intOp = bindOp.getInterfaceOperationElement(); if(intOp != null) { InterfaceFaultReferenceElement[] intFaultRefs = intOp.getInterfaceFaultReferenceElements(); for(int i=0; i<intFaultRefs.length; i++) { InterfaceFaultReferenceElement temp = intFaultRefs[i]; if(fRef.equals(temp.getRef()) && fMessageLabel.equals(temp.getMessageLabel())) { intFaultRef = temp; break; } } } } return intFaultRef; }
faultRef.setDirection(Direction.IN); faultRef.setDirection(Direction.OUT); faultRef.setRef(qname); } catch (WSDLException e) { getErrorReporter().reportError( if(msgLabel != null) faultRef.setMessageLabel(new NCName(msgLabel)); InterfaceOperationElement iop = (InterfaceOperationElement)faultRef.getParentElement(); URI mep = iop.getPattern(); faultRef.setMessageLabel(MessageLabel.OUT); faultRef.setMessageLabel(MessageLabel.IN); faultRef.setMessageLabel(MessageLabel.IN); //the <outfault> is triggered by the <input> faultRef.setMessageLabel(MessageLabel.OUT); faultRef.addExtensionElement( parseExtensionElement(InterfaceFaultReferenceElement.class, faultRef, tempEl, desc) );
public InterfaceFaultReferenceElement getInterfaceFaultReferenceElement() { InterfaceFaultReferenceElement intFaultRef = null; if(fRef != null && fMessageLabel != null) { BindingOperationElement bindOp = (BindingOperationElement)getParentElement(); InterfaceOperationElement intOp = bindOp.getInterfaceOperationElement(); if(intOp != null) { InterfaceFaultReferenceElement[] intFaultRefs = intOp.getInterfaceFaultReferenceElements(); for(int i=0; i<intFaultRefs.length; i++) { InterfaceFaultReferenceElement temp = intFaultRefs[i]; if(fRef.equals(temp.getRef()) && fMessageLabel.equals(temp.getMessageLabel())) { intFaultRef = temp; break; } } } } return intFaultRef; }
Direction msgDirection=faulRef.getDirection(); if(msgDirection==Direction.IN){ tagName=DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20, String msglable=faulRef.getMessageLabel().toString(); QName attrQName=faulRef.getRef(); String attrName= DOMUtils.getQualifiedValue(faulRef.getNamespaceURI(attrQName.getPrefix()).toString(), attrQName.getLocalPart(), faulRef); DOMUtils.printAttribute(Constants.ATTR_REF, attrName, pw); printExtensibilityAttributes(faulRef.getExtensionAttributes(), faulRef, pw); pw.println('>'); printDocumentation(faulRef.getDocumentationElements(), des, pw); printExtensibilityElements(faulRef.getClass(), faulRef.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');
/** * Test assertion QName-resolution-1064 for an InterfaceFaultReference element. \ * A Description component must not contain broken QName references. * * @param faultReference The interface fault reference to check for a broken reference. * @param errorReporter An error reporter. * @return True if the assertion passes, false otherwise. * @throws WSDLException */ protected boolean testAssertionQNameResolution1064ForInterfaceFaultReference(InterfaceFaultReferenceElement faultReference, ErrorReporter errorReporter) throws WSDLException { QName ref = faultReference.getRef(); if(ref != null) { InterfaceFaultElement fault = faultReference.getInterfaceFaultElement(); if(fault == null) { errorReporter.reportError(new ErrorLocatorImpl(), "QName-resolution-1064", new Object[]{ref.toString(), "interface fault reference", "interface fault"}, ErrorReporter.SEVERITY_ERROR); return false; } } return true; } }
if(faulRef!=null){ String tagName =null; Direction msgDirection=faulRef.getDirection(); if(msgDirection==Direction.IN){ tagName=OMUtils.getQualifiedValue(Constants.NS_URI_WSDL20, String msglable=faulRef.getMessageLabel().toString(); OMUtils.printAttribute(Constants.ATTR_MESSAGE_LABEL, msglable, pw); QName attrQName=faulRef.getRef(); String attrName= OMUtils.getQualifiedValue(faulRef.getNamespaceURI(attrQName.getPrefix()).toString(), attrQName.getLocalPart(), faulRef); OMUtils.printAttribute(Constants.ATTR_REF, attrName, pw); printExtensibilityAttributes(faulRef.getExtensionAttributes(), faulRef, pw); pw.println('>'); printDocumentation(faulRef.getDocumentationElements(), des, pw); printExtensibilityElements(faulRef.getClass(), faulRef.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');