Examples of FaultMessage


Examples of com.sun.xml.ws.message.FaultMessage

        //Don't fill the stacktrace for Service specific exceptions.
        if(ce == null) {
            soap11Fault.captureStackTrace(e);
        }
        Message msg = JAXBMessage.create(JAXB_CONTEXT, soap11Fault, soapVersion);
        return new FaultMessage(msg, firstEntry);
    }
View Full Code Here

Examples of com.sun.xml.ws.message.FaultMessage

        //Don't fill the stacktrace for Service specific exceptions.
        if(ce == null) {
            soap12Fault.captureStackTrace(e);
        }
        Message msg = JAXBMessage.create(JAXB_CONTEXT, soap12Fault, soapVersion);
        return new FaultMessage(msg, firstEntry);
    }
View Full Code Here

Examples of com.sun.xml.ws.message.FaultMessage

        //Don't fill the stacktrace for Service specific exceptions.
        if(ce == null) {
            soap11Fault.captureStackTrace(e);
        }
        Message msg = JAXBMessage.create(JAXB_CONTEXT, soap11Fault, soapVersion);
        return new FaultMessage(msg, firstEntry);
    }
View Full Code Here

Examples of com.sun.xml.ws.message.FaultMessage

        //Don't fill the stacktrace for Service specific exceptions.
        if(ce == null) {
            soap12Fault.captureStackTrace(e);
        }
        Message msg = JAXBMessage.create(JAXB_CONTEXT, soap12Fault, soapVersion);
        return new FaultMessage(msg, firstEntry);
    }
View Full Code Here

Examples of de.uniba.wiai.dsg.betsy.activities.wsdl.testpartner.FaultMessage

                logInfo("Exception occurred during building the response message", e);
                throw new RuntimeException("could not create response", e);
            }
        } else if (inputPart == -6) {
            logInfo("Partner: startProcessSync with " + inputPart + " - Throwing Fault");
            throw new FaultMessage("expected Error", inputPart);
        } else if (replyInput) {
            return detectConcurrency(inputPart);
        } else {
            return 0;
        }
View Full Code Here

Examples of gri.tasks.remote.shared.FaultMessage

      elem.addContent(
        Util.createElement("details", fault.getDetails()));
  }
    }
    public FaultMessage readFault(Element elem) {
  FaultMessage fault = new FaultMessage(null, null);
 
  List children = elem.getChildren();
  Element child;
  for (int i=0; i<children.size(); i++) {
      child = (Element)children.get(i);
      String name = child.getName();
     
      if (name.equals("type"))
    fault.setType(child.getText());
      else if (name.equals("message"))
    fault.setMessage(child.getText());
      else if (name.equals("details"))
    fault.setDetails(child.getText());
  }
 
  return fault;
    }
View Full Code Here

Examples of gri.tasks.remote.shared.FaultMessage

     *       when it recognizes them. However, the jobId will be given as null.
     */
    protected void throwExceptions(Document doc) throws UnknownJobException, UnknownWorkflowException, RemoteFaultException {
  if (serviceUtil.isFault(doc)) {
      Element root = doc.getRootElement();
      FaultMessage fault = serializers.getFaultSerializer().readFault(root);
 
      if (fault.getType().equals("UnknownJobException"))
    throw new UnknownJobException(null);
      if (fault.getType().equals("UnknownWorkflowException"))
    throw new UnknownWorkflowException(null);
     
      throw new RemoteFaultException(fault);
  }
    }
View Full Code Here

Examples of gri.tasks.remote.shared.FaultMessage

     *       However, the jobId will be given as null.
     */
    protected void throwExceptions(Document doc) throws UnknownJobException, RemoteFaultException {
  if (serviceUtil.isFault(doc)) {
      Element root = doc.getRootElement();
      FaultMessage fault = serializers.getFaultSerializer().readFault(root);
 
      if (fault.getType().equals("UnknownJobException"))
    throw new UnknownJobException(null);
     
      throw new RemoteFaultException(fault);
  }
    }
View Full Code Here

Examples of org.camelcookbook.ws.payment_service.FaultMessage

        try {
            TransferResponse response = template.requestBody("cxf:http://localhost:" + port1 + "/paymentService?serviceClass=org.camelcookbook.ws.payment_service.Payment", request, TransferResponse.class);
            fail("Should have failed as backend should throw fault");
        } catch (CamelExecutionException e) {
            FaultMessage fault = assertIsInstanceOf(FaultMessage.class, e.getCause());
            log.info(fault.getLocalizedMessage());
        }
    }
View Full Code Here

Examples of org.camelcookbook.ws.payment_service.FaultMessage

        try {
            response = template.requestBody(String.format("cxf:http://localhost:%d/paymentFaultService?serviceClass=org.camelcookbook.ws.payment_service.Payment", port1), request, TransferResponse.class);
            fail("Request should have failed");
        } catch (CamelExecutionException e) {
            FaultMessage fault = assertIsInstanceOf(FaultMessage.class, e.getCause());

            log.info("reason = {}", fault.getMessage());
        }
    }
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.