Search in sources :

Example 1 with ApiWsdlXmlValidator

use of nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator in project iaf by ibissource.

the class WsdlXmlValidatorMixedModeTest method getOutputValidator.

public WsdlXmlValidator getOutputValidator() throws ConfigurationException {
    WsdlXmlValidator val = new ApiWsdlXmlValidator();
    val.setWsdl(WSDL);
    val.setSoapBody(RESPONSE_SOAP_BODY);
    val.setThrowException(true);
    val.setSchemaLocation("http://ibissource.org/XSD/Generic/MessageHeader/2 schema1 http://api.ibissource.org/GetPolicyDetails schema2");
    val.registerForward(new PipeForward("success", null));
    val.configure();
    return val;
}
Also used : ApiWsdlXmlValidator(nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator) PipeForward(nl.nn.adapterframework.core.PipeForward) ApiWsdlXmlValidator(nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator)

Example 2 with ApiWsdlXmlValidator

use of nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator in project iaf by ibissource.

the class WsdlXmlValidatorMixedModeTest method getMixedValidator.

public WsdlXmlValidator getMixedValidator() throws ConfigurationException {
    WsdlXmlValidator val = new ApiWsdlXmlValidator();
    val.setWsdl(WSDL);
    val.setSoapBody(REQUEST_SOAP_BODY);
    val.setOutputSoapBody(RESPONSE_SOAP_BODY);
    val.setThrowException(true);
    val.setSchemaLocation("http://ibissource.org/XSD/Generic/MessageHeader/2 schema1 http://api.ibissource.org/GetPolicyDetails schema2");
    val.registerForward(new PipeForward("success", null));
    val.configure();
    val.getResponseValidator().configure();
    return val;
}
Also used : ApiWsdlXmlValidator(nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator) PipeForward(nl.nn.adapterframework.core.PipeForward) ApiWsdlXmlValidator(nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator)

Example 3 with ApiWsdlXmlValidator

use of nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator in project iaf by ibissource.

the class WsdlXmlValidatorMixedModeTest method getInputValidator.

public WsdlXmlValidator getInputValidator() throws ConfigurationException {
    WsdlXmlValidator val = new ApiWsdlXmlValidator();
    val.setWsdl(WSDL);
    val.setSoapBody(REQUEST_SOAP_BODY);
    val.setThrowException(true);
    val.setSchemaLocation("http://ibissource.org/XSD/Generic/MessageHeader/2 schema1 http://api.ibissource.org/GetPolicyDetails schema2");
    val.registerForward(new PipeForward("success", null));
    val.configure();
    return val;
}
Also used : ApiWsdlXmlValidator(nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator) PipeForward(nl.nn.adapterframework.core.PipeForward) ApiWsdlXmlValidator(nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator)

Aggregations

PipeForward (nl.nn.adapterframework.core.PipeForward)3 ApiWsdlXmlValidator (nl.nn.adapterframework.extensions.api.ApiWsdlXmlValidator)3