473,795 Members | 2,892 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 1523
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
1936
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
5781
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
1615
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
10961
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
6657
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
3310
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
9522
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
10216
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...
1
10165
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
10002
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9044
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...
0
5437
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
2921
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.