/** * Create an instance of {@link Fault } * */ public Fault createFault() { return new Fault(); }
public static SoapFault11 fromFault(Fault fault) { try { QName subcode = fault.getFaultcode(); String reason = fault.getFaultstring(); return new SoapFault11(SoapFaultType.FAULT_SENDER, subcode, reason); } catch (Throwable th) { return new SoapFault11(th); } }
@Test public void testSendSoapFaultRequest() throws Exception { SoapFaultService service = new SoapFaultService(); assertNotNull(service); SoapFaultPortType soapFaultPort = service.getPort(portName, SoapFaultPortType.class); updateAddressPort(soapFaultPort, PORT); Fault fault = new Fault(); fault.setFaultstring("ClientSetFaultString"); fault.setFaultcode(new QName("http://cxf.apache.org/soapfault", "ClientSetError")); soapFaultPort.soapFault(fault); }
public Fault toFault() { Fault fault = factory.createFault(); QName faultcode = subcode; String faultstring = getReason(); fault.setFaultcode(faultcode); fault.setFaultstring(faultstring); return fault; }
@WebMethod(operationName = "SoapFault", action = "http://www.w3.org/2005/08/addressing/soap/fault") @Oneway @Action(input="http://www.w3.org/2005/08/addressing/soap/fault") public void soapFault( @WebParam(name = "Fault", targetNamespace = "http://schemas.xmlsoap.org/soap/envelope/", partName = "fault") Fault fault) { MessageContext ctx = webServiceCtx.getMessageContext(); MAP inboundMap = AddressingHelper.inboundMap(ctx); if (inboundMap.getRelatesTo() != null) { WSCLogger.logger.tracev("CoordinationFaultPortTypeImpl receiving fault for message={0} - string={1} code={2} details={3}", inboundMap.getRelatesTo().getRelatesTo(), fault.getFaultstring(), fault.getFaultcode(), fault.getDetail() == null? "null" : fault.getDetail().getAny()); AsynchronousRegistrationMapper.getInstance().assignFault(inboundMap.getRelatesTo().getRelatesTo(), fault); } else { WSCLogger.i18NLogger.error_empty_messageId_received_by_async_endpoint(); } }
public static SoapFault11 fromFault(Fault fault) { try { QName subcode = fault.getFaultcode(); String reason = fault.getFaultstring(); return new SoapFault11(SoapFaultType.FAULT_SENDER, subcode, reason); } catch (Throwable th) { return new SoapFault11(th); } }
public Fault toFault() { Fault fault = factory.createFault(); QName faultcode = subcode; String faultstring = getReason(); fault.setFaultcode(faultcode); fault.setFaultstring(faultstring); return fault; }
String detail = res.getFault().getFaultstring(); if (res.getFault().getDetail()!= null && res.getFault().getDetail().getAny() != null && !res.getFault().getDetail().getAny().isEmpty()) { detail = res.getFault().getDetail().getAny().get(0).toString(); throwException(res.getFault().getFaultcode(), detail, null, res.getFault()); } else if (res.isEmpty()) { throw new InvalidStateException("No response assigned to messageID " + messageID);
public static SoapFault11 fromFault(Fault fault) { try { QName subcode = fault.getFaultcode(); String reason = fault.getFaultstring(); return new SoapFault11(SoapFaultType.FAULT_SENDER, subcode, reason); } catch (Throwable th) { return new SoapFault11(th); } }
public Fault toFault() { Fault fault = factory.createFault(); QName faultcode = subcode; String faultstring = getReason(); fault.setFaultcode(faultcode); fault.setFaultstring(faultstring); return fault; }
/** * Create an instance of {@link Fault } * */ public Fault createFault() { return new Fault(); }
public static SoapFault11 fromFault(Fault fault) { try { QName subcode = fault.getFaultcode(); String reason = fault.getFaultstring(); return new SoapFault11(SoapFaultType.FAULT_SENDER, subcode, reason); } catch (Throwable th) { return new SoapFault11(th); } }
public Fault toFault() { Fault fault = factory.createFault(); QName faultcode = subcode; String faultstring = getReason(); fault.setFaultcode(faultcode); fault.setFaultstring(faultstring); return fault; }
/** * Create an instance of {@link Fault } * */ public Fault createFault() { return new Fault(); }
String error = activityStatus.getFault().getFaultcode() .getLocalPart() + "\n" + activityStatus.getFault().getFaultstring() + "\n EXITCODE: " + activityStatus.getExitCode(); log.info(error);
/** * Create an instance of {@link Fault } * */ public Fault createFault() { return new Fault(); }