How to I control parameter type tag in ASP.NET web service? I get < xml>string< /xml> in one web application and < data>string< /data> in other... Is there a way to control this?
[WebMethod]
public bool TestFunction(string xml)
{
//DO SOMETHING
return true;
}
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TestFunction xmlns="http://tempuri.org/">
<xml>string</xml> //<data>string</data>
</TestFunction>
</soap:Body>
</soap:Envelope>
编辑:我放弃改称职能