473,499 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to write web service

cj
I have used web services before WSDL files and such but never written
one. I need some basic starting info.

1. Can I write a web service in a windows app? or are all web services
asp web apps? In other words what type of program do I create?

2. Anyone point me to a tutorial that is very basic like write one that
takes two numbers and returns the sum?

3. Getting a bit deeper now, but I need to know if to use VB 2003 or
2005. One of our business partners who is going to have to use it
insists I have to write it in .net 1.1 and not 2.0. I really don't see
why he would care what it is written in. I would think using it over
the web would be generic.
Oct 5 '07 #1
11 1473
cj <cj@nospam.nospamwrote in news:uq**************@TK2MSFTNGP03.phx.gbl:
1. Can I write a web service in a windows app? or are all web services
asp web apps? In other words what type of program do I create?
You can host web services in a desktop application IF you're using .NET 3.0
and WCF.

..NET 2.0 you must use ASP.NET

3. Getting a bit deeper now, but I need to know if to use VB 2003 or
2005. One of our business partners who is going to have to use it
insists I have to write it in .net 1.1 and not 2.0. I really don't see
why he would care what it is written in. I would think using it over
the web would be generic.
Perhaps he's stuck on the .NET 1.1 platform. I would use .NET 2.0 or even
WCF (.NET 3.0).

Oct 5 '07 #2
cj
How would I use .net 3.0 in a VB or ASP .Net 2005 program? I know it
uses 2.0 but I don't know how to change that. Just curious, I don't
really think I'll go to 3.0 yet.

Spam Catcher wrote:
cj <cj@nospam.nospamwrote in news:uq**************@TK2MSFTNGP03.phx.gbl:
>1. Can I write a web service in a windows app? or are all web services
asp web apps? In other words what type of program do I create?

You can host web services in a desktop application IF you're using .NET 3.0
and WCF.

.NET 2.0 you must use ASP.NET

>3. Getting a bit deeper now, but I need to know if to use VB 2003 or
2005. One of our business partners who is going to have to use it
insists I have to write it in .net 1.1 and not 2.0. I really don't see
why he would care what it is written in. I would think using it over
the web would be generic.

Perhaps he's stuck on the .NET 1.1 platform. I would use .NET 2.0 or even
WCF (.NET 3.0).
Oct 5 '07 #3
cj
Oh, also, what's WCF? Curiosity again.
Spam Catcher wrote:
cj <cj@nospam.nospamwrote in news:uq**************@TK2MSFTNGP03.phx.gbl:
>1. Can I write a web service in a windows app? or are all web services
asp web apps? In other words what type of program do I create?

You can host web services in a desktop application IF you're using .NET 3.0
and WCF.

.NET 2.0 you must use ASP.NET

>3. Getting a bit deeper now, but I need to know if to use VB 2003 or
2005. One of our business partners who is going to have to use it
insists I have to write it in .net 1.1 and not 2.0. I really don't see
why he would care what it is written in. I would think using it over
the web would be generic.

Perhaps he's stuck on the .NET 1.1 platform. I would use .NET 2.0 or even
WCF (.NET 3.0).
Oct 5 '07 #4
cj <cj@nospam.nospamwrote in news:#V**************@TK2MSFTNGP05.phx.gbl:
How would I use .net 3.0 in a VB or ASP .Net 2005 program? I know it
uses 2.0 but I don't know how to change that. Just curious, I don't
really think I'll go to 3.0 yet.
You can download the add-on tools from Microsoft.

Oct 5 '07 #5
cj <cj@nospam.nospamwrote in
news:er**************@TK2MSFTNGP05.phx.gbl:
Oh, also, what's WCF? Curiosity again.

Windows Communications Framework. It unifies (replaces) .NET Remoting and
..NET Web services.

