473,804 Members | 3,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1524
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="HttpPostL ocalhost"/>
<add name="Documenta tion"/>
</protocols>
<webServices>

You can also call a web service using javascript and the Microsoft.XMLHT TP
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="HttpPostL ocalhost"/>
<add name="Documenta tion"/>
</protocols>
<webServices>

You can also call a web service using javascript and the Microsoft.XMLHT TP
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
368
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 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...
1
1938
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 seems to go fine, but Windows Update keeps telling me I need to install Service Pack 2. I have had this happen on other computers. Has anyone else experienced this? I'm wondering if it is installing it or not. I am investigating this, as I am...
11
5785
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: System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the account name specified I am in the same folder my program is in (MyService.exe). I assume it has to do with Logon Credentials.
2
1618
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 2000 server sp4) I have triend have the same error (both are on diffrent domains and have framework v1.1 installed; 1 is a domain controler, the other is not) An exception occurred during the Install phase. System.ComponentModel.Win32Exception:...
16
1697
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
10962
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 application written in VB6 and (if possible) avoid packaging a dotnet component with this VB6 application. The client wants the client app used on sales machines which don't have the
0
1247
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 the framework is finished installing it simply shows the manifest for the application (an xml file) instead of installing it. How do I get around this? Thanks in advance. -- Thanks, Greg Finzer
10
1327
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 tht by using the option present in widow service. When i try to execute the window service using installutil.exe i get this exception Exception occurred while initializing the installation: System.IO.FileNotFoundException: File or assembly name...
13
6662
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 Framework Service Pack 1 in order to use ASP.net 1.1 and the net Framework 1.1 ------------------------------------------------------------------------------------------------ I found the following file, "svcpack.log" at C:\WINNT. It contains many...
5
3313
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? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
9708
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
9587
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
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...
1
10324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
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
7623
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
6857
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();...
1
4302
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
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.