473,797 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Object pooling instance of a web service proxy class

would like to know is it recommended to use techniques like object pooling or
the using static instances of the proxy class of a web serivice

highly appreciate your opinions and recommendations on how to of the above
scenario.

are there any best practices in using proxy classes of a web service

Thanks in advance

Mar 9 '07 #1
3 2299
"sridhar" <sr*****@discus sions.microsoft .comwrote in message
news:3F******** *************** ***********@mic rosoft.com...
would like to know is it recommended to use techniques like object pooling
or
the using static instances of the proxy class of a web serivice

highly appreciate your opinions and recommendations on how to of the above
scenario.

are there any best practices in using proxy classes of a web service
What led you to consider doing such a thing? Is there some reason you feel
you need to do this?

John
Mar 10 '07 #2
Hi john,

Let me explain you, my requirement

we are going to develop a web application that has to communicate with a
data vendor through their webservice for some specific evaluation.

Typicall we may have around 8000 transactions per hour.

I understand that for every transaction we are going to hit the webservice
through the proxy class instance and evaluate our data and save the response.

so i wonder can we adopt any best practise that makes the process simple and
efficient.

highly appreciate your opinion and suggestions.
"John Saunders" wrote:
"sridhar" <sr*****@discus sions.microsoft .comwrote in message
news:3F******** *************** ***********@mic rosoft.com...
would like to know is it recommended to use techniques like object pooling
or
the using static instances of the proxy class of a web serivice

highly appreciate your opinions and recommendations on how to of the above
scenario.

are there any best practices in using proxy classes of a web service

What led you to consider doing such a thing? Is there some reason you feel
you need to do this?

John
Mar 12 '07 #3
"sridhar" <sr*****@discus sions.microsoft .comwrote in message
news:CF******** *************** ***********@mic rosoft.com...
Hi john,

Let me explain you, my requirement

we are going to develop a web application that has to communicate with a
data vendor through their webservice for some specific evaluation.

Typicall we may have around 8000 transactions per hour.

I understand that for every transaction we are going to hit the webservice
through the proxy class instance and evaluate our data and save the
response.

so i wonder can we adopt any best practise that makes the process simple
and
efficient.
My suggestion is to do nothing special. That will be simple, as you
requested.

If it turns out not to be fast enough, you can then address "efficient" . But
you will be working on the efficiency of a working piece of code, instead of
working on both efficiency and functionality at the same time.

With any luck, you will even have developed automated tests for your working
code, so that you will be able to use those tests during performance
enhancement, to determine whether or not your performance enhancements have
broken your code.

This is not COM. You should not expect a major performance hit to
instantiate a web service proxy class. You are much more likely to break
your code by trying to do something fancy to solve a performance problem
which may not actually exist.

Good Luck,
John
Mar 12 '07 #4

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

Similar topics

4
1478
by: Ravi | last post by:
Hi, I have a (stupid) question on why web service class needs an instance. Everybody knows its stateless then why cant it can be standardized that all methos in web service class should be static. For eg I create an instance websrv. I have 2(set/get) methods and a private variable 'name'. websrv.setName("Hello"); and in next line if I call websrv.getName() obviously it wont work. then why cant we make it static.
0
986
by: Arthur Mnev | last post by:
I'm a little confused about autogenerated proxy stubs for web services. Creating the stubs manually works fine; if I attempt to use "Web Reference" with automatic class generation the framwork (or VS.2003) will generate a proxy class for the web service, that class will contain half backed XML representation of classes the service is using (consuming or returning). Logically it seems fine at every step except Automatic Proxy generator is...
7
1997
by: J-T | last post by:
I can instantiate my object in my *ASP.NET* application in two ways: A) public sealed class RSSingleton { private static ReportingServiceProxy m_RsProxy=null; static RSSingleton() { m_RsProxy = new ReportingServiceProxy();
5
4878
by: Joseph Geretz | last post by:
Here's my first attempt at DIME (code below signature). I'ts basically straight out of Microsoft's online sample: For some reason, the statement respContext.Attachments.Add(dimeAttach); trips the following error: Object reference not set to an instance of an object.
0
1144
by: hazz | last post by:
After generating an XML Web Service proxy class using wsdl.exe, I added a proxy class to a new VS2005 project to consume my webservice. I want to call the method ReturnCustomer() whose proxy details are below and assign the array of the object the return value of the function Service s = new Service(); Customer = s.ReturnCustomer; or object = s.ReturnCustomer(); The designtime debugger throws an error for s.ReturnCustomer() saying " No...
2
580
by: syed | last post by:
Hi all, I am trying to invoke xml web service from dot net assembly . it is fails to create the proxy object and throw the below exception. Pls any suggestions. Error Desc: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about
2
1286
by: NightHawk | last post by:
I am using C# in VS2005 .Net, with a service which passes data to a proxy using a soap message. If all of the instance variables are strong typed, I have no problem, but I need to pass an instance variable which is held as an object. When I get the object in the proxy, it is an XmlNode with 2 elementsXmlNode is an XmlAttribute, and XmlNode is an XmlText. The XmlAttribute contains the correct information about the data type, and the XmlText...
4
1636
by: =?Utf-8?B?QWw=?= | last post by:
Hello, I'm writing a service using VS2005 and C#. I've found that only the objects used as parameters in WebMethods get exported to proxy dlls and the Service Description. I'd like my service clients to be able to use the objects I've defined in messages to the service and send them as "object" parameters or as embeded items in other objects. I can work around the problem by declaring all of the objects as public members of a dummy...
2
3058
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton / Server activated mode on startup. The Remoting Client accesses the Remoting Class through the interface of the Class and subscribes to an event of the Remoting Class that will be fired upon the private member value change.
0
10469
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9066
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7560
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.