发出Web服务请求并读取响应 [英] Make a web service request and read response
本文介绍了发出Web服务请求并读取响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个下面的cURL命令示例,我想使用.NET发出类似的Web服务请求.有人可以帮助我将下面的curl转换为.NET请求.
I have an below example of cURL command, i want to make a similar webservice request using .NET Can someone please help me convert below curl to .NET request.
谢谢.
curl -H 'X-API-TOKEN: yourapitoken' -H "Expects:" \
-F 'surveyId=SV_012345678912345' \
-F 'file=@example.csv;type=text/csv' \
'https://yourdatacenterid.qualtrics.com/API/v3/responseimports'
推荐答案
在.NET中,您将使用以下对象之一.
In .NET, you would use one of the following objects.
HttpClient
(可从.NET 4.5开始)
HttpClient
(available from .NET 4.5 on)
您可以发布到Web服务论坛以获取更多帮助.
You can post to the Web service forum for further help.
https://forums.asp.net/28.aspx /1?WCF + ASMX +和+ other + Web +服务
这篇关于发出Web服务请求并读取响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文