C#: Rename ASMX WebMethod Parameters Without Breaking Your Clients

Let’s say your ASMX service has clients that invoke it with XML such as this: <?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> <GetStatus xmlns=”http://example.com/”> <Arg1>5</Arg1> <Arg2>3</Arg2> </GetStatus> </soap:Body> </soap:Envelope> Typically, your WebMethod signature would look like this: public string…