473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to speed up the webservice proxy creation

In my winform application, to access webmethod, we create a webservice
proxy object. For the first time, when winform application is started,
for creating proxy object(e.g. MyWebServiceProxy oProxy = new
MyWebServiceProxy() )it takes a long time(appr. 2 seconds), but for
the next time it happens in 0-10 milli-seconds.

For each proxy object for first time creation it takes looong time.
One reason I know is because of JIT compilation(MSIL is converted into
m/c code each time.)

What can be other reasons? How can I speed-up proxy creation at first
time?
Note: I cannot use NGen bcoz of limitations of NGen(requires admin
login)

Pls help me.

Thanx and regards
Atul
Nov 21 '05 #1
2 3524
Hi,

What is happening is that the serializer for the types exposed/consumed by
the proxy is generated on first use. To resolve this, pre-run each
application and ship the generated custom serializer assembly with the
application bits. Another thing you could consider is creating an instance
of the proxy class during your installation process - so that the
serailizers are pre-created when you install.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: at**********@itb-india.com (Atul)
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: How to speed up the webservice proxy creation
Date: 28 Nov 2004 21:21:15 -0800
Organization: http://groups.google.com
Lines: 19
Message-ID: <f5**************************@posting.google.com >
NNTP-Posting-Host: 61.11.19.150
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1101705676 21797 127.0.0.1 (29 Nov 2004
05:21:16 GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Mon, 29 Nov 2004 05:21:16 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7670
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

In my winform application, to access webmethod, we create a webservice
proxy object. For the first time, when winform application is started,
for creating proxy object(e.g. MyWebServiceProxy oProxy = new
MyWebServiceProxy() )it takes a long time(appr. 2 seconds), but for
the next time it happens in 0-10 milli-seconds.

For each proxy object for first time creation it takes looong time.
One reason I know is because of JIT compilation(MSIL is converted into
m/c code each time.)

What can be other reasons? How can I speed-up proxy creation at first
time?
Note: I cannot use NGen bcoz of limitations of NGen(requires admin
login)

Pls help me.

Thanx and regards
Atul

Nov 21 '05 #2
Atul:

Other than what Dan said, with .NET Framework 2.0, our lifes will be
simplifies because it comes with a tool called sgen.exe that pre-generates
all the serialization assemblies.

Thanks,
Mujtaba.
"Dan Rogers" <da***@microsoft.com> wrote in message
news:cZ**************@cpmsftngxa10.phx.gbl...
Hi,

What is happening is that the serializer for the types exposed/consumed by
the proxy is generated on first use. To resolve this, pre-run each
application and ship the generated custom serializer assembly with the
application bits. Another thing you could consider is creating an
instance
of the proxy class during your installation process - so that the
serailizers are pre-created when you install.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: at**********@itb-india.com (Atul)
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: How to speed up the webservice proxy creation
Date: 28 Nov 2004 21:21:15 -0800
Organization: http://groups.google.com
Lines: 19
Message-ID: <f5**************************@posting.google.com >
NNTP-Posting-Host: 61.11.19.150
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1101705676 21797 127.0.0.1 (29 Nov 2004
05:21:16 GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Mon, 29 Nov 2004 05:21:16 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7670
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

In my winform application, to access webmethod, we create a webservice
proxy object. For the first time, when winform application is started,
for creating proxy object(e.g. MyWebServiceProxy oProxy = new
MyWebServiceProxy() )it takes a long time(appr. 2 seconds), but for
the next time it happens in 0-10 milli-seconds.

For each proxy object for first time creation it takes looong time.
One reason I know is because of JIT compilation(MSIL is converted into
m/c code each time.)

What can be other reasons? How can I speed-up proxy creation at first
time?
Note: I cannot use NGen bcoz of limitations of NGen(requires admin
login)

Pls help me.

Thanx and regards
Atul

Nov 23 '05 #3

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

Similar topics

6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
0
by: Atul | last post by:
In my winform application, to access webmethod, we create a webservice proxy object. For the first time, when winform application is started, for creating proxy object(e.g. MyWebServiceProxy oProxy...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the...
4
by: Sai | last post by:
I am new to this area,please bear with me for this basic question. :) I have an xml schema file xyz.xsd file with me,That contains request and response xml schema ,how can I proceed to create a...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
3
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
1
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...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.