RE: customizing the HTTP transport factory

2007-07-14 Thread Benson Margulies
Dan, The most interesting thing that dawned on me is that a JettyHTTPHandler \is a/ Jetty \Handler/. Thus, I can instantiate Jetty's standard static content handler and call it from a subclass of JettyHTTPHandler, since the same arguments that come into JettyHTTPHandler can be delegated to the han

Re: Trouble with creating RESTful Service deployed to Jetty - need help!

2007-07-14 Thread Jason Mihalick
Hi Dan. I appreciate the clarification on unwrapped mode. Can you also answer my question below about running in wrapped mode? Thanks again, Jason From: "Dan Diephouse" <[EMAIL PROTECTED]> Reply-To: cxf-user@incubator.apache.org To: cxf-user@incubator.apache.org Subject: Re: Trouble with cr

Re: Trouble with creating RESTful Service deployed to Jetty - need help!

2007-07-14 Thread Dan Diephouse
Because of the way unwrapped mode works, a method like this cannot be mapped: @Get @HttpResource(location = "/clients/{id}") public Client getClient( long id ); Unwrapped mode states that the thing in the brackets ({id}), must be mapped to a property on the method parameter (i.e. the first param

Re: customizing the HTTP transport factory

2007-07-14 Thread Dan Diephouse
BTW, you may also be interested in this code that I wrote to serve out static HTML files once upon a time: private static void serveHTML() throws Exception { Bus bus = BusFactory.getDefaultBus(); DestinationFactoryManager dfm = bus.getExtension( DestinationFactoryManager.class);

Re: customizing the HTTP transport factory

2007-07-14 Thread Dan Diephouse
Hi Benson, You're very close to getting it to work :-) If you look at the cxf-extension-http-jetty.xml file you'll see that we associate several transport IDs with that transport: http://schemas.xmlsoap.org/soap/http http://schemas.x

Re: Using CXF

2007-07-14 Thread Dan Diephouse
Hi Jacob, I would go with something like: org.apache.cxf cxf-rt-frontend-jaxws 2.0-incubator org.apache.cxf cxf-rt-transports-http 2.0-incubator

RE: WSDL service-name

2007-07-14 Thread Benson Margulies
Yes. > -Original Message- > From: Dan Diephouse [mailto:[EMAIL PROTECTED] > Sent: Saturday, July 14, 2007 12:17 AM > To: cxf-user@incubator.apache.org > Subject: Re: WSDL service-name > > I'm pretty sure that per the JAX-WS spec, the serviceName goes on the impl > class regardless. So I t

Re: Re : WSDL generate using url ../EchoService?wsdl

2007-07-14 Thread James Mao
Hi, I think they are same, we use the same piece of code in generating the wsdl. However, with java2wsdl you got the extra functions, like generating the jaxb binding files automatically, if your class has a java.util.Date or java.util.Calendar class, Something like that, and also it will gener