1. No overload for method 'createXMLPub' takes 0 arguments
Ans: This is your method
public static void createXMLPub(string data )
you are using the above method like this
postData = createXMLPub();
where is your parameter passing in above method
so it should be like this
postData = createXMLPub("yourdata");
2. An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Server.get'
Ans: In this method you are not passing data
public static void createXMLPub(string data )
and calling this method at
public static string WRequest(string URL, string method, string postData)
like
postData = createXMLPub();
here postData is a string type and the method createXMLPub is returning string value but method signature is like void so your createXMLPub() method should be like this
public static string createXMLPub(string data )