473,320 Members | 1,825 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,320 software developers and data experts.

Webservices (Vs) .cs class files

Hello Guys,

I have a question with regards to the efficiency and best practices in .NET
framework.

We are currently using Webservices as normal classes. The way we are
invoking methods in these Webservices is by instantiating objects of these
Webservices and not by adding web references to these services...

My question is "Would there be any performance or efficiency overhead, if we
are using Webservices in this fashion instead of using normal .CS class
files?"

Is there any difference in how a Webservice is loaded and a class's object
is instantiated. I would like to know the low-level mechanism on how a
webservice is loaded.....

Thanks for any pointers!!!
Nov 18 '05 #1
1 1485
there is no additional overhead with your approach.

when you add a web reference to your project, it create a new class file
that is a proxy for the web service. your code then calls this proxy which
makes a soap call to the server hosting the actual class object. the web
service code on the server creats a instance of the class, calls the
approiate method, serialies the results and sends back to the caller.

in your case you are creating the class instance directly, so there is no
overhead. the web service attributes you see in the class files are used
when hosting the web serverice. its just meta data to help in knowning what
methods to expose as a web service entry point.

-- bruce (sqlwork.com)

"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:9E**********************************@microsof t.com...
| Hello Guys,
|
| I have a question with regards to the efficiency and best practices in
..NET
| framework.
|
| We are currently using Webservices as normal classes. The way we are
| invoking methods in these Webservices is by instantiating objects of these
| Webservices and not by adding web references to these services...
|
| My question is "Would there be any performance or efficiency overhead, if
we
| are using Webservices in this fashion instead of using normal .CS class
| files?"
|
| Is there any difference in how a Webservice is loaded and a class's object
| is instantiated. I would like to know the low-level mechanism on how a
| webservice is loaded.....
|
| Thanks for any pointers!!!
|
|
Nov 18 '05 #2

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

Similar topics

5
by: hellrazor | last post by:
Hi, (new to webservices here) Is it possible to access a class instance variable defined in a webservice? I want to access this variable, in addition to the data being returned by the . so...
8
by: Allan Ebdrup | last post by:
I just had a discussion with one of my fellow programmers. We have a class for doing some logging and sending an email, it has 5 different scenarioes of loggin that are common enough to share a...
6
by: Joseph Geretz | last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is that my sample WebService pages no longer worked. The Invoke test button is missing. This is addresed by the following KB...
0
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
4
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel...
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
3
by: Frederik Wehlin | last post by:
Hi, I'm currently developing a windows form application, which should be able to communicate with a couple of WebServices. The Webservices are not created by me or my company and also not in .net...
2
by: =?Utf-8?B?QnVzYnk=?= | last post by:
Hi I need to retrieve a list of all WebServices running on a specific machine. Much like DevStudio produces a list of WebServices on the local machine. The machine is XP Pro and as far as I...
3
by: Seth Williams | last post by:
I have done some new development on older files, locally - then I copy the files, along with the .vb files for the webservices, to our DEV server. Now, mysteriously, no web services are running - I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.