You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Mahendra Babu <ba...@geometricsoftware.com> on 2001/01/29 05:50:35 UTC

Fw: Problem with passing objects as parameters.

----- Original Message -----
From: "Mahendra Babu" <ba...@geometricsoftware.com>
To: <so...@xml.apache.org>; "Wouter Cloetens" <wo...@mind.be>
Sent: Thursday, January 25, 2001 9:52 PM
Subject: Problem with passing objects as parameters.


> Hi All,
>
> The member variables of the object passed as parameter lose their values.
>
> In my case I have class Numbers, the object of which is a parameter to the
> method.
>
> public class Numbers
>

>    private int x;
>    private int y;
>    public Numbers()
>   {
>   }
>   public Numbers(int a, int b)
>   {
>     this.x = a;
>     this.y = b;
>    }
>   public int getX()
>   {
>      return this.x;
>   }
>   public int getY()
>   {
>      return this.y;
>   }
> }
>
> I set the values of x=5 and y=6 in the Client.
> But the values of x and y inside the method invoked on the server become
0.
>
> I have attached the java files and the xml file used for deploying with
this mail.
>
> Please do advise.
>
> Thanks in advance,
> Mahendra Babu
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org

unsubsribe

Posted by Sebastian Wegerer <s....@dorner.de>.
unsubscribe


unsubsribe

Posted by Sebastian Wegerer <s....@dorner.de>.
unsubscribe


unsubsribe

Posted by Sebastian Wegerer <s....@dorner.de>.
unsubscribe