473,765 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
+ 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. MyWebServicePro xy oProxy = new
MyWebServicePro xy() )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(MSI L 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 3549
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**********@it b-india.com (Atul)
Newsgroups: microsoft.publi c.dotnet.framew ork.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**********@go ogle.com
NNTP-Posting-Date: Mon, 29 Nov 2004 05:21:16 +0000 (UTC)
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!news. glorb.com!postn ews.google.com! not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7670
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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. MyWebServicePro xy oProxy = new
MyWebServicePro xy() )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(MSI L 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***@microsof t.com> wrote in message
news:cZ******** ******@cpmsftng xa10.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**********@it b-india.com (Atul)
Newsgroups: microsoft.publi c.dotnet.framew ork.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**********@go ogle.com
NNTP-Posting-Date: Mon, 29 Nov 2004 05:21:16 +0000 (UTC)
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!news. glorb.com!postn ews.google.com! not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7670
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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. MyWebServicePro xy oProxy = new
MyWebServicePro xy() )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(MSI L 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
768
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 .NET Framework application, but just not on the .NET CF version. Can anyone suggest anything that might be wrong with the code? (I could post the app and webservice, but i was hoping that you might have noticed something from the supplied...
4
1693
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) ------------- namespace Elsam.Turabs.ClassLibraries.TurabsLogExeption{
2
5712
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 webbrowser controls on it. Besides that i'm using the firewall client for isa server 2004 and it seems that the browsers aren't able to pass thru it... if i disable the firewall the browsers work fine, if i don't, the 2 browsers just stay there...
0
400
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 = 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...
7
5405
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 filter-object without setting any properties. but the value type-properties can´t be null and the filter is set to 0 (int) or false (bool). therefore i did implement the propertySpecified-pattern like this:
4
1722
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 soap based xml webservice?? Thanks in advance. Sai
7
2928
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 out to create a "DataSet" as the return type from the webservice?
3
2262
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 I receive the object from the web service, I'm interested in storing that object in ViewState in the web application, but I receive the error below. I'm not shocked that the web application can't serialize the object as the attribute isn't...
2
3485
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 HttpWebRequest object. Under normal circumstances I am able to use the webservice without any problems. But after using an HttpWebRequest object to make a call to a website all subsequent attempts to use the WebService will fail with a 401...
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
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
7379
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
6649
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
5277
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.