【发布时间】:2020-08-25 10:19:23
【问题描述】:
我正在尝试在 .net core 2.2 中使用 netsuite 的肥皂网络服务。尝试调用 reference.cs 中提供的方法时,该方法抛出错误: : '远程服务器返回了意外响应:(410) Gone.'
这是我尝试过的:
public async Task<AdarzaService2.getListResponse> Get()
{
AdarzaService2.Passport passport = new Passport();
AdarzaService2.TokenPassport tokenPassport = new TokenPassport();
AdarzaService2.ApplicationInfo applicationInfo = new ApplicationInfo();
AdarzaService2.PartnerInfo partnerInfo = new PartnerInfo();
AdarzaService2.Preferences preferences = new Preferences();
AdarzaService2.BaseRef[] baseRef = new BaseRef[1];
NetSuitePortTypeClient netSuitePortTypeClient = new NetSuitePortTypeClient();
passport.account = this.configuration["AccountId"];
passport.email = this.configuration["Email"];
passport.role = new RecordRef
{
name = this.configuration["Role"]
};
tokenPassport.account = this.configuration["AccountId"];
tokenPassport.consumerKey = this.configuration["ConsumerKey"];
tokenPassport.token = this.configuration["TokenId"];
applicationInfo.applicationId = this.configuration["ApplicationId"];
partnerInfo.partnerId = "";
//baseref[0].name = "";
var data = await netSuitePortTypeClient.getListAsync(passport, tokenPassport, applicationInfo, partnerInfo, preferences, baseRef);
return data;
}
谁能告诉我是什么导致了这个问题?
【问题讨论】:
-
你解决了这个问题吗?
-
不....正在尝试
标签: .net-core soap wsdl netsuite