望高手看看我自己写的一直不成功,问题出在哪里?
MyWebServiceClient client = new MyWebServiceClient();
var channel = client.ChannelFactory.CreateChannel();
upLoadFile uFile = new upLoadFile(); //webservice的方法
uFile.Body = new upLoadFileBody
{
fileId = "fileId",
flag = "0",
fileName = "name",
fileSuffix = "suffix",
arg4 = "byteStr"
};
var resultFile = await channel.upLoadFileAsync(uFile); //执行这步就出错了