Create a Simple Web Service

Posted on 2007-08-02
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


    Please have a look at this:

    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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now