Hi Mark,
From your description, you're encountering two problems:
1. the startup delay of 1st webservice call(at client proxy)
2. Async operation with the webservice (not work for more than 1 calls)
Regarding on the first issue, a common cause is the XML serialization
assembly's dynamic generation. From .NET 2.0/VS 2005, it support
pregenerate some XML serialization assembly for webservice client. You can
find the option in Visual studio project properties's "build-->generate
serialization assembly" section(in property dialog). Her are some reference
on this;
#Improving Performance of XML Serializers in .Net
http://eprystupa.wordpress.com/2008/...e-of-xml-seria
lizers-in-net/
#XML Serializer Generator Tool (Sgen.exe)
http://msdn.microsoft.com/en-us/libr...40(VS.80).aspx
Also, when using WCF client to call XML webservice, you'll also encounter
this startup preformance issue:
http://blogs.msdn.com/eugeneos/default.aspx http://msdn.microsoft.com/en-us/library/aa751883.aspx
For the second async method call issue, would you provide some further
description and code snippet to demonstrate the problem scenario?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we
can improve the support we provide to you. Please feel free to let my
manager know what you think of
the level of service provided. You can send feedback directly to my manager
at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response
from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take
approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump
analysis issues. Issues of this nature are best handled working with a
dedicated Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?TWFyaw==?= <mm******@nospam.nospam>
Subject: SOAP .Net client wrapper questions
Date: Thu, 14 Aug 2008 11:03:01 -0700
Hi...
I've got a .Net client to a soap service that works for the most part, but
there are a couple of things I'd like to improve:
1) the first request to the client wrapper always takes 12-15 seconds even
though the web server shows < a half second spent on the request. What
takes
so much time for the client wrapper to warm up? All subsequent requests,
even to the same method, take the half second.
2) I tried using the async methods, but for some reason when I have 2
outstanding async web service requests one never registers as finished,
even
though they both have different completion routines. What do I have to do
to
get async calls to work?
Thanks
Mark