use of nl.nn.adapterframework.pipes.XmlValidator in project iaf by ibissource.
the class WsdlTest method wubFindIntermediaryMixed.
@Test
public void wubFindIntermediaryMixed() throws XMLStreamException, IOException, SAXException, ParserConfigurationException, URISyntaxException, ConfigurationException, NamingException {
XmlValidator inputValidator = getXmlValidatorInstance("FindIntermediaryREQ", "FindIntermediaryRLY", null, "http://wub2nn.nn.nl/FindIntermediary WsdlTest/FindIntermediary/xsd/XSD_FindIntermediary_v1.1_r1.0.xsd");
IPipe outputValidator = inputValidator.getResponseValidator();
PipeLine pipe = mockPipeLine(inputValidator, outputValidator, "http://wub2nn.nn.nl/FindIntermediary", "WsdlTest/FindIntermediary");
Wsdl wsdl = new Wsdl(pipe);
wsdl.setUseIncludes(true);
wsdl.init();
assertTrue(wsdl.isUseIncludes());
test(wsdl, "WsdlTest/FindIntermediary.test.wsdl");
zip(wsdl);
// assertEquals(2, wsdl.getXSDs(true).size()); TODO?
}
use of nl.nn.adapterframework.pipes.XmlValidator in project iaf by ibissource.
the class WsdlTest method basicMixed.
@Test
public void basicMixed() throws XMLStreamException, IOException, ParserConfigurationException, SAXException, ConfigurationException, URISyntaxException, NamingException {
XmlValidator inputValidator = getXmlValidatorInstance("a", "b", "WsdlTest/test.xsd", "urn:webservice1 WsdlTest/test.xsd");
IPipe outputValidator = inputValidator.getResponseValidator();
PipeLine simple = mockPipeLine(inputValidator, outputValidator, "urn:webservice1", "Test1");
Wsdl wsdl = new Wsdl(simple);
wsdl.init();
test(wsdl, "WsdlTest/webservice1.test.wsdl");
}
Aggregations