Web Service Visual Studio 2010

Posted on 2011-04-20
Last Modified: 2012-08-13

I'm new to web services and I need to create a web service that will receive XML files and attachments (jpgs and pdfs).  I will be using http and I need it to update a SQL Server 2005 backend after a check has been done on the data.  I have Visual Studio 2010.

I'm really struggling to know where to start.  I have been sent an example XML file and then individual pdf and jpgs and was wondering if anyone could give me some pointers...

Any help would be appreciated.

<?xml version="1.0"?>
<TestJob xmlns:xsi="" xmlns:xsd="">

Open in new window

Question by:Tra71
    LVL 8

    Expert Comment

    Create the web service by creating the asmx file and Web Service Project.  If you want to transfer the PDFs and/or jpeg, I'd suggest encoding the file in BASE64 and then sending it through the web service.  The recipient can then decode the BASE64 field into that file type.
    LVL 83

    Accepted Solution


    Author Comment

    Thanks for your help, I'm still looking into it.  

    Was after code examples if at all possible.  I'm new to both Visual Studio and Web Services...

    Thanks again
    LVL 83

    Expert Comment

    >Was after code examples if at all possible.  I'm new to both Visual Studio and Web Services...

    The trouble is that you are new and we can only provide generic code samples so it would be more confusing for you. Hence I posted links to tutorials so that you can learn and possibly use code from tutorials.

    Author Comment

    Thanks, will take a look at the links.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 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

    24 Experts available now in Live!

    Get 1:1 Help Now