You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Eric Zhao <zh...@gmail.com> on 2006/07/02 08:15:45 UTC
use servicemix-http in Tomcat
Hi there,
I am new to servicemix. I want to use servicemix-http and servicemix-jsr181
to expose a web service. I need to deploy it to Tomcat. The problem is it
seems SM-http always uses Jetty. Is there a way to make it work with Tomcat?
A related question, i think i can use HttpInOutBinding + xFireBinding to
achieve the same, but it seems that this lightweight component does not
expose the WSDL? That is, you can't access the wsdl from say,
../service?wsdl. Is this true? If so, it's hard for the client applications
to call the web service. So this approach is not really relevant?
In general, can someone comment on the best approach to expose a web service
in SM, in a embdded (in web app), lightweight way, with WSDL support?
Thanks!
Eric
--
View this message in context: http://www.nabble.com/use-servicemix-http-in-Tomcat-tf1879425.html#a5137886
Sent from the ServiceMix - User forum at Nabble.com.
Re: use servicemix-http in Tomcat
Posted by Eric Zhao <zh...@gmail.com>.
Thanks for the reply.
Sounds like i need to do customization work to SM to have the wsdl exposed.
Can you elaborate a bit more on how to do that? Like, which class i need to
extend, etc.
However, this is something that i expect SM does for me so that i can focus
on the web service itself.
--
View this message in context: http://www.nabble.com/use-servicemix-http-in-Tomcat-tf1879425.html#a5141781
Sent from the ServiceMix - User forum at Nabble.com.
Re: use servicemix-http in Tomcat
Posted by Soumadeep-Infravio <so...@infravio.com>.
Just taking the liberty, as I guess Guillaume would be the best person to
comment on this.
Using XFire you can still expose the WSDL of the service registered in
XFire, you just need to handle the ?wsdl query string and redirect it to
XFire and then generate the WSDL using
xfire.generateWSDL(serviceName,outStream). But again "?wsdl" as you maybe
aware, isn't the only way people handle WSDLs as you could use any custom
protocol to do it, such as -> you could provide something like
?WSDL:TimeService. where you would be telling the server that generate a
wsdl for the service TimeService. But I think generally the ?wsdl goes well
with the crowd :-)
Thanks
Soumadeep
----- Original Message -----
From: "Eric Zhao" <zh...@gmail.com>
To: <se...@geronimo.apache.org>
Sent: Sunday, July 02, 2006 11:45 AM
Subject: use servicemix-http in Tomcat
>
> Hi there,
> I am new to servicemix. I want to use servicemix-http and
> servicemix-jsr181
> to expose a web service. I need to deploy it to Tomcat. The problem is it
> seems SM-http always uses Jetty. Is there a way to make it work with
> Tomcat?
> A related question, i think i can use HttpInOutBinding + xFireBinding to
> achieve the same, but it seems that this lightweight component does not
> expose the WSDL? That is, you can't access the wsdl from say,
> ../service?wsdl. Is this true? If so, it's hard for the client
> applications
> to call the web service. So this approach is not really relevant?
> In general, can someone comment on the best approach to expose a web
> service
> in SM, in a embdded (in web app), lightweight way, with WSDL support?
>
> Thanks!
> Eric
> --
> View this message in context:
> http://www.nabble.com/use-servicemix-http-in-Tomcat-tf1879425.html#a5137886
> Sent from the ServiceMix - User forum at Nabble.com.
>
>
Re: use servicemix-http in Tomcat
Posted by Guillaume Nodet <gn...@gmail.com>.
Last week, I have checked in support for deploying servicemix-http
component inq web app.
You just have to use the servlet
org.apache.servicemix.http.HttpManagedServlet with a spring based web
application with a configuration like the following one:
http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-http/src/test/resources/org/apache/servicemix/http/spring-web.xml?revision=418086&view=markup
Cheers,
Guillaume Nodet
On 7/2/06, Eric Zhao <zh...@gmail.com> wrote:
>
> Hi there,
> I am new to servicemix. I want to use servicemix-http and servicemix-jsr181
> to expose a web service. I need to deploy it to Tomcat. The problem is it
> seems SM-http always uses Jetty. Is there a way to make it work with Tomcat?
> A related question, i think i can use HttpInOutBinding + xFireBinding to
> achieve the same, but it seems that this lightweight component does not
> expose the WSDL? That is, you can't access the wsdl from say,
> ../service?wsdl. Is this true? If so, it's hard for the client applications
> to call the web service. So this approach is not really relevant?
> In general, can someone comment on the best approach to expose a web service
> in SM, in a embdded (in web app), lightweight way, with WSDL support?
>
> Thanks!
> Eric
> --
> View this message in context:
> http://www.nabble.com/use-servicemix-http-in-Tomcat-tf1879425.html#a5137886
> Sent from the ServiceMix - User forum at Nabble.com.
>
>