Call Webservice without adding a WebReference - with Complex Types
- by ck
I'm using the code at This Site to call a webservice dynamically.
[SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted = true)]
public static object CallWebService(string webServiceAsmxUrl, string serviceName, string methodName, object[] args)
{
System.Net.WebClient client = new System.Net.WebClient();
…