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

Thanks

ksfokAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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.
0
 
sanjeewajCommented:
Hi
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.

Sanjeewa
Example Web Method:
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
 
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {
 
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }
 
    [WebMethod]
    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:
http://localhost/WebService/Service.asmx/NoReturnWebMethod?value1=1&value2=2&identification=sanjeewa

Open in new window

0
 
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?
0
 
ksfokAuthor Commented:
Please continue with authentication and security?
0
 
sanjeewajCommented:
This article provides info on WS-Security.

http://www.devx.com/security/Article/15634
0
All Courses

From novice to tech pro — start learning today.