我正在尝试使用SuiteTalk来检索客户记录。
我从这里下载了v2016.1WSDL:http://www.netsuite.com/portal/developers/resources/suitetalk-documentation.shtml
我使用mv包构建WSDL并生成jar文件。
我在Eclipse中创建了一个项目并添加了jar文件。我使用的是Java。
这是我的代码片段。我被困在这里,不知道如何继续。看起来我丢失了另一个jar文件?就像NetSuiteService一样?
RecordRef role = new RecordRef();
role.setInternalId("3");
role.setType(RecordType.contact);
Passport passport = new Passport();
passport.setEmail("me@test.com");
passport.setPassword("mypassword");
passport.setRole(role);
passport.setAccount("123456");
请帮帮我。我该怎么办?
发布于 2016-07-17 05:18:38
我不熟悉Java绑定,但是看起来您缺少数据中心URL配置。
我推荐使用the ruby bindings。它们是由社区支持的,并且有一些很好的示例代码来演示各种常见功能。
发布于 2016-12-01 05:34:27
我在.net工作,我认为你需要初始化服务来指示与你对应的数据中心,它或多或少是这样的:
// Instantiate the NetSuite web services
Service = new Aggregates.DataCenterAwareNetSuiteService(_account);
Service.Timeout = 1000 * 60 * 60;
var appInfo = new ApplicationInfo();
//App info from application netsuite
appInfo.applicationId = cuenta.ApplicationInfo;
// Prepare login credentials for request level login
Service.passport = new Passport()
{
email = _email,
password = _password,
account = _account
};
Service.applicationInfo = appInfo;https://stackoverflow.com/questions/38388574
复制相似问题