I'm trying to receive a SOAP request on an ASP.NET webservice but I'm stucking here right now.
The first thing I tried was to just receive a simple string in my webservice but my webservice denied that request, because it was a "dangerous request". The second thing I tried was to use XmlDocument and XElement as input date type but when I try that I get an IndexOutOfRangeException in SoapUI and can't call that method simply in the browser.
Is there any trick to accept SOAP requests in the WebMethod?
To make it easier to understand, I'm looking for a solution like that:
[WebMethod]
public XmlDocument Method(string soapRequest)
{
XmlDocument xmlAnswer = doSomethingWithRequest(soapRequest);
return xmlAnswer;
}