Package org.apache.axis2.soap

Examples of org.apache.axis2.soap.SOAPProcessingException


        super(parent, builder);
    }

    protected void checkParent(OMElement parent) throws SOAPProcessingException {
        if (!(parent instanceof SOAP12FaultReasonImpl)) {
            throw new SOAPProcessingException(
                    "Expecting SOAP 1.2 implementation of SOAP FaultReason as the parent. But received some other implementation");
        }
    }
View Full Code Here


        super(parent, builder);
    }

    protected void checkParent(OMElement parent) throws SOAPProcessingException {
        if (!(parent instanceof SOAP12FaultImpl)) {
            throw new SOAPProcessingException(
                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
        }
    }
View Full Code Here

        super(parent, builder);
    }

    protected void checkParent(OMElement parent) throws SOAPProcessingException {
        if (!(parent instanceof SOAP12FaultImpl)) {
            throw new SOAPProcessingException(
                    "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
        }
    }
View Full Code Here

    protected SOAPElement(OMElement parent,
                          String localName,
                          boolean extractNamespaceFromParent) throws SOAPProcessingException {
        super((ParentNode)parent, localName, null);
        if (parent == null) {
            throw new SOAPProcessingException(
                    " Can not create " + localName +
                    " element without a parent !!");
        }
        checkParent(parent);
View Full Code Here

  }

  public void addChild(OMNode child) {
    if ((child instanceof OMElement)
        && !(child instanceof SOAPHeader || child instanceof SOAPBody)) {
      throw new SOAPProcessingException(
          "SOAP Envelope can not have children other than SOAP Header and Body",
          SOAP12Constants.FAULT_CODE_SENDER);
    } else {
      super.addChild(child);
    }
View Full Code Here

    }

    protected void checkParent(OMElement parent) throws SOAPProcessingException {
        if (!(parent instanceof SOAPEnvelopeImpl)) {
            throw new SOAPProcessingException(
                    "Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
        }
    }
View Full Code Here

    hasSOAPFault = true;
  }

  protected void checkParent(OMElement parent) throws SOAPProcessingException {
    if (!(parent instanceof SOAPEnvelopeImpl)) {
      throw new SOAPProcessingException(
          "Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
    }
  }
View Full Code Here

          "Expecting an implementation of SOAP Envelope as the parent. But received some other implementation");
    }
  }

  public OMNode detach() throws OMException {
    throw new SOAPProcessingException(
        "Can not detach SOAP Body, SOAP Envelope must have a Body !!");
  }
View Full Code Here


    protected void checkParent(OMElement parent) throws SOAPProcessingException {
        if (!((parent instanceof SOAP11FaultSubCodeImpl) ||
                (parent instanceof SOAP11FaultCodeImpl))) {
            throw new SOAPProcessingException(
                    "Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation." +
                    parent.getClass());
        }
    }
View Full Code Here

    }

    protected void checkParent(OMElement parent) throws SOAPProcessingException {
        if (!(parent instanceof SOAP11FaultSubCodeImpl) ||
                (parent instanceof SOAP11FaultCodeImpl)) {
            throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.soap.SOAPProcessingException

Copyright © 2018 www.massapicom. 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.