Adding LoggingFeature to ws_policy sample
@@ -25,6 +25,7 @@ import javax.xml.ws.Endpoint;
import org.apache.cxf.Bus;
import org.apache.cxf.BusFactory;
import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.ext.logging.LoggingFeature;
public class Server {
@@ -38,7 +39,7 @@ public class Server {
Object implementor = new GreeterImpl();
String address = "http://localhost:9000/SoapContext/SoapPort";
- Endpoint.publish(address, implementor);
+ Endpoint.publish(address, implementor, new LoggingFeature());
}
public static void main(String args[]) throws Exception {
