【问题标题】:410 Error : Gone while consuming soap services of netsuite in .net core410 错误:在 .net 核心中使用 netsuite 的肥皂服务时消失了
【发布时间】: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


【解决方案1】:

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

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

【讨论】:

  • 我找不到这些服务的端点...我认为这些服务具有我们可以从中获取数据的实体...你能告诉我你是如何找到这些端点的吗?
  • 此端点由您的网络套件服务提供商提供
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-10-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-28
相关资源
最近更新 更多