Hello,
I have a Servlet program build in Java. I want to
extend this servlet to be able :
- to run the normalservice, as know
- to integrate the SOAP mechanism.
So, I would like to integrate something like this
in my service() method :
public class MyEngine extends
HttpServlet
{ RPCRouterServlet mSoapRouter;
public void init(ServletConfig
config) throws ServletException {
mSoapRouter = new RPCRouterServlet ; mSoapRouter.init( config );
public void service(
HttpServletRequest request, HttpServletResponse response
)
throws ServletException, IOException { if (request..getParameter( ??? )!=null) {
// this is a SOAP command
mSoapRouter.doPost( request, response
);
return
}
Q1 : I found two class extending HttpServlet :
RPCRouterServlet and MessageRouterServlet : what is the difference between this
two objects ?
Q2 : Is myt method correct ?
Q3 : on which parameter do I need to switch
?
Q4 : is all the soap administration will work
?
Thanks for your comments.
Pierre-Yves Monnet
Pierre-Yves Monnet - Project Manager Cap Gemini Ernst & Young
Tél :
33 (0) 4 76 52 64 23 FAX : 33
(0)4 76 52 62 01 mail : [EMAIL PROTECTED] |
- Re: How to integrate SAOP in a Servlet ? Pierre Yves Monnet
- Re: How to integrate SAOP in a Servlet ? Thibault Chollet