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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
sanjeewajCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.