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

Launching a .NET web service without installing the .NET framework

Hi guys,

I have written a web service, but I want clients to be able to consume it
without having the .NET framework installed on their PC. The web service
doesn't return any values; it is just used to record requests: a user can
send their personal ID to the web service, and this is stored in a database.
Is is possible to launch this request from a hyperlink? What other options
have I got in terms of launching this service from a machine that does not
have the .NET framework installed?

Thanks in advance for your help,

Steve.
Nov 22 '05 #1
2 1500
You can communicate with a .NET service using several protocols, the most
common being:

a) HTTP GET
b) HTTP POST
c) SOAP

You can issue a web service request pretty easily using HTTP GET within a
web page using the following syntax:

<a
href="http://[Server]/[ServiceName].asmx/[MethodName]?arg=somedata">submit
data by clicking here</a>

example:
<a
href="http://localhost/WebApplication2/Service1.asmx/DoSomething?arg=somedata">test</a>

If you want to use HTTP GET or HTTP POST then you need to enable a web
service to allow communication over HTTP GET and HTTP POST because they are
disabled by default for the 1.1 version of the framework. You can enable the
HTTP GET protocol for web services by uncommenting the following "HtttpGet"
line from your server's machine.config file:

<webServices>
<protocols>
<add name="HttpSoap1.2"/>
<add name="HttpSoap"/>
<!-- <add name="HttpPost"/> -->
<!-- <add name="HttpGet"/> -->
<add name="HttpPostLocalhost"/>
<add name="Documentation"/>
</protocols>
<webServices>

You can also call a web service using javascript and the Microsoft.XMLHTTP
component to invoke a web service.
http://dotnetjunkies.com/WebLog/dave.../16/16745.aspx

Theres also an IE only option using the Web Service Behavior:
http://msdn.microsoft.com/library/de...e/overview.asp

HTH,
Jorge
"Steve Barker" wrote:
Hi guys,

I have written a web service, but I want clients to be able to consume it
without having the .NET framework installed on their PC. The web service
doesn't return any values; it is just used to record requests: a user can
send their personal ID to the web service, and this is stored in a database.
Is is possible to launch this request from a hyperlink? What other options
have I got in terms of launching this service from a machine that does not
have the .NET framework installed?

Thanks in advance for your help,

Steve.

Nov 22 '05 #2
Jorge,

Thanks very much for your help! I particularly like the first method using
the HTTP Get, since it is browser independent. I actually tried this before,
but didn't realise that I needed to edit the machine config to get it to
work, and couldn't understand what was going wrong! So, your advice has been
very helpful!

Many thanks, and have a great weekend!

Steve.

"Jorge L Matos" wrote:
You can communicate with a .NET service using several protocols, the most
common being:

a) HTTP GET
b) HTTP POST
c) SOAP

You can issue a web service request pretty easily using HTTP GET within a
web page using the following syntax:

<a
href="http://[Server]/[ServiceName].asmx/[MethodName]?arg=somedata">submit
data by clicking here</a>

example:
<a
href="http://localhost/WebApplication2/Service1.asmx/DoSomething?arg=somedata">test</a>

If you want to use HTTP GET or HTTP POST then you need to enable a web
service to allow communication over HTTP GET and HTTP POST because they are
disabled by default for the 1.1 version of the framework. You can enable the
HTTP GET protocol for web services by uncommenting the following "HtttpGet"
line from your server's machine.config file:

<webServices>
<protocols>
<add name="HttpSoap1.2"/>
<add name="HttpSoap"/>
<!-- <add name="HttpPost"/> -->
<!-- <add name="HttpGet"/> -->
<add name="HttpPostLocalhost"/>
<add name="Documentation"/>
</protocols>
<webServices>

You can also call a web service using javascript and the Microsoft.XMLHTTP
component to invoke a web service.
http://dotnetjunkies.com/WebLog/dave.../16/16745.aspx

Theres also an IE only option using the Web Service Behavior:
http://msdn.microsoft.com/library/de...e/overview.asp

HTH,
Jorge
"Steve Barker" wrote:
Hi guys,

I have written a web service, but I want clients to be able to consume it
without having the .NET framework installed on their PC. The web service
doesn't return any values; it is just used to record requests: a user can
send their personal ID to the web service, and this is stored in a database.
Is is possible to launch this request from a hyperlink? What other options
have I got in terms of launching this service from a machine that does not
have the .NET framework installed?

Thanks in advance for your help,

Steve.

Nov 22 '05 #3

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

Similar topics

2
by: Steve Barker | last post by:
Hi guys, I have written a web service, but I want clients to be able to consume it without having the .NET framework installed on their PC. The web service doesn't return any values; it is just...
1
by: AspDotNetDeveloper | last post by:
Hello, I have Windows 2003 Server with .Net Framework 1.1 installed (part of the OS), and have used Windows Update to install the Service Pack 2 (the only way you can install it). The install...
11
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
2
by: J | last post by:
hi, I'm having a problem installing a service created in vb.net 2003 on a windows 2000 server. I have installed the service on a few XP machines with out any problems...but the 2 servers (win...
16
by: Bruce A. Julseth | last post by:
I have VS 2002 and have NOT installed XP SP 2 on my XP Professional system. I seem to recall that SP 2 would mess up VS. Is this true? Thank you...
4
by: lozd | last post by:
Hi, I'm building a web service for a client and would like to know if it's possible to achieve it the way they'd like it. Basically I need to call a dotnet web service from a client...
0
by: Greg Finzer | last post by:
I am using Visual Studio 2005 and ClickOnce to deploy a WinForm application. ClickOnce, publishes the application fine. In a Virtual PC, it downloads the ..NET framework correctly, but whenever...
10
by: apondu | last post by:
Hi, I am trying to write a windows service using the option that is present ..Net. I am using the window service project. I have written a simple window service and even created a installer for...
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...
0
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
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
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,...

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.