gpt4 book ai didi

.net-core - 410 错误 : Gone while consuming soap services of netsuite in . 网络核心

转载 作者:行者123 更新时间:2023-12-04 17:25:40 30 4
gpt4 key购买 nike

我正在尝试在 .net core 2.2 中使用 netsuite 的 soap web 服务。在尝试调用 reference.cs 中提供的方法时,该方法抛出错误::“远程服务器返回了意外响应:(410) 消失。”

这是我尝试过的:

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;
}

谁能告诉我是什么导致了这个问题?

最佳答案

我找到了这个问题的答案。该服务需要一个未指定的端点目标。您可以在构造函数方法上设置端点。

NetSuitePortTypeClient netSuitePortTypeClient = newNetSuitePortTypeClient(NetSuitePortTypeClient.EndpointConfiguration.NetSuitePort,"http://..........");

关于.net-core - 410 错误 : Gone while consuming soap services of netsuite in . 网络核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63576755/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com