Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 42032 invoked from network); 19 Jan 2004 20:02:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Jan 2004 20:02:49 -0000 Received: (qmail 451 invoked by uid 500); 19 Jan 2004 20:01:34 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 367 invoked by uid 500); 19 Jan 2004 20:01:33 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 320 invoked from network); 19 Jan 2004 20:01:33 -0000 Received: from unknown (HELO mailserver2.itdeusto.com) (195.235.251.154) by daedalus.apache.org with SMTP; 19 Jan 2004 20:01:33 -0000 Received: from itdeusto.com (182.Red-80-32-98.pooles.rima-tde.net [80.32.98.182]) by mailserver2.itdeusto.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id DHYRNPL0; Mon, 19 Jan 2004 21:12:31 +0100 Message-ID: <400C3785.1010601@itdeusto.com> Date: Mon, 19 Jan 2004 21:01:09 +0100 From: =?ISO-8859-1?Q?Guido_Garc=EDa_Bernardo?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: es, en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Struts and webservices Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello Our project is not Struts based. We must expose operations as xml services (not standard web services) with a structure like the following one: We want to migrate it to Struts, so the first step is to map that XML structure into an ActionForm... I think we must overwrite RequestProcessor doing: public MyRequestProcessor extends RequestProcessor { ActionForm processActionForm( req, res ) { if (client is a xml service) { SAXBuilder builder = new SAXBuilder( req.getInputStream() ); ... // THE MAIN PROBLEM IS HERE !! ActionForm form = new LoginActionForm(); <------ form.setUserName( username ); form.setPassword( pass ); return form; } else { return super.processActionForm( req, res ); } } } My questions are: 1. How can I know the ActionForm class in each case (it is not always a LoginActionForm...)? 2. Is there any advantage/drawback with etending RequestProcessor? (maybe I can't use other RequestProcessors like Tiles or Validator ones) 3. Should we do anything with ActionServlet, extending it instead of RequestProcessor, etc. Any kind of opinion, sugerence or any other consideration are welcome!! Thank you very very much, Guido Garc�a Bernardo PD. BTW, is there any practical information or project about integrating Struts and standard webservices (soap...)? --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org