I found the problem.  Short answer: The TestMsg code that comes with Axis is
junk.  It will work *only* if there is one method on a service class.  I assume
that this is because if you specify the wrong procedure name (like TestMsg does)
that Axis will be kind, assume you're just stupid, and will try to get the
service class to do something with your request. If there is more than one, it
fails because then it *needs* to know the procedure name.

David Orriss Jr <[EMAIL PROTECTED]> wrote:
> I'm using the code that is described in the User's Guide for putting a message
> service on Axis and then I call it with the TestMsg.java program.  The basic
> program works fine.  However, I want to add the following to the
> MessageService.java program:
>
> public class MessageService {
>     /**
>      * Service method, which simply echoes back any XML it receives.
>      *
>      * @param elems an array of DOM Elements, one for each SOAP body element
>      * @return an array of DOM Elements to be sent in the response body
>      */
>     public Element[] echoElements(Element [] elems) {
>         return elems;
>     }
>
>     //stubbed out for testing purposes
>     public void checkEnvelope (SOAPEnvelope req, SOAPEnvelope resp) {
>       return;
>     }
> }
>
> I *know* that I need to specify which method to call, but I can't figure out
> the correct way to do it.
>
> Suggestions?  So far I keep getting "Couldnt find an appropriate operation for
> XML QName {0}" for my error.

--
David Orriss Jr.
[EMAIL PROTECTED]
http://www.davenet.net
Want ICQ/AIM/MSN ID's? Just Ask...
Linux - Chicken Soup for the Unix Soul


Reply via email to