static SOAPFault createSoapFault(SOAPBinding binding, Exception ex) throws SOAPException { SOAPFault soapFault; try { soapFault = binding.getSOAPFactory().createFault(); } catch (Throwable t) { soapFault = SAAJFactoryResolver.createSOAPFactory(null).createFault(); } catch (Throwable t) {
public SOAPFault createFault(String arg0, QName arg1) throws SOAPException { return getSOAPFactory().createFault(arg0, arg1); }
@Nullable protected static SOAPFaultException createSfe(@NotNull SoapFaultCode soapFaultCode) { try { QName qname = new QName("http://schemas.xmlsoap.org/soap/envelope/", soapFaultCode.name()); SOAPFactory sf = SOAPFactory.newInstance(); SOAPFault fault = sf.createFault("", qname); return new SOAPFaultException(fault); } catch (SOAPException e) { //e.printStackTrace(); return null; } }
@Nullable protected static SOAPFaultException createSfe(@NotNull SoapFaultCode soapFaultCode) { try { QName qname = new QName("http://schemas.xmlsoap.org/soap/envelope/", soapFaultCode.name()); SOAPFactory sf = SOAPFactory.newInstance(); SOAPFault fault = sf.createFault("", qname); return new SOAPFaultException(fault); } catch (SOAPException e) { //e.printStackTrace(); return null; } }
private SOAPFault createSoapFault(final String msg, final QName qname) { try { SOAPFactory soapFactory = SOAPFactory.newInstance(); return soapFactory.createFault(msg, qname); } catch (SOAPException e) { throw new WebServiceException("Exception while trying to create SOAPFault", e); } }
private SOAPFault createSoapFault(final String msg, final QName qname) { try { SOAPFactory soapFactory = SOAPFactory.newInstance(); return soapFactory.createFault(msg, qname); } catch (SOAPException e) { throw new WebServiceException("Exception while trying to create SOAPFault", e); } }
private SOAPFault createSoapFault(final String msg, final QName qname) { try { SOAPFactory soapFactory = SOAPFactory.newInstance(); return soapFactory.createFault(msg, qname); } catch (SOAPException e) { throw new WebServiceException("Exception while trying to create SOAPFault", e); } }
private SOAPFault createSoapFault(final String msg, final QName qname) { try { SOAPFactory soapFactory = SOAPFactory.newInstance(); return soapFactory.createFault(msg, qname); } catch (SOAPException e) { throw new WebServiceException("Exception while trying to create SOAPFault", e); } }
private SOAPFault createSoapFault(final String msg, final QName qname) { try { SOAPFactory soapFactory = SOAPFactory.newInstance(); return soapFactory.createFault(msg, qname); } catch (SOAPException e) { throw new WebServiceException("Exception while trying to create SOAPFault", e); } }
private SOAPFaultException createSOAPFaultException(String faultString) { SOAPFault soapFault; try { SOAPFactory soapFactory = SOAPFactory.newInstance(); soapFault = soapFactory.createFault(); soapFault.setFaultString(faultString); } catch (SOAPException e) { throw new RuntimeException("SOAP error"); } return new SOAPFaultException(soapFault); }
private void throwUnsupportedOperation(String string) { try { SOAPFault fault = SAAJFactoryResolver.createSOAPFactory(null).createFault(); fault.setFaultString("Unsupported operation " + string); throw new SOAPFaultException(fault); } catch (SOAPException e) { throw new Fault(e); } }
private void throwUnsupportedOperation(String string) { try { SOAPFault fault = SAAJFactoryResolver.createSOAPFactory(null).createFault(); fault.setFaultString("Unsupported operation " + string); throw new SOAPFaultException(fault); } catch (SOAPException e) { throw new Fault(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeClient); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeServer); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeClient); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeServer); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeClient); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createSOAPFaultException(String faultString) throws SOAPException { SOAPFault fault = SOAPFactory.newInstance().createFault(); fault.setFaultString(faultString); SAAJUtils.setFaultCode(fault, new QName("http://cxf.apache.org/faultcode", "Server")); return new SOAPFaultException(fault); } private SOAPFaultException createSOAPFaultExceptionWithDetail(String faultString)
private SOAPFaultException createSOAPFaultException(String faultString) { try { SOAPFault fault = SOAPFactory.newInstance().createFault(); fault.setFaultString(faultString); SAAJUtils.setFaultCode(fault, new QName("http://cxf.apache.org/faultcode", "Server")); return new SOAPFaultException(fault); } catch (SOAPException e) { // do nothing } return null; }
private SOAPFaultException createSOAPFaultException(String faultString) { try { SOAPFault fault = SOAPFactory.newInstance().createFault(); fault.setFaultString(faultString); SAAJUtils.setFaultCode(fault, new QName("http://cxf.apache.org/faultcode", "Server")); return new SOAPFaultException(fault); } catch (SOAPException e) { // do nothing } return null; }