Package org.springframework.ws.soap.client

Examples of org.springframework.ws.soap.client.SoapFaultClientException


public class SoapFaultMessageResolver implements FaultMessageResolver {

    @Override
    public void resolveFault(WebServiceMessage message) throws IOException {
        SoapMessage soapMessage = (SoapMessage) message;
        throw new SoapFaultClientException(soapMessage);
    }
View Full Code Here


        expect(soapBody.getFault()).andReturn(soapFault).once();

        replay(soapFaultMessage, soapBody, soapFault);

        expect(webServiceTemplate.sendAndReceive(eq("http://localhost:8080/request"), (WebServiceMessageCallback)anyObject(),
                (WebServiceMessageCallback)anyObject())).andThrow(new SoapFaultClientException(soapFaultMessage)).once();

        replay(webServiceTemplate);

        try {
            client.getEndpointConfiguration().setDefaultUri("http://localhost:8080/request");
View Full Code Here

                        "Internal server error",
                        Locale.GERMANY);
               
                fault.setFaultActorOrRole("SERVER");
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("Internal server error");
        assertAction.setFaultCode("{http://citrusframework.org}ws:TEC-1001");
View Full Code Here

                        "Internal server error",
                        Locale.GERMANY);
               
                fault.setFaultActorOrRole("SERVER");
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("@equalsIgnoreCase('internal server error')@");
        assertAction.setFaultCode("{http://citrusframework.org}ws:TEC-1001");
View Full Code Here

               
                ((Soap11Body)faultMessage.getSoapBody()).addFault(QNameUtils.parseQNameString("{http://citrusframework.org}TEC-1001"),
                        "Internal server error",
                        Locale.GERMANY);
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("Internal server error");
        assertAction.setFaultCode("{http://citrusframework.org}TEC-1001");
View Full Code Here

               
                ((Soap11Body)faultMessage.getSoapBody()).addFault(QNameUtils.parseQNameString("{http://citrusframework.org}ws:TEC-2002"),
                        "Internal server error",
                        Locale.GERMANY);
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("Internal server error");
        assertAction.setFaultCode("{http://citrusframework.org}ws:TEC-1001");
View Full Code Here

                        "Internal server error",
                        Locale.GERMANY);
               
                fault.setFaultActorOrRole("CLIENT");
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("Internal server error");
        assertAction.setFaultCode("{http://citrusframework.org}ws:TEC-1001");
View Full Code Here

               
                ((Soap11Body)faultMessage.getSoapBody()).addFault(QNameUtils.parseQNameString("{http://citrusframework.org}ws:TEC-1001"),
                        "Internal server error",
                        Locale.GERMANY);
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("Invalid request");
        assertAction.setFaultCode("{http://citrusframework.org}ws:TEC-1001");
View Full Code Here

                    transformer.transform(new StringSource("<FaultDetail><Reason>Invalid request</Reason></FaultDetail>"), fault.addFaultDetail().getResult());
                } catch (TransformerException e) {
                    throw new CitrusRuntimeException(e);
                }
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        assertAction.setFaultString("Internal server error");
        assertAction.setFaultCode("{http://citrusframework.org}ws:TEC-1001");
View Full Code Here

                    transformer.transform(new StringSource("<FaultDetail><Reason>Invalid request</Reason></FaultDetail>"), fault.addFaultDetail().getResult());
                } catch (TransformerException e) {
                    throw new CitrusRuntimeException(e);
                }
               
                throw new SoapFaultClientException(faultMessage);
            }
        });
       
        context.setVariable("faultReason", "Invalid request");
       
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.client.SoapFaultClientException

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.