在 .Net Core 中使用 NetSuite SOAP Web 服务 [英] Consuming NetSuite SOAP Webservice in .Net Core

查看:40
本文介绍了在 .Net Core 中使用 NetSuite SOAP Web 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 VS2017 与 .Net Core 上的 NetSuite API 集成时遇到了一些问题,并且无法添加 Web 服务.当我使用添加连接的服务使用他们的 Web 服务时,一些对象和类丢失了.在 .Net 4.5 中,类和对象可用.我的经理要我用 .Net Core 编写 API.

I am having a bit of an issue with integrating with NetSuite API on .Net Core using VS2017 and it has no option to add Web Service. When I consumed their web service using add connected services some objects and classes are missing. In .Net 4.5, the classes and object are available. My manager wants me to write the API in .Net Core.

我采用了示例代码 来自 NetSuite,第一个是 NetSuiteService 类,它具有用于登录的重要 Passport 属性.

I took the sample code from NetSuite and the very first thing is class NetSuiteService which has important Passport property for login.

有没有人解决这个问题?

Anyone had a solution to this?

推荐答案

将 SuiteTalk 与 Dot NetCore 集成相当容易,您需要做的就是通过将 WSDL 添加为 ConnectedService 引用将其导入到 .NetCore 项目中,它会设置你和 WCF 在一起.NetSuite 人员提供的 DEMO 代码与您机器上生成的代码不匹配.我建议您使用 TBA 而不是其他身份验证.(只需复制粘贴 NetSuite 人员提供的用于身份验证的代码,因为这是惯例,您可以根据需要更改加密算法,只需生成密钥,将它们放入您的配置中即可)

It's fairly easy to integrate SuiteTalk with Dot NetCore, all you need to do is import the WSDL into .NetCore project via adding it as ConnectedService reference and it will set you up with WCF. The DEMO code that NetSuite people have provided will not match the code generated on your machine. I would recommend you using TBA instead of other authentications. (just copy paste the code provided by NetSuite's folks for authentication as that is the convention, you can change the crypt algorithm if you want to, just generate the Keys, put them in your configs and you're good to go)

NetSuitePortTypeClient"类将包含与 NetSuite Web 服务进行所有类型通信的端点.阅读 NetSuite 提供的文档手册的前 50-100 页,以了解在整个旅程中使用的约定.希望这会给你一个良好的开端.

Class "NetSuitePortTypeClient" will contain your endpoints for all types of communication to NetSuite web services. Read the first 50-100 pages of the documentation manual that NetSuite provides for learning the conventions to be used throughout your journey. Hope this will give you a headstart.

这篇关于在 .Net Core 中使用 NetSuite SOAP Web 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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