properties.put("mtom-enabled", Boolean.TRUE); serverFactoryBean.setBindingId(bindingId); serverFactoryBean.setProperties(properties); serverFactoryBean.setServiceClass(clazz); serverFactoryBean.getOutFaultInterceptors().add(new StatusCodeModifyingFaultInterceptor());
serverFactory.getProperties().putAll(properties); } else { serverFactory.setProperties(properties);
protected void run() { Object implementor = new GreeterImpl12(); String address = "http://localhost:" + PORT + "/SoapContext/SoapPort"; // enable the options of stack trace and the exception cause message Map<String, Object> properties = new HashMap<>(); properties.put("exceptionMessageCauseEnabled", "true"); properties.put("faultStackTraceEnabled", "true"); JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); factory.setAddress(address); factory.setServiceBean(implementor); factory.setProperties(properties); factory.create(); }
protected void run() { Object implementor = new GreeterImpl11(); String address = "http://localhost:" + PORT + "/SoapContext/GreeterPort"; // enable the options of stack trace and the exception cause message Map<String, Object> properties = new HashMap<>(); properties.put("exceptionMessageCauseEnabled", "true"); properties.put("faultStackTraceEnabled", "true"); JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); factory.setAddress(address); factory.setServiceBean(implementor); factory.setProperties(properties); factory.create(); }
public static Server createServer(String port, Class<?> serviceInterface, Object serviceImpl, SchemaValidationType type, Feature ... features) throws IOException { JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean(); svrFactory.setServiceClass(serviceImpl.getClass()); if (features != null) { svrFactory.getFeatures().addAll(Arrays.asList(features)); } if (type != null) { Map<String, Object> properties = new HashMap<>(); properties.put(Message.SCHEMA_VALIDATION_ENABLED, type); svrFactory.setProperties(properties); } svrFactory.setAddress(getAddress(port, serviceInterface)); svrFactory.setServiceBean(serviceImpl); Server server = svrFactory.create(); serverList.add(server); return server; } }
_svrFactory.setProperties(props); if (addressingEnabled) { _svrFactory.getInInterceptors().add(new DecoupledFaultHandler());
_svrFactory.setProperties(props); if (addressingEnabled) { _svrFactory.getInInterceptors().add(new DecoupledFaultHandler());
props.put("security.encryption.properties", "alice.properties"); props.put("security.encryption.username", "alice"); svrFactory.setProperties(props);
Map<String, Object> props = new HashMap<>(); props.put(Message.MTOM_ENABLED, "true"); sf.setProperties(props); Server server = sf.create(); server.getEndpoint().getService().getDataBinding().setMtomThreshold(0);
Map<String, Object> props = new HashMap<>(); props.put(Message.MTOM_ENABLED, "true"); sf.setProperties(props); sf.create();
serverFactory.getProperties().putAll(properties); } else { serverFactory.setProperties(properties);