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

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 2280
"sridhar" <sr*****@discussions.microsoft.comwrote in message
news:3F**********************************@microsof t.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*****@discussions.microsoft.comwrote in message
news:3F**********************************@microsof t.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*****@discussions.microsoft.comwrote in message
news:CF**********************************@microsof t.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
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....
0
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...
7
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() {...
5
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); ...
0
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...
2
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...
2
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...
4
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...
2
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 /...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.