@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { if (inXSLTPath != null) { XSLTInInterceptor in = new XSLTInInterceptor(inXSLTPath); provider.getInInterceptors().add(in); } if (outXSLTPath != null) { XSLTOutInterceptor out = new XSLTOutInterceptor(outXSLTPath); provider.getOutInterceptors().add(out); provider.getOutFaultInterceptors().add(out); } }
@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { if (inXSLTPath != null) { XSLTInInterceptor in = new XSLTInInterceptor(inXSLTPath); provider.getInInterceptors().add(in); } if (outXSLTPath != null) { XSLTOutInterceptor out = new XSLTOutInterceptor(outXSLTPath); provider.getOutInterceptors().add(out); provider.getOutFaultInterceptors().add(out); } }
@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { if (inXSLTPath != null) { XSLTInInterceptor in = new XSLTInInterceptor(inXSLTPath); provider.getInInterceptors().add(in); } if (outXSLTPath != null) { XSLTOutInterceptor out = new XSLTOutInterceptor(outXSLTPath); provider.getOutInterceptors().add(out); provider.getOutFaultInterceptors().add(out); } }
@Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { if (inXSLTPath != null) { XSLTInInterceptor in = new XSLTInInterceptor(inXSLTPath); provider.getInInterceptors().add(in); } if (outXSLTPath != null) { XSLTOutInterceptor out = new XSLTOutInterceptor(outXSLTPath); provider.getOutInterceptors().add(out); provider.getOutFaultInterceptors().add(out); } }
@Test public void testClientInTransformation() { Service service = Service.create(SERVICE_NAME); String endpoint = "http://localhost:" + PORT + "/EchoContext/EchoPort"; service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpoint); Echo port = service.getPort(PORT_NAME, Echo.class); Client client = ClientProxy.getClient(port); XSLTInInterceptor inInterceptor = new XSLTInInterceptor(XSLT_RESPONSE_PATH); client.getInInterceptors().add(inInterceptor); String response = port.echo("test"); assertTrue(response.contains(TRANSFORMED_CONSTANT)); } }