Search in sources :

Example 6 with ResolverMap

use of com.predic8.membrane.core.resolver.ResolverMap in project service-proxy by membrane.

the class ValidatorInterceptorTest method createValidatorInterceptor.

private ValidatorInterceptor createValidatorInterceptor(String wsdl) throws Exception {
    ValidatorInterceptor interceptor = new ValidatorInterceptor();
    interceptor.setResourceResolver(new ResolverMap());
    interceptor.setWsdl(wsdl);
    interceptor.init();
    return interceptor;
}
Also used : ResolverMap(com.predic8.membrane.core.resolver.ResolverMap)

Example 7 with ResolverMap

use of com.predic8.membrane.core.resolver.ResolverMap in project service-proxy by membrane.

the class SOAPProxy method init.

@Override
public void init() throws Exception {
    super.init();
    if (wsdl == null)
        return;
    resolverMap = router.getResolverMap();
    if (httpClientConfig != null) {
        HTTPSchemaResolver httpSR = new HTTPSchemaResolver();
        httpSR.setHttpClientConfig(httpClientConfig);
        resolverMap = resolverMap.clone();
        resolverMap.addSchemaResolver(httpSR);
    }
    configure();
}
Also used : HTTPSchemaResolver(com.predic8.membrane.core.resolver.HTTPSchemaResolver)

Aggregations

ResolverMap (com.predic8.membrane.core.resolver.ResolverMap)5 Exchange (com.predic8.membrane.core.exchange.Exchange)2 Router (com.predic8.membrane.core.Router)1 KeyStore (com.predic8.membrane.core.config.security.KeyStore)1 SSLParser (com.predic8.membrane.core.config.security.SSLParser)1 TrustStore (com.predic8.membrane.core.config.security.TrustStore)1 Request (com.predic8.membrane.core.http.Request)1 AbstractInterceptor (com.predic8.membrane.core.interceptor.AbstractInterceptor)1 CountInterceptor (com.predic8.membrane.core.interceptor.CountInterceptor)1 Outcome (com.predic8.membrane.core.interceptor.Outcome)1 FailureHandler (com.predic8.membrane.core.interceptor.schemavalidation.ValidatorInterceptor.FailureHandler)1 HTTPSchemaResolver (com.predic8.membrane.core.resolver.HTTPSchemaResolver)1 SchemaResolver (com.predic8.membrane.core.resolver.SchemaResolver)1 HttpClient (com.predic8.membrane.core.transport.http.HttpClient)1 HttpClientConfiguration (com.predic8.membrane.core.transport.http.client.HttpClientConfiguration)1 ProxyConfiguration (com.predic8.membrane.core.transport.http.client.ProxyConfiguration)1 StaticSSLContext (com.predic8.membrane.core.transport.ssl.StaticSSLContext)1 PrintWriter (java.io.PrintWriter)1 StringWriter (java.io.StringWriter)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1