繁体   English   中英

在 VS 中使用 API 端点创建引用

[英]Create reference with API endpoint in VS

我正在尝试使用 VS2017 中的 WCF Web 服务参考添加对 API 端点的引用。 不知何故,我尝试添加的任何 API URI 都会给我错误,或者它只是尝试无休止地连接而没有成功。 我做错了什么? 我需要与端点建立连接,以便我可以用它编写数据交换。 我确实有来自 swagger 文档的 API 服务器地址。

编辑。 I did found out that the WCF REference is working only with SOAP endpoints while I need to connect to a JSON one... So the question would be like to how connect with a JSON endpoint.

您可以参考这个页面。如果有效,您可以单击“✔”将回复标记为已接受的答案。 它还将帮助其他人解决类似的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM