Re: Where to find service classes
"Scott Nichol" <[email protected]>
| Newsgroups | gmane.text.xml.soap.user |
|---|---|
| Message-ID | <1df701c444b6$88006380$6401a8c0@northgate> |
I'll be concrete by describing my Tomcat habits.
1. Install Tomcat at $CATALINA_HOME. Leave it configured for HTTP access on port 8080.
2. Explode soap.war under $CATALINA_HOME/webapps/soap. Pointing a browser at http://host:8080/soap/ now brings up the contents of $CATALINA_HOME/webapps/soap/index.html. Pointing a browser at http://host:8080/soap/servlet/rpcrouter brings up the page saying "Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me."
3. Install my service classes/jars and classes/jars on which they depend in $CATALINA_HOME/webapps/soap/WEB-INF/classes or $CATALINA_HOME/webapps/soap/WEB-INF/lib.
4. Run
java org.apache.soap.server.ServiceManagerClient
http://host:8080/soap/servlet/rpcouter deploy dd.xml
for each service I want to deploy. (OK, this is a simplification. I sometimes edit
$CATALINA_HOME/webapps/soap/WEB-INF/web.xml to specify a location for soap.xml, then
create a soap.xml that disables Service Manager access and says to use the XML
ConfigManager, then create a file for the XML Config Manager by pasting in the
deployment descriptors.)
5. At this point, all services are available at the endpoint http://host:8080/soap/servlet/rpcouter. This can be accessed remotely, or by servlets and JSPs running in the same instance of Tomcat.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Alistair Young" <[email protected]>
To: <[email protected]>
Sent: Friday, May 28, 2004 4:26 AM
Subject: Re: Where to find service classes
> Thanks Scott, does that mean that all your service classes are under
> http://www.yoursite.com/soap/servlet/
> What I'd like to do is have a range of services on virtual hosts:
> www.service1.service.com
> www.service2.service.com
> with the router as normal on www.service.com/soap/servlet/rpcrouter
> a sort of MVC almost.
> each service will have jsp files that will do non service things such
> as display human readable status pages etc.
> Alistair
>
> On 27 May 2004, at 17:08, Scott Nichol wrote:
>
> > Personally, I think the best deployment technique is to have Apache
> > SOAP and your service classes together in a single webapp. That is
> > what I always do.
> >
> > Scott Nichol
> >
> > Do not send e-mail directly to this e-mail address,
> > because it is filtered to accept only mail from
> > specific mail lists.
> > ----- Original Message -----
> > From: "Alistair Young" <[email protected]>
> > To: <[email protected]>
> > Sent: Thursday, May 27, 2004 10:47 AM
> > Subject: Where to find service classes
> >
> >
> >> Hi there,
> >> what's the best way to handle the CLASSPATH within soap? I have a
> >> webapp that contains a class that will handle soap requests. Of
> >> course,
> >> when a request for that class comes to the rpcrouter, the router can't
> >> find the class as it's in another servlet.
> >> Can someone maybe advise on the best method for allowing the router to
> >> find classes in other servlets?
> >> many thanks,
> >> Alistair
> >>
> >>
> >
>
>