I' m trying to do something but I'm not sure if it is allowed in c# here is what I'm tring:
I have a Web Method which is not a static here it is:
[WebMethod]
public Byte[] recStuff(Byte[] recstuffile)
{
myfile = Unzip(muStuff);
return null;
}
and here is my client:
public static XmlDataService.StufServiceSoapClient lhaservice = null;
public static void Autoupload()
{
string fileContents = File.ReadAllText(XMLStuffName);
string text = fileContents;
byte r2 = Zip(text);
lhaservice.recStuff(r2);
}
I am getting Error that:
Object reference not set to an instance of an object.
what can I do here?
lhaservice?