连接到公司提供的 API [英] Connecting to an API offered by a Company

查看:27
本文介绍了连接到公司提供的 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个内部系统,我需要将其链接到公司提供的 API.我不是在寻找这方面的支持,我真的需要了解从哪里开始以及如何开始.

I currently have an internal system that I need to link up to an API offered by a company. I am not looking for hand-holding on this, I really need to understand where and how to get started really.

以下是我希望使用的 API 的开发人员资源:http://wiki.cdyne.com/index.php/Postal_Address_Verification

Here is the developer resource for the API I am looking to work with: http://wiki.cdyne.com/index.php/Postal_Address_Verification

此外,我的系统目前在 ASP/ASP.NET &SQL,而且我熟悉 VB,所以我宁愿保持这个方向而不是 C#.

Further, my systems are currently in ASP/ASP.NET & SQL, and I'm familiar with VB so I would rather stay that direction instead of C#.

我能得到一些关于如何解决这个问题的指导吗?非常感谢您的帮助!

Can I get some direction on how to tackle this? Thanks a lot for the help!

推荐答案

最简单的方法是在您的项目中添加一个服务引用.在解决方案资源管理器中右键单击该项目,然后选择添加服务引用...".将 WSDL URL(来自您链接的文档页面)复制到地址框中并单击 Go.更多:http://msdn.microsoft.com/en-us/library/bb628652%28v=VS.90%29.aspx

The easy way is to add a Service Reference in your project. Right-click the project in Solution Explorer and choose "Add Service Reference...". Copy the WSDL URL (from the documentation page you linked) into the address box and click Go. More: http://msdn.microsoft.com/en-us/library/bb628652%28v=VS.90%29.aspx

使用WCFpav"作为命名空间来匹配示例.您应该能够使用 C# 示例,只需更改 VB.Net 的语法(或使用转换器,但这是一个简单的练习).

Use "WCFpav" as the Namespace to match the examples. You should be able to use the C# example, just change the syntax for VB.Net (or use a converter, but it's a simple exercise).

注意:添加服务引用向导在 VS2008 和 VS2010 中可用.

Note: the Add Service Reference wizard is available in VS2008 and VS2010.

这篇关于连接到公司提供的 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