Connecting to an API offered by a Company

拟墨画扇 提交于 2019-12-23 03:09:08

问题


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.

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

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!


回答1:


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

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).

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



来源:https://stackoverflow.com/questions/4858736/connecting-to-an-api-offered-by-a-company

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!