Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Simple WebService question

Reply
Thread Tools

Simple WebService question

 
 
Ali
Guest
Posts: n/a
 
      12-02-2003
I'm wondering what happend when two separate clients create two
instances of the same remote web service.

I know that each client is essentially creating local stub
object/wrapper that will make the invocations on the web service on
the server side. But conceptually what happens to the instance
variables of the web service. Will there be two separate instances of
it.

Asumme I have class :
class Simple extends webservice..... {
public Integer x;
public Simple(int start) { x=start };
public Integer get() { return x; }
}

Will two clients creating two instances of the Simple class have two
seperate instances of Simple.x or are they shared?

kind regards.
 
Reply With Quote
 
 
 
 
Alfred B. Thordarson
Guest
Posts: n/a
 
      12-02-2003
There will be two instances of the Simple class created. This means
that the x member is different for the two instances. However, if I
understand the WebService container in IIS correctly then you can
share members by making them static. In addition I think, in your
Simple class example, there must be a default constructor for it to
work.

-Alfred

http://www.velocityreviews.com/forums/(E-Mail Removed) (Ali) wrote in message news:<(E-Mail Removed). com>...
> I'm wondering what happend when two separate clients create two
> instances of the same remote web service.
>
> I know that each client is essentially creating local stub
> object/wrapper that will make the invocations on the web service on
> the server side. But conceptually what happens to the instance
> variables of the web service. Will there be two separate instances of
> it.
>
> Asumme I have class :
> class Simple extends webservice..... {
> public Integer x;
> public Simple(int start) { x=start };
> public Integer get() { return x; }
> }
>
> Will two clients creating two instances of the Simple class have two
> seperate instances of Simple.x or are they shared?
>
> kind regards.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 0 01-26-2006 08:13 AM
Simple VB.Net / webservice requirement (but not simple for me....) Dave E ASP .Net Web Services 7 01-11-2006 02:07 PM
Simple VB.Net / webservice requirement (but not simple for me....) Dave E ASP .Net 7 01-11-2006 02:07 PM
WebService on Java server versus WebService on .NET Mr. x Java 2 10-09-2003 11:21 PM



Advertisments