473,666 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Web Services help required

I need to create a web service with c# and asp.net

Im a little confused exactly how i should code this, whether i should
use a class file or if that would be unneccesary.

Its a web service that will calculate shipping costs for various states.
the 2 input parameters are state and weight (weight of the parcel).
I then need to return the shipping cost for the particular state in $.
Different states have different shipping costs, eg NSW and ACT is $12/kg
and theres 2 other rates for other states.

How would I go about firstly coding the web service, then the C# code in
the asp.net application?
The application will have a drop down list or radio buttons of various
states, which the user will pick one of. They will then enter the weight
into a textbox, click submit, and the weight should be calculated
corresponding to the state they entered.

I think this should be quite simple, however my C# skills aren't the
best, so I really do need some help.

Thanks in advance.
Jul 21 '05 #1
0 974

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

Similar topics

4
2241
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python Programming on Win32": import win32serviceutil import win32service import win32event class test_py_service(win32serviceutil.ServiceFramework): _svc_name_ = "test_py_service"
9
2213
by: M B HONG 20 | last post by:
Hi all- I am new to web services, so please bear with me. I have to have a web service (Coded in Visual C#), and I need to have it work with Netscape 7.0 (Mozilla 1.0 I believe). I have it working perfectly with IE (with the help of webservice.htc), but cannot get it working in Netscape 7.0. I have read articles on how to access Web Services through Javascript with SOAP, but I get errors saying that "SOAPCall is undefined", etc. Does...
3
37974
by: Joe | last post by:
Dear Friends, How to run the C# Console application as services? I have a console application.I want run this application as background services.User don't want see the command propmt. If anyone knows please let me know. Thanks, Joe
1
345
by: Chris | last post by:
I was told by someone that all web services must be registered with UDDI before they will function. I created a web service on my local server and it works fine so I don't see any reason why UDDI would be a requirement if you know the exact location of the web service you are trying to access. Am I wrong? Chris
1
3447
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm going wrong. The program has been written to do the following tasks: - Select remote server - Select from two specific services
0
2037
by: Amrit Kohli | last post by:
I am trying to get through the XML Web Services Walkthrough at this location: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vbwlkwalkthroughbuildingwebservicewithmanagedcode.asp Everything seems to work fine. Here’s the code from Service1.asmx.cs : using System; using System.Collections; using System.ComponentModel; using System.Data;
2
11801
by: Val3 | last post by:
Hi all. I need to build dll(s) and windows services using VB .NET 2005 Express. When I make File/New project the windows contain only Windows application, Windows control library, Console application, DVD collection starter kit. How can I do? Any suggest? Thanks in advance. VAL
3
6498
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp) but I don't want clients to have to add two web references and then manually have to edit the proxy classes. After doing some searching I found that putting references to multiple web services in a .disco...
2
7596
by: ken | last post by:
We have a user that has reported the following error when starting up our client application that uses a web service on our back end: System.Configuration.ConfigurationException: Missing required Web Services section of the Web.config file. at System.Web.Services.Configuration.WebServicesConfiguration.get_Current() at System.Web.Services.Protocols.SoapClientType..ctor(Type type) at...
0
8444
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
8356
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
8869
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
8551
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
8639
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
7386
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
5664
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
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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

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.