Examples of InterfaceFault


Examples of org.apache.woden.wsdl20.InterfaceFault

        // Capture all the fault specific properties

        BindingFault[] bindingFaults = binding.getBindingFaults();
        for (int i = 0; i < bindingFaults.length; i++) {
            BindingFaultImpl bindingFault = (BindingFaultImpl) bindingFaults[i];
            InterfaceFault interfaceFault = serviceInterface.getFromAllInterfaceFaults(bindingFault.getRef());
            AxisBindingMessage axisBindingFault = new AxisBindingMessage();
            axisBindingFault.setFault(true);
            axisBindingFault.setName(interfaceFault.getName().getLocalPart());
            axisBindingFault.setParent(axisBinding);

            addDocumentation(axisBindingFault, interfaceFault.toElement());
            SOAPBindingFaultExtensions soapBindingFaultExtensions;

            try {
                soapBindingFaultExtensions = (SOAPBindingFaultExtensions) bindingFault
                        .getComponentExtensionContext(new URI(WSDL2Constants.URI_WSDL2_SOAP));
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

        // Capture all the fault specific properties

        BindingFault[] bindingFaults = binding.getBindingFaults();
        for (int i = 0; i < bindingFaults.length; i++) {
            BindingFaultImpl bindingFault = (BindingFaultImpl) bindingFaults[i];
            InterfaceFault interfaceFault =
                    serviceInterface.getFromAllInterfaceFaults(bindingFault.getRef());
            AxisBindingMessage axisBindingFault = new AxisBindingMessage();
            axisBindingFault.setFault(true);
            axisBindingFault.setName(interfaceFault.getName().getLocalPart());
            axisBindingFault.setParent(axisBinding);

            addDocumentation(axisBindingFault, interfaceFault.toElement());
            HTTPBindingFaultExtensions httpBindingFaultExtensions;

            try {
                httpBindingFaultExtensions = (HTTPBindingFaultExtensions) bindingFault
                        .getComponentExtensionContext(new URI(WSDL2Constants.URI_WSDL2_HTTP));
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

            AxisMessage faultMessage = new AxisMessage();

            InterfaceFaultReference interfaceFaultReference = faults[i];
            faultMessage.setDirection(interfaceFaultReference.getDirection().toString());

            InterfaceFault interfaceFault = interfaceFaultReference.getInterfaceFault();

            if (interfaceFault == null) {
                throw new AxisFault("Interface Fault reference defined in operation " + opName + " cannot be found in interface");
            }

            faultMessage.setElementQName(interfaceFault.getElementDeclaration().getName());
            faultMessage.setName(interfaceFault.getName().getLocalPart());

            axisOperation.setFaultMessages(faultMessage);
        }

View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

     */
    public InterfaceFault getInterfaceFault()
    {
        InterfaceOperation oper = (InterfaceOperation)getParent();
        Interface interfac = (Interface)oper.getParent();
        InterfaceFault intFault = interfac.getFromAllInterfaceFaults(fRef);
        return intFault;
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

    {
        InterfaceFaultElement fault = null;
        InterfaceOperationElement oper = (InterfaceOperationElement)getParentElement();
        InterfaceElement interfac = (InterfaceElement)oper.getParentElement();
        if (interfac != null) {
            InterfaceFault faultComp = ((Interface)interfac).getFromAllInterfaceFaults(fRef);
            if (faultComp != null) {
                fault = faultComp.toElement();
            }
        }
        return fault;
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

                {
                    InterfaceFaultReference[] intFaultRefs = intOp.getInterfaceFaultReferences();
                    for(int i=0; i<intFaultRefs.length; i++)
                    {
                        InterfaceFaultReference tempIntFaultRef = intFaultRefs[i];
                        InterfaceFault tempIntFault = tempIntFaultRef.getInterfaceFault();
                        QName intFaultName = (tempIntFault != null ? tempIntFault.getName() : null);
                        if(fRef.equals(intFaultName) &&
                           effectiveMsgLabel.equals(tempIntFaultRef.getMessageLabel()))
                        {
                            intFaultRef = tempIntFaultRef;
                            break;
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

  Hashtable identifiers = new Hashtable();
 
  int numFaultReferences = faultReferences.length;
  for(int i = 0; i < numFaultReferences; i++)
  {
    InterfaceFault fault = faultReferences[i].getInterfaceFault();
    NCName messageLabel = faultReferences[i].getMessageLabel();
      if(fault == null || messageLabel == null)
      continue;
    List messageLabels = (List)identifiers.get(fault);
    if(messageLabels != null && messageLabels.contains(messageLabel))
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

  boolean duplicateFound = false;
  List usedInterfaceFaults = new ArrayList();
  int numBindingFaults = bindingFaults.length;
  for(int i = 0; i < numBindingFaults; i++)
  {
    InterfaceFault interfaceFault = bindingFaults[i].getInterfaceFault();
    if(interfaceFault == null)
      continue;
    if(usedInterfaceFaults.contains(interfaceFault))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "BindingFault-1050", new Object[]{}, ErrorReporter.SEVERITY_ERROR);
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

    /* (non-Javadoc)
     * @see org.apache.woden.wsdl20.BindingFault#getInterfaceFault()
     */
    public InterfaceFault getInterfaceFault()
    {
        InterfaceFault fault = null;
        Binding binding = (Binding)getParent();
        Interface interfac = binding.getInterface();
        if(interfac != null) {
            fault = interfac.getFromAllInterfaceFaults(fRef);
        }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceFault

    {
        InterfaceFaultElement fault = null;
        BindingElement binding = (BindingElement)getParentElement();
        InterfaceElement interfac = binding.getInterfaceElement();
        if(interfac != null) {
            InterfaceFault faultComp = ((Interface)interfac).getFromAllInterfaceFaults(fRef);
            if (faultComp != null) {
                fault = faultComp.toElement();
            }
        }
        return fault;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.