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

查看:205
本文介绍了连接到一个公司提供了一个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!

推荐答案

最简单的办法就是在你的项目中添加一个服务引用。右键单击Solution Explorer中的项目,然后选择添加服务引用...。复制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天全站免登陆