axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <>
Subject RE: Problems calling SOAP messaging via Axis
Date Fri, 25 Oct 2002 15:48:35 GMT


Please feel free to provide a new, improved sample which would work better and be more instructive.
 You could save other users the same frustration that you experienced.

Submit the files in a bug/enhancement request in bugzilla.

Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: David Orriss Jr []
Sent: Thursday, October 17, 2002 5:50 PM
Subject: Re: Problems calling SOAP messaging via Axis

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 <> 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 program.  The basic
> program works fine.  However, I want to add the following to the
> 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.
Want ICQ/AIM/MSN ID's? Just Ask...
Linux - Chicken Soup for the Unix Soul

View raw message