473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Webservice questions.

Hi, I have a few webservice questions i'd like to bounce of you...

1. Can a webservice contain a paramterized contructor ( can't the
contructor take parameters )?
2. If two users make an initial call to a webservice, will diferent
instances of the webservice object be instantiated on the server?
(assuming the service is not designed to be a singleton)

3. The reason i ask these question is that we have some java based
webservices which return some simple array of beans type objects. The
webservice takes two string parameters in it's constructor. However,
when i auto-generate the C# proxy classes using wsdl.exe and the
webservice's .wsdl file, all goes well, except that the contructor of
the auto-generated C# proxy classes does not take any parameters, as
does the actual webservice that reside on the server.

thanks

Nov 17 '05 #1
2 1932
Hi,

1. The only thing you can expose to clients, are the web methods. So a web
service could have parameterized constructors, but I doubt they'd be of much
use unless they are a web method. It really depends what you need them for.
You can, additionally, modify the generated proxy class to take parameters
in the constructor, but note that you'll need to do this everytime you
update the web reference.

2. Yes. Web services are stateless, remember that.

3. See #1 and #2.

HTH,
S.M. Altaf
[MVP - VB]
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"farseer" <fa*****@optonline.net> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi, I have a few webservice questions i'd like to bounce of you...

1. Can a webservice contain a paramterized contructor ( can't the
contructor take parameters )?
2. If two users make an initial call to a webservice, will diferent
instances of the webservice object be instantiated on the server?
(assuming the service is not designed to be a singleton)

3. The reason i ask these question is that we have some java based
webservices which return some simple array of beans type objects. The
webservice takes two string parameters in it's constructor. However,
when i auto-generate the C# proxy classes using wsdl.exe and the
webservice's .wsdl file, all goes well, except that the contructor of
the auto-generated C# proxy classes does not take any parameters, as
does the actual webservice that reside on the server.

thanks

Nov 17 '05 #2
Thanks Altaf...this was helpful.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: MA | last post by:
Hi all! I know there is other newsgroups for webservices, but I don´t get any answers on those. I have developed a webservice that writeing and reading files in different folders. Question...
4
by: MacLanca | last post by:
Hi, I've done the HelloWorld WebService, installed in a WebServer (INTERNET) When I call it with Windows App it works, if I use a webform it doesn’t (INTERNET) Both of them work in the INTRANET...
8
by: Topper | last post by:
Hello. I have simple web folders structure: -ROOT - BIN WebService.dll WebService.asmx I need to use my WebService.dll not in bin folder - for example, in ROOT. How do i this? How can i do...
1
by: hazz | last post by:
if I think about efficiently sending data back and forth through a webservice for a 'typical' application (in this case smart client using Composite UI application block) what questions do I ask...
1
by: batista | last post by:
Hi, I'm using webservice.htc to call a non-secure(without https) webservice method from a webpage. Now, if the webpage is not under https then everything works fine. But, when enable ssl in...
7
by: Robbert van Geldrop | last post by:
Hello, I have a problem in a C# client that consumes a webservice which is wrapped by WSE 2.0 sp3: The WebService works fine but very rarely my client comes in a state where every call to the...
2
by: Techno_Dex | last post by:
I have a custom object that I have written which is serializable. I have put this object in it's own dll which is referenced by both the WebService and the Application using it. My problem is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.