简体   繁体   English

将 SuiteTalk 应用程序连接到 NetSuite 上的 RESTlet

[英]Connecting a SuiteTalk application to a RESTlet on NetSuite

I have a SuiteTalk application developed in C# that handles order imports.我有一个用 C# 开发的 SuiteTalk 应用程序来处理订单导入。 I need to be able to connect the application to NetSuite so I can manually launch the imports in the event of a failure from within the user interface.我需要能够将应用程序连接到 NetSuite,以便在出现故障时从用户界面中手动启动导入。 I am not familiar with writing a listener application in C# so I am looking for some pointers in how I could get this to work.我不熟悉在 C# 中编写侦听器应用程序,因此我正在寻找有关如何使其工作的一些指示。

-Edit- To add a limitation: I am unable to use a web server to accomplish any of this. - 编辑 - 添加一个限制:我无法使用网络服务器来完成任何这些。

How I think it would work: I am envisioning that the button push in NetSuite would make a request to the SuiteTalk application which would in turn start the task in question.认为它将如何工作:我设想 NetSuite 中的按钮按下会向 SuiteTalk 应用程序发出请求,该应用程序将依次启动相关任务。

My questions:我的问题:

  • Does this logic sound right?这个逻辑听起来对吗?
  • Where should I start with this?我应该从哪里开始呢?
  • What resources would you recommend to bring someone up to speed quickly?您会推荐哪些资源来让某人快速上手?

Presumably your c# application runs on your own system and uses the SOAP interface to talk to Netsuite.大概您的 c# 应用程序在您自己的系统上运行,并使用 SOAP 接口与 Netsuite 对话。

There is no reasonable way to have Netsuite directly trigger your external application without your application being on the public internet listening for a request from Netsuite.没有合理的方法让 Netsuite 直接触发您的外部应用程序,而您的应用程序不在公共 Internet 上侦听来自 Netsuite 的请求。 I believe you can write suitescript to access remote web services but that effectively requires a web server.我相信您可以编写suitescript 来访问远程Web 服务,但这实际上需要一个Web 服务器。

The other possibility is to create some sort of data in Netsuite that your application can poll to see if it should execute.另一种可能性是在 Netsuite 中创建某种数据,您的应用程序可以轮询以查看它是否应该执行。 I'm not sure the best way to do this.我不确定这样做的最佳方法。 Off the top of my head I think you could create a custom record type and have the button create a custom record.在我的脑海中,我认为您可以创建自定义记录类型并让按钮创建自定义记录。 Your C# app could then check to see if a record of that type exists and if so execute and delete the record.然后,您的 C# 应用程序可以检查该类型的记录是否存在,如果存在,则执行并删除该记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM