Ramon,

I have the same problem -- I've been hoping that someone with more Axis
experience than I have would jump in and either tell us how to do this
or confirm that it can't be done for some reason.

The only solution I've been able to come up with is one that you've
probably already considered (and which I think is the same way that the
AdminClient works): have one service method, but put the real method
name in the document itself (probably in the root tag). Then the method
implementation checks to see what operation the client wants and calls
that method itself.

But this seems unsatisfactory to me. Hopefully the Axis people can come
up with a better approach.

Steve Gollery

Ramon Turnes wrote:

>Hi,
>
>I would like to have a service using Document style with two
>methods but it seems that this is not possible because the
>message dispatcher for Document style services checks for
>a method with the following signature:
>
>
>  Document MyMethod(MessageContext mc, Document xml) {
 > .....
  >}
>
>and the method name is not taken into consideration for
>deciding which method to call. But what if I want to have
>two methods in my service, let's say a Registration method
>and a Ordering method? Should I provide then two endpoints
>for each of the methods (I saw an example in WSTK that does it).
>Can I do this with Document style services or I need to use RPC?
>
>Thanks.



Reply via email to