.net core 410错误:在.net core中使用netsuite的soap服务时消失
我正在尝试使用.NETCore2.2中netsuite的soap web服务。尝试调用reference.cs中提供的方法时,该方法引发错误::“远程服务器返回意外响应:(410)已消失。” 以下是我尝试过的:.net core 410错误:在.net core中使用netsuite的soap服务时消失,.net-core,soap,wsdl,netsuite,.net Core,Soap,Wsdl,Netsuite,我正在尝试使用.NETCore2.2中netsuite的soap web服务。尝试调用reference.cs中提供的方法时,该方法引发错误::“远程服务器返回意外响应:(410)已消失。” 以下是我尝试过的: public async Task<AdarzaService2.getListResponse> Get() { AdarzaService2.Passport passport = new Passport();
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;
}
公共异步任务Get()
{
AdarzaService2.Passport Passport=新Passport();
AdarzaService2.TokenPassport TokenPassport=新TokenPassport();
AdarzaService2.ApplicationInfo ApplicationInfo=新的ApplicationInfo();
AdarzaService2.PartnerInfo PartnerInfo=新的PartnerInfo();
AdarzaService2.Preferences Preferences=新的首选项();
AdarzaService2.BaseRef[]BaseRef=新的BaseRef[1];
NetSuitePortTypeClient NetSuitePortTypeClient=新的NetSuitePortTypeClient();
passport.account=this.configuration[“AccountId”];
passport.email=this.configuration[“email”];
passport.role=newrecordref
{
名称=此。配置[“角色”]
};
tokenPassport.account=this.configuration[“AccountId”];
tokenPassport.consumerKey=this.configuration[“consumerKey”];
tokenPassport.token=this.configuration[“TokenId”];
applicationInfo.applicationId=this.configuration[“applicationId”];
partnerInfo.partnerId=“”;
//baseref[0]。名称=”;
var data=wait netSuitePortTypeClient.getListAsync(passport、tokenPassport、applicationInfo、partnerInfo、preferences、baseRef);
返回数据;
}
有人能告诉我是什么导致了这个问题吗?我找到了这个问题的答案。服务需要未指定的终结点目标。您可以在构造函数方法上设置端点 NetSuitePortTypeClient NetSuitePortTypeClient=new NetSuitePortTypeClient(NetSuitePortTypeClient.EndpointConfiguration.NetSuitePort, "http://..........");
你解决了这个问题了吗?没有…我没有找到这些服务的端点…我以为这些服务有实体,我们可以从中获取数据…你能告诉我你是如何找到这些端点的吗?这些端点是由你的netsuite服务提供商提供的