Microsoft is recommending new development be done in WCF while legacy code
be maintained with the current Web Service/Remoting framework.
Oct 5 '07 #6
cj
oooooh, maybe I should insist this be done in WCF instead of a web
service. For once I could be on the cutting edge. Seems both ways
cause me to bleed anyway. :) I seriously doubt I could get my bosses to
go along with that idea though.

Spam Catcher wrote:
cj <cj@nospam.nospamwrote in
news:er**************@TK2MSFTNGP05.phx.gbl:
>Oh, also, what's WCF? Curiosity again.


Windows Communications Framework. It unifies (replaces) .NET Remoting and
.NET Web services.

Microsoft is recommending new development be done in WCF while legacy code
be maintained with the current Web Service/Remoting framework.
Oct 5 '07 #7
Spam Catcher
You can host web services in a desktop application IF you're using .NET
3.0
and WCF.

.NET 2.0 you must use ASP.NET

You can also do this with VB.Net < = 2005 in a windows application , you
just host a modified Casini dll ( source is provided by MS ) in a
application and ready you are
i have done this for my previous employer to create a platform independent
business logic control ( at start in VB .Net 2002 ) i just modified the
casini dll ( C# ) in such a way that it accepted remote connections in
short ( create a web service , start an application that inits the cassini
dll , point to the directory where the webservice is located and you are up
and running )

regards

Michel
"Spam Catcher" <sp**********@rogers.comschreef in bericht
news:Xn**********************************@127.0.0. 1...
cj <cj@nospam.nospamwrote in news:uq**************@TK2MSFTNGP03.phx.gbl:
>1. Can I write a web service in a windows app? or are all web services
asp web apps? In other words what type of program do I create?

You can host web services in a desktop application IF you're using .NET
3.0
and WCF.

.NET 2.0 you must use ASP.NET

>3. Getting a bit deeper now, but I need to know if to use VB 2003 or
2005. One of our business partners who is going to have to use it
insists I have to write it in .net 1.1 and not 2.0. I really don't see
why he would care what it is written in. I would think using it over
the web would be generic.

Perhaps he's stuck on the .NET 1.1 platform. I would use .NET 2.0 or even
WCF (.NET 3.0).

Oct 6 '07 #8
Hi Cj,

For webservices, it is mainly used to let heterogenious clients(.net, java,
c++...) to consume it, therefore, it is recommended that we author WSDL so
as to make sure it is not platform dependent.

Of course, you do not have to use ASP.NET to build webservice, you can use
any components or services which can receive http/soap messages, process
them and return back http/SOAP messages. However, using Visual Studio's
webservice project type will make developing a webservice quite convenient.
Here are some tutorial on standard xml webservice and asp.net webservice:

#Web Services Tutorial
http://www.w3schools.com/webservices/default.asp

#Welcome to the ASP.NET Web Services QuickStart Tutorial
http://quickstarts.asp.net/QuickStartv20/webservices/

For WCF, it is the next generation communication technology of windows
platform, it can build webservice compatible services, but also provide
more other non-webserivce like remote services:

#Getting Started Tutorial
http://msdn2.microsoft.com/en-us/library/ms734712.aspx

#samples:
http://wcf.netfx3.com/files/default.aspx

Hope this also helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Date: Fri, 05 Oct 2007 19:07:29 -0400
From: cj <cj@nospam.nospam>
>Subject: Re: Need to write web service
>
oooooh, maybe I should insist this be done in WCF instead of a web
service. For once I could be on the cutting edge. Seems both ways
cause me to bleed anyway. :) I seriously doubt I could get my bosses to
go along with that idea though.

Spam Catcher wrote:
>cj <cj@nospam.nospamwrote in
news:er**************@TK2MSFTNGP05.phx.gbl:
>>Oh, also, what's WCF? Curiosity again.


Windows Communications Framework. It unifies (replaces) .NET Remoting
and
>.NET Web services.

Microsoft is recommending new development be done in WCF while legacy
code
>be maintained with the current Web Service/Remoting framework.
Oct 8 '07 #9
Steven,

