use of nl.nn.adapterframework.core.PipeForward in project iaf by ibissource.
the class WsdlXmlValidatorTest method wsdlValidateWithReferenceFail.
@Test(expected = XmlValidatorException.class)
public void wsdlValidateWithReferenceFail() throws IOException, PipeRunException, SAXException, WSDLException, ConfigurationException, XmlValidatorException {
WsdlXmlValidator val = new WsdlXmlValidator();
val.setWsdl(SIMPLE_WITH_REFERENCE);
val.setThrowException(true);
val.registerForward(new PipeForward("success", null));
val.configure();
val.validate("<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\"><Body><TradePriceRequest xmlns=\"http://example.com/stockquote.xsd\"><tickerSymbolERROR>foo</tickerSymbolERROR></TradePriceRequest></Body></Envelope>", session);
}
use of nl.nn.adapterframework.core.PipeForward in project iaf by ibissource.
the class WsdlXmlValidatorTest method wsdlValidateWithReference.
@Test
public void wsdlValidateWithReference() throws IOException, PipeRunException, SAXException, WSDLException, ConfigurationException, XmlValidatorException {
WsdlXmlValidator val = new WsdlXmlValidator();
val.setWsdl(SIMPLE_WITH_REFERENCE);
val.setSoapBody("TradePriceRequest");
val.setThrowException(true);
val.registerForward(new PipeForward("success", null));
val.configure();
val.validate("<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\"><Body><TradePriceRequest xmlns=\"http://example.com/stockquote.xsd\"><tickerSymbol>foo</tickerSymbol></TradePriceRequest></Body></Envelope>", session);
}
use of nl.nn.adapterframework.core.PipeForward in project iaf by ibissource.
the class WsdlXmlValidatorTest method wsdlTibcoFailEnvelop.
@Test(expected = XmlValidatorException.class)
public void wsdlTibcoFailEnvelop() throws IOException, PipeRunException, SAXException, WSDLException, ConfigurationException, XmlValidatorException {
WsdlXmlValidator val = new WsdlXmlValidator();
val.setWsdl(TIBCO);
val.setThrowException(true);
val.registerForward(new PipeForward("success", null));
val.configure();
val.validate("<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\">\n" + " <BodyERROR>\n" + " <MessageHeader xmlns=\"http://www.ing.com/CSP/XSD/General/Message_2\">\n" + " <From>\n" + " <Id>Ibis4Toegang</Id>\n" + " </From>\n" + " <HeaderFields>\n" + " <ConversationId/>\n" + " <MessageId>WPNLD8921975_0a4ac029-7747a1ed_12da7d4b033_-7ff3</MessageId>\n" + " <ExternalRefToMessageId/>\n" + " <Timestamp>2001-12-17T09:30:47</Timestamp>\n" + " </HeaderFields>\n" + " </MessageHeader>\n" + " <Request xmlns=\"http://www.ing.com/nl/banking/coe/xsd/bankingcustomer_generate_01/getpartybasicdatabanking_01\">\n" + " <BankSparen xmlns=\"http://www.ing.com/bis/xsd/nl/banking/bankingcustomer_generate_01_getpartybasicdatabanking_request_01\">\n" + " <PRD>\n" + " <KLT>\n" + " <KLT_NA_RELNUM>181373377001</KLT_NA_RELNUM>\n" + " </KLT>\n" + " </PRD>\n" + " </BankSparen>\n" + " </Request>\n" + " </BodyERROR>\n" + "</Envelope>\n" + "", session);
}
use of nl.nn.adapterframework.core.PipeForward in project iaf by ibissource.
the class XmlValidatorTest2 method getSuccess.
static PipeForward getSuccess() {
PipeForward forward = new PipeForward();
forward.setName("success");
return forward;
}
use of nl.nn.adapterframework.core.PipeForward in project iaf by ibissource.
the class XsltPipeErrorTest method createPipeSuccessForward.
private PipeForward createPipeSuccessForward() {
PipeForward pipeForward = new PipeForward();
pipeForward.setName("success");
return pipeForward;
}
Aggregations