axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Re: Axis2 Service without OMElement
Date Fri, 30 Jun 2006 18:30:48 GMT
Take a look at RPCMessageReceiver and RPCServiceClient . There's a
test in the src disto that shows how:

modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

HTH,
Robert
http://www.braziloutsource.com/


On 6/30/06, John Duff <duff.john@gmail.com> wrote:
> Hi,
>
> I have looked at a number of samples and Axis2 seems to make things
> pretty simple, but with all the services the parameters and the return
> types are OMElement.  I want to create a service that uses a simple
> String or int type as a parameter/return type.  I can create this
> service very easily, and it deploys fine, but when I write the client
> I am having problems.  In earlier versions of Axis it seems like you
> could pass parameters to the call very easily, but in 2.0 you must
> pass a OMElement.
>
> For a simple Web Service method such as this:
>
>        public String sayName(String name)
>        {
>                return "Hello " + name + "!!!";
>        }
>
> Is there a way to call an instance of ServiceClient.sendReceive
> passing in a String or Object parameter, dosn't seem like it.  How
> would I construct the OMElement to do something like this?  I would
> like to avoid generating anything from the WSDL if that is at all
> possible, I really want to keep this simple.
>
> Thanks for the help,
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message