Why are you given this solution. I don't see any productivity in it while
there is already from VS 2002 a very nice WebService solution which takes
some hours. Going around this cost weeks. We don't have all that amount of
time as some Microsoft people think you have to realize solutions for simple
problems. (Lucky enough there also those who create real tools for the
business)

Ge has given in my idea the right answer. There was in my idea less to add
to his answers.

Cor

Oct 8 '07 #10
Thanks Cor,

Do you mean the "WCF" one? If so, I just provide it for the OP's reference
as he has mentioned some curiosity on this. Surely, I have nothing to do to
question the idea Ge showed.

Thanks for your care.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Cor Ligthert[MVP]" <no************@planet.nl>
>Subject: Re: Need to write web service
Date: Mon, 8 Oct 2007 07:06:22 +0200
>
Steven,

Why are you given this solution. I don't see any productivity in it while
there is already from VS 2002 a very nice WebService solution which takes
some hours. Going around this cost weeks. We don't have all that amount of
time as some Microsoft people think you have to realize solutions for
simple
>problems. (Lucky enough there also those who create real tools for the
business)

Ge has given in my idea the right answer. There was in my idea less to add
to his answers.

Cor

Oct 8 '07 #11
"Michel Posseth [MCP]" <ms****@posseth.comwrote in
news:u$*************@TK2MSFTNGP02.phx.gbl:
Spam Catcher
>You can host web services in a desktop application IF you're using
.NET 3.0
and WCF.

.NET 2.0 you must use ASP.NET


You can also do this with VB.Net < = 2005 in a windows application ,
you just host a modified Casini dll ( source is provided by MS ) in
a application and ready you are
i have done this for my previous employer to create a platform
independent business logic control ( at start in VB .Net 2002 ) i just
modified the casini dll ( C# ) in such a way that it accepted remote
connections in short ( create a web service , start an application
that inits the cassini dll , point to the directory where the
webservice is located and you are up and running )
True, but AFAIK, Casini was just a starter kit and not really
recommneded for production quality apps - especially ones that may be
potentially exposed to the Internet.

WCF on the otherhand provides a full framework for self-hosting.

Of course if you're stuck on .NET 1.1 or 2.0 ... Casini is your only
option, but if you have the ability to use 3.0, ServiceHost represents a
very attractive option.
Oct 8 '07 #12

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

Similar topics

2
4417
by: techy techno | last post by:
hii Experts..!! I need someone to tell me where I can get a Currency Converter like http://cconv.textor.com please can someone tell me where I can get it I need it for free + I dont need...
1
1172
by: Karl | last post by:
I'm trying to learn an acceptable way to marshal complex data between an ASP.NET web service and an ASP.NET web client. Initially, it will be enough for the client to display the data from the...
5
3469
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices...
3
12484
by: caldera | last post by:
Hi, I write a windows service. In that service I create a new subkey for registry. But service install is call CreateSubKey() the program throw an exception to the event log said that Cannot write...
0
920
by: Tappy Tibbons | last post by:
We are trying to write a simple GUI front end to communicate with a service. We need the GUI to make the service fire certain events if the user needs to re-perform certain tasks manually, and...
1
4013
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
16
2503
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
7
1155
by: cj | last post by:
I need to write a web service--actually several. The data these web services return will come mostly from odbc data sources. Also I'd like to make this a web application as opposed to a windows...
5
12544
by: DotNetDanny | last post by:
Hello Machine: Windows Vista Business, standalone machine (no domain). Installed an old classic ASP webapplication in IIS7, running under a new app.pool with 'NETWORK SERVICE' account (using...
10
7335
by: Dutchmarshalls | last post by:
Hi All, I'm using a Pay Pal form script, but locally tested in Dreamweaver with a browser it will do exactly what I'm aspect it to do. Only when I'm uploaded the file on the server it will give...
0
7130
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,...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7386
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...
0
5468
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,...
0
4599
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...
0
3098
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...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
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...

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.