Search in sources :

Example 6 with XmlValidator

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?
}
Also used : XmlValidator(nl.nn.adapterframework.pipes.XmlValidator) AbstractXmlValidator(nl.nn.adapterframework.validation.AbstractXmlValidator) XercesXmlValidator(nl.nn.adapterframework.validation.XercesXmlValidator) JavaxXmlValidator(nl.nn.adapterframework.validation.JavaxXmlValidator) PipeLine(nl.nn.adapterframework.core.PipeLine) IPipe(nl.nn.adapterframework.core.IPipe) XmlValidatorTest(nl.nn.adapterframework.pipes.XmlValidatorTest) Test(org.junit.Test)

Example 7 with XmlValidator

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");
}
Also used : XmlValidator(nl.nn.adapterframework.pipes.XmlValidator) AbstractXmlValidator(nl.nn.adapterframework.validation.AbstractXmlValidator) XercesXmlValidator(nl.nn.adapterframework.validation.XercesXmlValidator) JavaxXmlValidator(nl.nn.adapterframework.validation.JavaxXmlValidator) PipeLine(nl.nn.adapterframework.core.PipeLine) IPipe(nl.nn.adapterframework.core.IPipe) XmlValidatorTest(nl.nn.adapterframework.pipes.XmlValidatorTest) Test(org.junit.Test)

Aggregations

XmlValidator (nl.nn.adapterframework.pipes.XmlValidator)7 AbstractXmlValidator (nl.nn.adapterframework.validation.AbstractXmlValidator)6 JavaxXmlValidator (nl.nn.adapterframework.validation.JavaxXmlValidator)6 XercesXmlValidator (nl.nn.adapterframework.validation.XercesXmlValidator)6 Test (org.junit.Test)6 IPipe (nl.nn.adapterframework.core.IPipe)5 PipeLine (nl.nn.adapterframework.core.PipeLine)5 XmlValidatorTest (nl.nn.adapterframework.pipes.XmlValidatorTest)5 PipeLineSessionBase (nl.nn.adapterframework.core.PipeLineSessionBase)1