与其他系统集成 [英] Integration with another system

查看:127
本文介绍了与其他系统集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题.我有一个简单的应用程序(在VB.NET中),可与我的商店数据库(在MySQL中)连接.现在,我想将此应用程序与SenditAPI系统集成. Sendit是一家快递公司. 我的目的是将客户的联系方式(从我的日期数据库中)发送到系统(SenditAPI).

I have a problem. I have a simple application (in VB.NET) which connect with my shop database (in MySQL). And now I want to integrate this application with a SenditAPI system. Sendit is a courier company. My aim is to send the contact details of the customer (from my datebase) to the system (SenditAPI).

我只是在我的应用程序中向该系统添加了Web引用.而且我不知道下一步该怎么做.我以前从未做过,所以我不知道下一步该怎么做.我阅读了SenditAPI文档,但只有方法,没有别的.

I have just simply added a web references to this system in my application. And I don't know what to do next. I have never done it before so I don't know what should I do next. I read SenditAPI documentation but there are only methods and nothing else.

任何技巧我都会很高兴.

I will be very glad for any kind of tips.

推荐答案

这是WSDL服务,因此您可能已经下载了文件

This is WSDL service so you have probably donwloaded the file

https://api.sendit.pl/webservice.php?wsdl

并添加了服务参考. 他们也有一个沙箱,您应该首先向沙箱服务注册,然后仅将常规服务与无错误代码一起使用.选中 http://sandbox.sendit.pl/sandbox-info .

and added a service reference. They have also a sandbox, you should first register with Sandbox service and use the regular service only with bug-less code. Check http://sandbox.sendit.pl/sandbox-info.

也请检查以下答案: 如何使用WSDL

Check alsoo this answer: How to use a WSDL

特别标记以Use WSDL.EXE utility to generate a Web Service proxy from WSDL.开头的答案 从Windows开始菜单"Visual Studio命令提示符"运行,然后在其中键入

Mark especially the answer that starts with Use WSDL.EXE utility to generate a Web Service proxy from WSDL. Run from Windows start menu Visual Studio Command Prompt and there type

C:\Program Files\Microsoft Visual Studio 10.0\VC>wsdl /out:c:\MyProject\SendItplProxy.cs https://api-sandbox.sendit.pl/webservice.php?wsdl

C:\Program Files\Microsoft Visual Studio 10.0\VC>wsdl /out:c:\MyProject\SendItplProxy.cs https://api-sandbox.sendit.pl/webservice.php?wsdl

它将在文件夹c:\ MyProject中为SendIt沙箱Web服务创建SendItplProxy.cs.将其添加到您的项目中,然后您将拥有方法:

It creates SendItplProxy.cs for SendIt sandbox web service in the folder c:\MyProject. Add it to your project and then you will have your methods:

 SendItpl x = new SendItpl();
 x.SIUserLogin("a", "b", "c", "pl");

您还必须添加对System.Web.Services的引用.

You will also have to add reference to System.Web.Services.

是的-您找到的最佳解决方案:使用Framework 2.0 WebServices,因此我将其添加到此答案中.

And yes - the best solution you found yourself: use Framework 2.0 WebServices, so I add it to this answer.

添加服务参考,然后单击高级",然后遵循此图片:

Add a Service reference and then click on Advanced and then follow this picture:

这篇关于与其他系统集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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