473,386 Members | 2,078 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,386 software developers and data experts.

Implementing .NET 1.1 style asynchronous web services with .NET 2

org
Hi,

I'm developing a web service with should be used by an .NET CF2 client and
an .NET 2.0 Windows client.
I've tried to put all the connection logic into one class, which could be
used in common from the mobile and the windows client. But this didn't work:
The new .NET framework supports asynchronous web services with the
"MethodnameCompleted+=new MethodNameEventHandler pattern, but the "old
style" .NET 1 pattern used in the compact framework works with BeginInvoke
and delegates. Is there a way to create (in VS2005) the "old-style" proxy
class to access the web service that offers this BeginInvoke methods?

best regards
Johannes
Dec 18 '05 #1
1 3150
Johannes,

I'm not sure I understand your question/problem. The asynchronous
patterns of BeginOperation/EndOperation vs.
Operation/OperationCompleted are concurrent programming patterns in
..NET that allow your other threads to continue to do work while one
thread waits on the (synchronous) response from the Web service.

This doesn't affect the message exchange pattern exposed by the Web
service which is still synchronous request/response in both versions.
The XML sent/received will be about the same from .NET 1.1 proxy or
..NET 2.0 proxy using the synchronous methods or asynchronous methods.

HTH,
~Mork
org wrote:
Hi,

I'm developing a web service with should be used by an .NET CF2 client and
an .NET 2.0 Windows client.
I've tried to put all the connection logic into one class, which could be
used in common from the mobile and the windows client. But this didn't work:
The new .NET framework supports asynchronous web services with the
"MethodnameCompleted+=new MethodNameEventHandler pattern, but the "old
style" .NET 1 pattern used in the compact framework works with BeginInvoke
and delegates. Is there a way to create (in VS2005) the "old-style" proxy
class to access the web service that offers this BeginInvoke methods?

best regards
Johannes


Dec 19 '05 #2

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

Similar topics

9
by: Michael Lindsey | last post by:
I need to write a server app to send images to client GUIs that are outside of the server's domain. The client will have the file system path to the image but can not access the file system. I am...
8
by: Trotsky | last post by:
Hi I have asked a similar question on the web services discussion group, but the question is a bit more related to ASP.Net. Basically I have a ASP.Net application that calls a web service...
3
by: VMI | last post by:
I posted this question several days ago, but I don't think I specified what version of .Net I was using. I'm currently using VS 2005 framework 2.0. Where can I find information on asynchronous web...
0
by: Raymondr | last post by:
Hi, First a brief description of out application: We have a webapplication which calls a couple of webservices during one request (postback). These calls to the webservices are made concurrent...
8
by: Simon Gorski | last post by:
I have a large problem, and I believe there is not yet a way to solve this using IIS and ASP.NET. I hope someone has a solution which we couldn't find. The current situation When a user logs...
4
by: Morgan Cheng | last post by:
Since ASP.NET 2.0, asynchronous web service client can be implemented with event-based pattern, instead of original BeginXXX/EndXXX pattern. However, I didn't find any material about event-based...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
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
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...

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.