首页 新闻 会员 周边

求助:asp.net core中怎么调用wcf web service

0
悬赏园豆:20 [待解决问题]

望高手看看我自己写的一直不成功,问题出在哪里?

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); //执行这步就出错了

逗多多的主页 逗多多 | 初学一级 | 园豆:89
提问于:2018-11-16 18:03
< >
分享
所有回答(2)
0

参考园子里的博文:.NET Core 调用WCF 服务

dudu | 园豆:30979 (高人七级) | 2018-11-16 18:19
0

见本人此页回答:https://q.cnblogs.com/q/104450/
uri是否正常;http状态码是否正常。

花飘水流兮 | 园豆:13560 (专家六级) | 2018-11-19 16:37
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册