e.getOutInterceptors().add(outInterceptor); e.getOutFaultInterceptors().add(outInterceptor);
@Bean public Endpoint hashcodeValidationEndpoint(SpringBus springBus, HashcodeValidationWebService validationWebService) { EndpointImpl endpoint = new EndpointImpl(springBus, validationWebService); endpoint.setWsdlLocation("wsdl/siva-hashcode-validation.wsdl"); endpoint.getOutInterceptors().addAll(commonEndpointOutInterceptors()); endpoint.getInInterceptors().add(new SoapRequestHashcodeValidationInterceptor()); endpoint.publish(HASHCODE_VALIDATION_WEB_SERVICE_ENDPOINT); return endpoint; }
@Bean public Endpoint validationEndpoint(SpringBus springBus, ValidationWebService validationWebService) { EndpointImpl endpoint = new EndpointImpl(springBus, validationWebService); endpoint.setWsdlLocation("wsdl/siva.wsdl"); endpoint.getOutInterceptors().addAll(commonEndpointOutInterceptors()); endpoint.getInInterceptors().add(new SoapRequestValidationInterceptor()); endpoint.publish(VALIDATION_WEB_SERVICE_ENDPOINT); return endpoint; }
protected void run() { Object implementor = new HWSoapMessageDocProvider(); Endpoint ep = Endpoint.create(implementor); Map<String, Object> map = new HashMap<>(); map.put(Message.SCHEMA_VALIDATION_ENABLED, Boolean.TRUE); ep.setProperties(map); ((EndpointImpl)ep).getInInterceptors().add(new LoggingInInterceptor()); ((EndpointImpl)ep).getOutInterceptors().add(new LoggingOutInterceptor()); ep.publish(ADDRESS); }
protected void run() { String address; Object implementor = new RPCLitGreeterImpl(); address = "http://localhost:" + PORT + "/SOAPServiceRPCLit/SoapPort"; ep = Endpoint.create(implementor); URL wsdl = getClass().getResource(wsdlLocation); ((EndpointImpl)ep).setWsdlLocation(wsdl.toString()); ((EndpointImpl)ep).getInInterceptors().add(new LoggingInInterceptor()); ((EndpointImpl)ep).getOutInterceptors().add(new LoggingOutInterceptor()); ep.publish(address); }
protected void run() { String address; Object implementor = new ServicePortTypeImpl(); address = "http://localhost:" + PORT + "/schemavalidation"; Endpoint ep = Endpoint.create(implementor); Map<String, Object> map = new HashMap<>(); map.put(Message.SCHEMA_VALIDATION_ENABLED, Boolean.TRUE); ep.setProperties(map); ((EndpointImpl)ep).setWsdlLocation("wsdl_systest_jaxws/schemaValidation.wsdl"); ((EndpointImpl)ep).setServiceName(new QName( "http://cxf.apache.org/jaxws/schemavalidation", "service")); ((EndpointImpl)ep).getInInterceptors().add(new LoggingInInterceptor()); ((EndpointImpl)ep).getOutInterceptors().add(new LoggingOutInterceptor()); ep.publish(address); }
serverAuthenticator = new JaspiServerAuthenticator(sctx); endpointImpl.getInInterceptors().add(new JaspiSeverInInterceptor(serverAuthenticator)); endpointImpl.getOutInterceptors().add(new JaspiSeverOutInterceptor(serverAuthenticator)); return true;
protected void run() { Object implementor = new TestMtomImpl(); String address = "http://localhost:" + PORT + "/mime-test"; String addressProvider = "http://localhost:" + PORT + "/mime-test-provider"; try { jaxep = (EndpointImpl) javax.xml.ws.Endpoint.publish(address, implementor); Endpoint ep = jaxep.getServer().getEndpoint(); ep.getInInterceptors().add(new TestMultipartMessageInterceptor()); ep.getOutInterceptors().add(new TestAttachmentOutInterceptor()); jaxep.getInInterceptors().add(new LoggingInInterceptor()); jaxep.getOutInterceptors().add(new LoggingOutInterceptor()); SOAPBinding jaxWsSoapBinding = (SOAPBinding) jaxep.getBinding(); jaxWsSoapBinding.setMTOMEnabled(true); EndpointImpl endpoint = (EndpointImpl)javax.xml.ws.Endpoint.publish(addressProvider, new TestMtomProviderImpl()); endpoint.getProperties().put("schema-validation-enabled", "true"); endpoint.getInInterceptors().add(new LoggingInInterceptor()); endpoint.getOutInterceptors().add(new LoggingOutInterceptor()); } catch (Exception e) { Thread.currentThread().interrupt(); } } public void tearDown() {
protected void run() { SpringBusFactory bf = new SpringBusFactory(); Bus bus = bf.createBus(SERVER_CONFIG_FILE); setBus(bus); BusFactory.setDefaultBus(bus); Object implementor = new HelloImplWithWrapppedContinuation(); String address = "http://localhost:" + PORT + "/hellocontinuation"; EndpointImpl endpointImpl = (EndpointImpl)Endpoint.publish(address, implementor); endpointImpl.getInInterceptors().add(new LoggingInInterceptor()); endpointImpl.getOutInterceptors().add(new LoggingOutInterceptor()); address = "https://localhost:" + HTTPS_PORT + "/securecontinuation"; Endpoint.publish(address, implementor); }
@BeforeClass public static void startServers() throws Exception { Object implementor = new TestMtomJMSImpl(); bus = BusFactory.getDefaultBus(); ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false"); PooledConnectionFactory cfp = new PooledConnectionFactory(cf); cff = new ConnectionFactoryFeature(cfp); EndpointImpl ep = (EndpointImpl)Endpoint.create(implementor); ep.getFeatures().add(cff); ep.getInInterceptors().add(new TestMultipartMessageInterceptor()); ep.getOutInterceptors().add(new TestAttachmentOutInterceptor()); //ep.getInInterceptors().add(new LoggingInInterceptor()); //ep.getOutInterceptors().add(new LoggingOutInterceptor()); SOAPBinding jaxWsSoapBinding = (SOAPBinding)ep.getBinding(); jaxWsSoapBinding.setMTOMEnabled(true); ep.publish(); }
cxfendpoint.getOutInterceptors().addAll(endpointBuilder.getCxfOutInterceptors());
if (isMtomEnabled()) { endpoint.getInInterceptors().add(new AttachmentInInterceptor()); endpoint.getOutInterceptors().add(new AttachmentOutInterceptor());