Just formatting your code for others, next time you post use the code tags...
string SessionID = "";
API.PortTypeClient obj = new API.PortTypeClient();
string Session = obj.startSession();
SessionID = obj.login("Username", "Password");
object[] objRecord = obj.resources(SessionID);
var ars = obj.call(SessionID, "product.list", new object[] { });