Examples of receiveFault()


Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

      AxisEngine engine = new AxisEngine(msgCtx.getConfigurationContext());
      if (resenvelope!=null) {
        //we proceed only if we hv found a valid envelope.
        if (isFaultEnvelope(resenvelope)) {
          engine.receiveFault(responseMessageContext);
        } else {
          engine.receive(responseMessageContext);
        }
      }
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

        if (resenvelope != null) {
            if (resenvelope.getBody().hasFault()) {
                SOAPFault soapFault = resenvelope.getBody().getFault();
                //we need to call engine.receiveFault
                engine = new AxisEngine(msgctx.getConfigurationContext());
                engine.receiveFault(responseMessageContext);
                if (options.isExceptionToBeThrownOnSOAPFault()) {
                    // does the SOAPFault has a detail element for Excpetion
                    throw new AxisFault(soapFault.getCode(), soapFault.getReason(),
                            soapFault.getNode(), soapFault.getRole(), soapFault.getDetail());
                }
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

                  .getFault();

              // we need to call engine.receiveFault
              AxisEngine engine = new AxisEngine(mc
                  .getConfigurationContext());
              engine.receiveFault(response);
            }
          }
          completed = true;
        } else {
          sc.getConfigurationContext().getThreadPool().execute(
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

        responseMessageContext.setEnvelope(resenvelope);
        AxisEngine engine = new AxisEngine(msgCtx
            .getConfigurationContext());
       
        if (isFaultEnvelope(resenvelope)) {
          engine.receiveFault(responseMessageContext);
        }else {
          engine.receive(responseMessageContext);
        }
      }
     
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

        }

        AxisEngine engine = new AxisEngine(cfgCtx);
        try {
            if (envelope.getBody().hasFault()) {
                engine.receiveFault(responseMsgCtx);
            } else {
                engine.receive(responseMsgCtx);
            }
        } catch (AxisFault af) {
            log.error("Fault processing response message through Axis2", af);
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

            SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();

            msgContext.setEnvelope(envelope);

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (Exception e) {
            try {
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

            msgContext.setEnvelope(envelope);

            AxisEngine engine = new AxisEngine(msgContext.getConfigurationContext());

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (SOAPProcessingException e) {
            throw new AxisFault(e);
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

            msgCtx.setEnvelope(envelope);

            AxisEngine engine = new AxisEngine(confContext);

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgCtx);
            } else {
                engine.receive(msgCtx);
            }
        } catch (XMLStreamException e) {
            throw new AxisFault(e);
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

            msgContext.setEnvelope(envelope);

            AxisEngine engine = new AxisEngine(msgContext.getConfigurationContext());

            if (envelope.getBody().hasFault()) {
                engine.receiveFault(msgContext);
            } else {
                engine.receive(msgContext);
            }
        } catch (SOAPProcessingException e) {
            throw new AxisFault(e);
View Full Code Here

Examples of org.apache.axis2.engine.AxisEngine.receiveFault()

                SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();

                msgContext.setEnvelope(envelope);

                if (envelope.getBody().hasFault()) {
                    engine.receiveFault(msgContext);
                } else {
                    engine.receive(msgContext);
                }
            } else {
                throw new AxisFault(Messages.getMessage("unknownTransport",
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.