You are right that allowedMethods is used in MSG as well as RPC, but its use in MSG is limited to naming the single method that will handle your messages - not naming all of the methods then you are allowed to call.
I seem to remember an earlier post on this list which suggested that Axis was unable to handle * for message services because there was then nothing to identify the specific method to be called to handle a given message. AFAIK, this is still the case. Just name your method. Here is what we did: <service name="sgw-router" provider="java:MSG"> <parameter name="allowedMethods" value="process"/> <parameter name="className" value ="nz.co.vodafone.soapgateway.sgwcore.ProxyService"/> <namespace>http://schemas.xmlsoap.org/soap</namespace> </service> I suspect that you are right about using a service rather than a handler. That was just an idea for you to consider, not a recommendation. Cheers ADK -------------------------------------------- There is no magic. "Darren Rowley" To: [EMAIL PROTECTED] <DarrenR@order cc: ware.net> Subject: Re: Simple Document style web service question 22/11/2002 23:01 Please respond to axis-user thanks for your reply, >>You need to implement your message handling method with one of the 3 or 4 signatures I already know this and do already have an example integrated with my app that uses the method (SOAPEnvelope, SOAPEnvelope) signature. >>The allowedMethods is aimed at RPC style SOAP. In the document wrapped example the WSDD file does have an allowedMethods parameter, In the source MsgProvider is a subclass of JavaProvider which does process the allowedMethods ('*') parameter? >> If you wish to have multiple services, but all of them need pre-processing by some common code, you could try implementing a handler and installing it the the global chain. << I'm guess this might be the case but I actually don't want multiple services, I actually want one Provider (Pivot Handler) to handle all incoming message requests (at least to a single service). I guess thought there might a simpler way than writing Request and Response handler because I actually want to process the request and response and the same time to our EAI application, if I write two seperate handlers then I'm going to have to marshall between the two, not rocket science but I thought there actually might be a simpler way. If I do have to write two seperate handlers should I put them in the global chain or into the service chain? I presume it may be too late in the later because Axis may have already error because it can't find a specific PivotHandler? thanks, Darren. ------------------------------------------------ Darren Rowley Software Architect OrderWare® Solutions Limited [EMAIL PROTECTED] www.orderware.net PH: +64 9 573 3316 FX: +64 9 573 3301 ------------------------------------------------- [EMAIL PROTECTED] nz To: [EMAIL PROTECTED] cc: Subject: Re: Simple Document 22/11/02 11:02 style web service question Please respond to axis-user If you wish to have multiple services, but all of them need pre-processing by some common code, you could try implementing a handler and installing it the the global chain. Cheers ADK -------------------------------------------- There is no magic. "Darren Rowley" To: [EMAIL PROTECTED] <DarrenR@order cc: ware.net> Subject: Simple Document style web service question 22/11/2002 21:39 Please respond to axis-user I want to use the style='message' service to capture incoming web services. However I want to process all incoming messages with a single class. I am integrating Axis with our EAI application and it already has sophisticated handlers for triggering data transfers based on XML content. In the WSDD file I tried setting the "allowedMethods" value="*" but I just get an error, I had a quick peruse of the source code and I can't see how the MsgProvider deals with the '*' option? I'm sure this is pretty simple but I've only been using Axis for a couple of days.. excellent product btw. thanks in advance, Darren. ----------------------------------------------------------------------------------------------- Have you seen our website?.... http://www.vodafone.co.nz CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Thank you. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Vodafone New Zealand Limited. Vodafone New Zealand Limited 21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand Telephone + 64 9 357 5100 Facsimile + 64 9 377 0962 ----------------------------------------------------------------------------------------------- Have you seen our website?.... http://www.vodafone.co.nz CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Thank you. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Vodafone New Zealand Limited. Vodafone New Zealand Limited 21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand Telephone + 64 9 357 5100 Facsimile + 64 9 377 0962