473,785 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Service Proxy -- Begin/End pattern?

Is there a way to get VS2005 to generate the Begin/End pattern (as VS2003
always did) for async web service calls rather than the
MethodAsync/MethodCompleted pattern when adding web references?

The MSDN documentation seems schizophrenic and references both patterns, but
I can't find a way to change the behavior back to the VS2003/Begin/End style.

The Begin/End pattern is just much more convenient for some scenarios.

Thanks!

Apr 25 '06 #1
2 1942
Yeah use wsdl out of the 1.1 framework to generate it :)

I would imagine that you could try tricking it into using the old wsdl.exe
but I am not sure what other odd dependencies may exist :)
"D.J. Heap" <DJ****@discuss ions.microsoft. com> wrote in message
news:84******** *************** ***********@mic rosoft.com...
Is there a way to get VS2005 to generate the Begin/End pattern (as VS2003
always did) for async web service calls rather than the
MethodAsync/MethodCompleted pattern when adding web references?

The MSDN documentation seems schizophrenic and references both patterns,
but
I can't find a way to change the behavior back to the VS2003/Begin/End
style.

The Begin/End pattern is just much more convenient for some scenarios.

Thanks!

Apr 27 '06 #2
The new wsdl.exe generates both styles by default and I've used it as a
workaround, but it'd be nice to know if VS2005 is going to break all our
VS2003 web service clients (if someone updates a web reference) or if it has
an option to do one or the other or both styles...

DJ

"Greg Young [MVP]" wrote:
Yeah use wsdl out of the 1.1 framework to generate it :)

I would imagine that you could try tricking it into using the old wsdl.exe
but I am not sure what other odd dependencies may exist :)
"D.J. Heap" <DJ****@discuss ions.microsoft. com> wrote in message
news:84******** *************** ***********@mic rosoft.com...
Is there a way to get VS2005 to generate the Begin/End pattern (as VS2003
always did) for async web service calls rather than the
MethodAsync/MethodCompleted pattern when adding web references?

The MSDN documentation seems schizophrenic and references both patterns,
but
I can't find a way to change the behavior back to the VS2003/Begin/End
style.

The Begin/End pattern is just much more convenient for some scenarios.

Thanks!


Apr 27 '06 #3

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

Similar topics

5
4607
by: rgarf | last post by:
I have a C++ application that consumes a web service. I would like to call the web service asynchronously so my C++ application can do other processing in between. My proxy file does not have any asynchronous methods in it, What do I have to do to get my proxy file to have the asynchronous methods to call? Thanks
1
2006
by: Michael S. Scherotter | last post by:
I have a proxy class derived from System.Web.Services.Protocols.SoapHTTPClient that calls a web service. Sometimes, because the call takes a longer time, I get the OLE server busy dialog. Is there any way to control/customize the display of this dialog? Michael S. Scherotter Business Solutions Architect Mindjet LLC
4
7062
by: Vlad | last post by:
I am implementing class that uses Web service written by another and it is not implemented yet. How can I test my class using NUnit framework without make changes in future when web service will be implemented?
1
4326
by: Simon Hart | last post by:
Hi, I thought I'd just open a thread in an attempt to get peoples feelers with regards to multithreading vs Async Web Service processing. Of course Web Services makes it easy to do Async method calling, but what if you are already in a worker thread in a Windows Forms application when doing the web service call. In this case there is no need to use Async Begin..End features that .NET kindly presents us with.
2
2260
by: shyam | last post by:
I have a C++ COM based windows service which have more than 30k lines of code and which is stablized over years. We need to take the advantage of the ..NET framework for this project, especially the GUI for this service and the other windows non gui .NET clients. What's the best migaration pattern for us considering not to rewrite the thousands of lines of code. The question i have are the follows.
1
3153
by: FluffyCat | last post by:
This week I've I continued my series of design patterns examples using PHP 5 with the Bridge Pattern and the Flyweight Pattern. Here now is my 19th design pattern example using PHP 5, the Proxy Pattern. http://www.fluffycat.com/PHP-Design-Patterns/Proxy/ In the proxy pattern one class stands in for and controll all calls to another class.
6
13825
by: nickname | last post by:
I want to pass some xml to a web service method, the xml will confirm to a defined schema. Lets say the schema is defined as: <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="books"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="book"> <xs:complexType>
5
2168
by: Josh | last post by:
I have application1 that connects to webService1. I have a second application that references the same webservice (webService1). I need to pass an instance of a class returned from webService1 from application1 to application2. I have a reference (assembly.load) of application2 in application1, but when it won't let me cast it - saying they're different types. What are my options? Thanks in advance, Joshua Moore
1
7004
by: alsammud | last post by:
Hy, I have a Wcf service tat receives files from clients. The contract: #region ServiceContract public interface IWcfService { IAsyncResult BeginSendFile(UploadFile file, AsyncCallback callback, object state);
0
9647
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
10356
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
10161
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...
0
9958
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
8986
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
7506
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
5390
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
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2890
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.