ASP.NET partner XML response

I am working on a web site that should give a Url where a partner site can submit a Itemlevel status Response.
It includes validating entire message , validating sender etc . etc..
This url can be a page which can process cXML response or a webservice which simply receives XmlDocument and do the needful.
NOTE:- partner is not expecting any response from it , its just one way sending.

Please advise how to implement the above with ASP.NET


Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

sanjeewajConnect With a Mentor Commented:
You could host it either way.  

If you have an ASP .NET 2.0 web site, you can add a method to a code behind of an ASP .NET web page and place WebMethod attribute on top of the method to make it a webservice.

Otherwise you could create a separete web service project and add an asmx file the usual way.

I will get back on security.
You can create an ASP .NET web service project and create a web method to take input parameters of primitive types such as int, string etc.  Then call this web method via HTTP GET.

If you need to send an xml document you could send it via a string param.  

There could be a better way.  Hope this helps.

Example Web Method:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
    public Service () {
        //Uncomment the following line if using designed components 
    public void NoReturnWebMethod(int value1, int value2, string identification)
        int val1 = value1;
        int val2 = value2;
        string username = identification;
        //Do some work.
How to call the web method:

Open in new window

ksfokAuthor Commented:
Should this WS be hosted as a separate web site? Or could it be added to an existent one? Please advise how either way.

Also what should be done about authentication and security?
ksfokAuthor Commented:
Please continue with authentication and security?
This article provides info on WS-Security.
All Courses

From novice to tech pro — start learning today.