473,761 Members | 10,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is web service the right solution

I need to write a program that can be called from the web and from a desktop
application. They are not on different machine. Is web service the right
solution? Beside web service, which techniques are using right now. Thanks
Nov 21 '05 #1
2 1170
Web services is one alternative, but you should consider some other
requirements of your application to determine the best option:

1. Is performance an important issue?
2. Do you need interoperabilit y? Meaning will you have other programs on
different OS and written in different languages calling your program?

There are 3 main options you can choose from in the .NET Framework to access
remote code (sorted by increasing difficulty):
1. XML Web Services
2. .NET Remoting
3. Write your own socket code.

Which one you choose depends on your requirements as I mentioned above.
Take a look at this page for more information about requirements and the 3
options.

http://msdn.microsoft.com/library/?u...asp?frame=true

Eric


"mimi" <mh****@hotmail .com> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl...
I need to write a program that can be called from the web and from a desktop application. They are not on different machine. Is web service the right
solution? Beside web service, which techniques are using right now. Thanks

Nov 21 '05 #2
Thanks Eric. Performance is an important issue. All client programs are
written in .NET and run on the same OS. .Net remoting may be the best
choice to me. But web service sounds easier than since there are a lot
documents and examples about web service. I would try .net remoting
anyway.

"Eric Cherng" <ericch1@remove _the_dot-hotmai.l.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Web services is one alternative, but you should consider some other
requirements of your application to determine the best option:

1. Is performance an important issue?
2. Do you need interoperabilit y? Meaning will you have other programs on
different OS and written in different languages calling your program?

There are 3 main options you can choose from in the .NET Framework to access remote code (sorted by increasing difficulty):
1. XML Web Services
2. .NET Remoting
3. Write your own socket code.

Which one you choose depends on your requirements as I mentioned above.
Take a look at this page for more information about requirements and the 3
options.

http://msdn.microsoft.com/library/?u...asp?frame=true
Eric


"mimi" <mh****@hotmail .com> wrote in message
news:eM******** ******@TK2MSFTN GP12.phx.gbl...
I need to write a program that can be called from the web and from a

desktop
application. They are not on different machine. Is web service the right solution? Beside web service, which techniques are using right now.

Thanks


Nov 21 '05 #3

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

Similar topics

11
2267
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
13
2858
by: BK | last post by:
Can someone point me to a code sample that illustrates executing long running tasks (asynchronous) from a web application in ASP.NET? I assume that Web Services might come into play at some point, but I'm not sure how to get started. For example, I have an application that, upon a user initiating through a button or link click, will go out and generate a bunch of files (this could take several minutes). This will happen in batches, so I...
7
10324
by: Lalit | last post by:
Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu fo this icon. Can i do this? With regards, Lalit
9
7272
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service stopping. Please advise how to stop the service. Thanks, SP
3
57001
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the service on the Windows Server 2003 box? Thanks!
5
2204
by: Buddy Ackerman | last post by:
My app is a .NET forms app that runs in the taskbar and periodically polls a web service. I have a client that wants the app to integrate with their Active Directory. They do not want the user to have to provide the username and password to login to the application/web service. I need to be able to send the users authenticated security token to the web service. I have looked at the UserNameToken class of the WSE 2.0 Security.Tokens...
11
3658
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
5
5586
by: Oriane | last post by:
Hi, I have a .Net Visual Studio solution with one asp.net Web application, which uses a Asp.Net Web service. Both are compiled in debug mode, and both are using the Studio development web server for debugging. I have also add the Web reference to the web service with the "Add Web service in the solution" choice, that is the Web app starts the Web service with the Studio development web server. So I thought I could set breakpoints on...
0
9531
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
9957
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
8780
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
7332
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
6609
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
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
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
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
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.