Hi Guys!

I have tried creating the sample Embedded XFireHTTPServer. Basically, this
stand alone java program currently only has one service, the Echo class.
Below is the source code:
           ObjectServiceFactory serviceFactory = new
ObjectServiceFactory();
           //QName qName = new QName("com.ramcar.test.echo");
           //URL testURL = new URL("http://localhost:";);
           Service service = serviceFactory.create(Echo.class);
           ArrayList bindings = (ArrayList) service.getBindings();
           service.addInHandler(new ServiceRouterHandler());
           service.setInvoker(new BeanInvoker(new EchoImpl()));


           // Register the service in the ServiceRegistry
           XFire xfire = XFireFactory.newInstance().getXFire();
           xfire.getServiceRegistry().register(service);

           // Start the HTTP server
           server = new XFireHttpServer();
           server.setPort(8191);
           server.start();

How can I change the endpoint from:

http://localhost:8191/Echo

to:

http://localhost:8191/services/sample/Echo


Thanks!

Regards,

Jonathan

Reply via email to