Re: How to mantain the state between 2 call of the same WebService?
From: Manohar Kamath (mkamath_at_TAKETHISOUTkamath.com)
Date: 03/17/05
- Next message: Brock Allen: "Re: How to mantain the state between 2 call of the same WebService?"
- Previous message: Alessandro Benedetti: "Re: How to mantain the state between 2 call of the same WebService?"
- In reply to: Alessandro Benedetti: "Re: How to mantain the state between 2 call of the same WebService?"
- Next in thread: Brock Allen: "Re: How to mantain the state between 2 call of the same WebService?"
- Reply: Brock Allen: "Re: How to mantain the state between 2 call of the same WebService?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Mar 2005 11:19:21 -0600
As long as these custom classes have fundamental types, you should be able
to build a proxy in Java, and talk to a .NET web service. Although I haven't
worked on such architectures, I am guessing types like DataSet probably
won't be as easy.
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Alessandro Benedetti" <alessandro@mio.it> wrote in message
news:8540632466796225270821@news.tin.it...
> Hello Manohar, yours is the same solution as Brock Allen i think. I didn't
> know that it is possibile to do that with any type of object. I will try
> (and I'll read documentation about serialization because I don't know
nothing
> about it).
> My question is, if the client is a Java application for example, the app
> have to save the result in a generic object?
>
> Thank you
> Alessandro Benedetti
>
> > Allesandro,
> >
> > Why not simply do a:
> >
> > [WebMethod(EnableSession=true)]
> > public MyClass WM1()
> > {
> > //Assuming X is an object of type MyClass
> > return X;
> > }
> > The MyClass object will be serialized and sent across.
> >
> > "Alessandro Benedetti" <alessandro@mio.it> wrote in message
> > news:6697632466584359160262@news.tin.it...
> >
> >> Hi. I'm calling two methods of a .NET Webservice (A) from another
> >>
> > Webservice
> >
> >> (B).
> >>
> >> The A Webservice is made like this:
> >>
> >> [WebService(Namespace="WebServiceA")]
> >> public class WSA: System.Web.Services.WebService
> >> {
> >> private int X = 0;
> >> [WebMethod(EnableSession=true)]
> >> public void WM1()
> >> {
> >> X = 1;
> >> }
> >> [WebMethod(EnableSession=true)]
> >> public string WM2()
> >> {
> >> return(X);
> >> }
> >> }
> >> In B WebService I make only one instantion of the A Webservice's
> >> proxy
> >>
> > class
> >
> >> and then call first method (WM1) and then the second one (WM2) but
> >> WM2
> >>
> > always
> >
> >> return 0.
> >> So, I've used Session to save my variable, but I would like to know
> >> if
> > there
> >
> >> is another way that doesn't use session that I don't like.
> >>
> >> Thank you.
> >> Alessandro
>
>
>
- Next message: Brock Allen: "Re: How to mantain the state between 2 call of the same WebService?"
- Previous message: Alessandro Benedetti: "Re: How to mantain the state between 2 call of the same WebService?"
- In reply to: Alessandro Benedetti: "Re: How to mantain the state between 2 call of the same WebService?"
- Next in thread: Brock Allen: "Re: How to mantain the state between 2 call of the same WebService?"
- Reply: Brock Allen: "Re: How to mantain the state between 2 call of the same WebService?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|