Create a Simple Web Service

Posted on 2007-08-02
Medium Priority
Last Modified: 2010-04-20
Need help and sample code to create a simple web service.  Functional requirement is: ClientApp1(my customer's java app) will send data (5 basic values) to ClientApp2 (my .NET app).  The web service must receive the data, check for duplicates, then connect to SQL Server and create a new record in the customer table.  How do I setup a web service to achieve this?
Question by:dev775
LVL 15

Accepted Solution

Ralf Klatt earned 2000 total points
ID: 19621126

Please have a look at this: http://www.c-sharpcorner.com/UploadFile/ctomescu/WSBNJNCT11232005010552AM/WSBNJNCT.aspx

If it's not what you're looking for you might let me know more detailed what exactly you're looking for.

Best regards,

Author Comment

ID: 19621299
Thank you for your response.  The article is helpful, but I would appreciate a bit more help as I am still a pretty raw novice at this.  Also, I understand the SOAP toolkit is not available any more.  I am using VS2005.  Here is some additional information and related questions;
1. In my first application, as described above, I will be running my .NET app on the same physical network as the customer's java application (ClientApp1).  The UI in ClientApp1 will have a button - when clicked it will send a packet of data which I then need to receive through this web service and process - essentially checking for duplicates and then creating a new record in the SQL DB.  This will be a one-way transfer of data - my app will not send anything back.  I want to use a web service as this same functionality will be required for other installations where servers are located remotely. Plus I want to learn how to build and implement a web service.
2. Given the explanation above, I need help understanding what the top level architecture looks like: what are the required components and what application represents the client in this case.
3. What is the starting point to build the web service?  Can it be created in VS?  How does it talk to my .Net application?
4. Can a web service perform functions such as reading and writing to a table directly?
These questions hopefully outline my basic need for help.  I think if I can some help to walk through the process once, I will get through the current roadblock that I have.  Thanks again.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Starting up a Project
Loops Section Overview

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question