This commit is contained in:
2023-11-14 11:58:54 -05:00
parent 469fb0ff5f
commit b8406a7f71
72 changed files with 142 additions and 141 deletions

View File

@@ -4,6 +4,7 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<UserSecretsId>f9e2fd37-0f2d-4e3a-955a-8e49a16fce1c</UserSecretsId> <UserSecretsId>f9e2fd37-0f2d-4e3a-955a-8e49a16fce1c</UserSecretsId>
<Configurations>Debug;Release;Also Debug</Configurations> <Configurations>Debug;Release;Also Debug</Configurations>
<SatelliteResourceLanguages>en-us;en</SatelliteResourceLanguages>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -17,7 +17,7 @@ namespace PartSource.Automation.Jobs
private readonly ILogger<ExecuteSsisPackages> _logger; private readonly ILogger<ExecuteSsisPackages> _logger;
// TODO: set from config // TODO: set from config
private readonly string[] _ssisPackages = {"Parts Price", "Parts Availability" }; private readonly string[] _ssisPackages = {"Parts Price" };
public ExecuteSsisPackages(EmailService emailService, IConfiguration configuration, SsisService ssisService, ILogger<ExecuteSsisPackages> logger) public ExecuteSsisPackages(EmailService emailService, IConfiguration configuration, SsisService ssisService, ILogger<ExecuteSsisPackages> logger)
{ {

View File

@@ -100,7 +100,7 @@ namespace PartSource.Automation
// //.StartsAt(DateTime.Today.AddHours(25)) // //.StartsAt(DateTime.Today.AddHours(25))
// ) // )
.HasJob<UpdateFitment>(options => options.HasInterval(new TimeSpan(24, 0, 0)) .HasJob<UpdatePricing>(options => options.HasInterval(new TimeSpan(24, 0, 0))
//.HasDependency<ExecuteSsisPackages>() //.HasDependency<ExecuteSsisPackages>()
// .StartsAt(DateTime.Today.AddHours(28)) // .StartsAt(DateTime.Today.AddHours(28))
); );

View File

@@ -28,7 +28,7 @@ namespace PartSource.Automation.Services
{ {
StartInfo = new ProcessStartInfo StartInfo = new ProcessStartInfo
{ {
FileName = "dtexec", FileName = "C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\dtexec",
Arguments = $"/file \"{_ssisConfiguration.Directory}\\{packageName}\"", Arguments = $"/file \"{_ssisConfiguration.Directory}\\{packageName}\"",
UseShellExecute = false, UseShellExecute = false,
CreateNoWindow = false, CreateNoWindow = false,

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class AddImg public class AddImg
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class AddImgs public class AddImgs
{ {
[XmlElement] [XmlElement]

View File

@@ -8,7 +8,7 @@ using Newtonsoft.Json;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class App public class App
{ {
[XmlElement] [XmlElement]

View File

@@ -7,7 +7,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class ApplicationSearch public class ApplicationSearch
{ {
public ApplicationSearch() public ApplicationSearch()

View File

@@ -8,7 +8,7 @@ using PartSource.Data.Nexpart.Interfaces;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class ApplicationSearchResponse : IResponseElement<Apps> public class ApplicationSearchResponse : IResponseElement<Apps>
{ {

View File

@@ -3,10 +3,10 @@ using Newtonsoft.Json;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class Apps public class Apps
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
[JsonProperty("wipers")] [JsonProperty("wipers")]
public App[] App { get; set; } public App[] App { get; set; }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class BaseVehicle public class BaseVehicle
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -8,22 +8,22 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class BaseVehicleDetail public class BaseVehicleDetail
{ {
[XmlAttribute] [XmlAttribute]
public int WHIMakeId { get; set; } public int WHIMakeId { get; set; }
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public int BaseVehicleId { get; set; } public int BaseVehicleId { get; set; }
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public string MakeName { get; set; } public string MakeName { get; set; }
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public string ModelName { get; set; } public string ModelName { get; set; }
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public int Year { get; set; } public int Year { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class BaseVehicleDetailLookup public class BaseVehicleDetailLookup
{ {
public BaseVehicleDetailLookup() public BaseVehicleDetailLookup()

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class BaseVehicleDetailLookupResponse : IResponseElement<BaseVehicleDetail> public class BaseVehicleDetailLookupResponse : IResponseElement<BaseVehicleDetail>
{ {
[XmlElement] [XmlElement]

View File

@@ -2,7 +2,7 @@
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class BaseVehicleSearch public class BaseVehicleSearch
{ {
public BaseVehicleSearch() public BaseVehicleSearch()

View File

@@ -3,7 +3,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class BaseVehicleSearchResponse : IResponseElement<BaseVehicles> public class BaseVehicleSearchResponse : IResponseElement<BaseVehicles>
{ {
[XmlElement] [XmlElement]

View File

@@ -5,10 +5,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class BaseVehicles public class BaseVehicles
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public BaseVehicle[] BaseVehicle { get; set; } public BaseVehicle[] BaseVehicle { get; set; }

View File

@@ -8,37 +8,37 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Body public class Body
{ {
[XmlElement(ElementName = "ApplicationSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(ApplicationSearch))] [XmlElement(ElementName = "ApplicationSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(ApplicationSearch))]
[XmlElement(ElementName = "ApplicationSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(ApplicationSearchResponse))] [XmlElement(ElementName = "ApplicationSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(ApplicationSearchResponse))]
[XmlElement(ElementName = "BaseVehicleDetailLookup", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BaseVehicleDetailLookup))] [XmlElement(ElementName = "BaseVehicleDetailLookup", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(BaseVehicleDetailLookup))]
[XmlElement(ElementName = "BaseVehicleDetailLookupResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BaseVehicleDetailLookupResponse))] [XmlElement(ElementName = "BaseVehicleDetailLookupResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(BaseVehicleDetailLookupResponse))]
[XmlElement(ElementName = "BaseVehicleSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BaseVehicleSearch))] [XmlElement(ElementName = "BaseVehicleSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(BaseVehicleSearch))]
[XmlElement(ElementName = "BaseVehicleSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BaseVehicleSearchResponse))] [XmlElement(ElementName = "BaseVehicleSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(BaseVehicleSearchResponse))]
[XmlElement(ElementName = "EngineSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(EngineSearch))] [XmlElement(ElementName = "EngineSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(EngineSearch))]
[XmlElement(ElementName = "EngineSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(EngineSearchResponse))] [XmlElement(ElementName = "EngineSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(EngineSearchResponse))]
[XmlElement(ElementName = "MakeSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(MakeSearch))] [XmlElement(ElementName = "MakeSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(MakeSearch))]
[XmlElement(ElementName = "MakeSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(MakeSearchResponse))] [XmlElement(ElementName = "MakeSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(MakeSearchResponse))]
[XmlElement(ElementName = "ModelSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(ModelSearch))] [XmlElement(ElementName = "ModelSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(ModelSearch))]
[XmlElement(ElementName = "ModelSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(ModelSearchResponse))] [XmlElement(ElementName = "ModelSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(ModelSearchResponse))]
[XmlElement(ElementName = "MenuNodesLookup", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(MenuNodesLookup))] [XmlElement(ElementName = "MenuNodesLookup", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(MenuNodesLookup))]
[XmlElement(ElementName = "MenuNodesLookupResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(MenuNodesLookupResponse))] [XmlElement(ElementName = "MenuNodesLookupResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(MenuNodesLookupResponse))]
[XmlElement(ElementName = "PartTypeSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(PartTypeSearch))] [XmlElement(ElementName = "PartTypeSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(PartTypeSearch))]
[XmlElement(ElementName = "PartTypeSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(PartTypeSearchResponse))] [XmlElement(ElementName = "PartTypeSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(PartTypeSearchResponse))]
[XmlElement(ElementName = "PartTypesValidateLookup", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(PartTypesValidateLookup))] [XmlElement(ElementName = "PartTypesValidateLookup", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(PartTypesValidateLookup))]
[XmlElement(ElementName = "PartTypesValidateLookupResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(PartTypesValidateLookupResponse))] [XmlElement(ElementName = "PartTypesValidateLookupResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(PartTypesValidateLookupResponse))]
[XmlElement(ElementName = "SmartPageDataSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(SmartPageDataSearch))] [XmlElement(ElementName = "SmartPageDataSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(SmartPageDataSearch))]
[XmlElement(ElementName = "SmartPageDataSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(SmartPageDataSearchResponse))] [XmlElement(ElementName = "SmartPageDataSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(SmartPageDataSearchResponse))]
[XmlElement(ElementName = "SubModelSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(SubModelSearch))] [XmlElement(ElementName = "SubModelSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(SubModelSearch))]
[XmlElement(ElementName = "SubModelSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(SubModelSearchResponse))] [XmlElement(ElementName = "SubModelSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(SubModelSearchResponse))]
[XmlElement(ElementName = "VehicleIdSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(VehicleIdSearch))] [XmlElement(ElementName = "VehicleIdSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(VehicleIdSearch))]
[XmlElement(ElementName = "VehicleIdSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(VehicleIdSearchResponse))] [XmlElement(ElementName = "VehicleIdSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(VehicleIdSearchResponse))]
[XmlElement(ElementName = "VehicleTypesGet", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(VehicleTypesGet))] [XmlElement(ElementName = "VehicleTypesGet", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(VehicleTypesGet))]
[XmlElement(ElementName = "VehicleTypesGetResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(VehicleTypesGetResponse))] [XmlElement(ElementName = "VehicleTypesGetResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(VehicleTypesGetResponse))]
[XmlElement(ElementName = "WHIEngineSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(WHIEngineSearch))] [XmlElement(ElementName = "WHIEngineSearch", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(WHIEngineSearch))]
[XmlElement(ElementName = "WHIEngineSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(WHIEngineSearchResponse))] [XmlElement(ElementName = "WHIEngineSearchResponse", Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(WHIEngineSearchResponse))]
public object Content { get; set; } public object Content { get; set; }
} }
} }

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Criterion public class Criterion
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class Engine public class Engine
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class EngineSearch public class EngineSearch
{ {
public EngineSearch() public EngineSearch()

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class EngineSearchResponse : IResponseElement<Engines> public class EngineSearchResponse : IResponseElement<Engines>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,10 +8,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Engines public class Engines
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public Engine[] Engine; public Engine[] Engine;
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/header/parts")]
public class Exceptions public class Exceptions
{ {
[XmlAttribute(AttributeName = "code")] [XmlAttribute(AttributeName = "code")]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class Item public class Item
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -8,10 +8,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Items public class Items
{ {
[XmlElement(ElementName = "Item", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)] [XmlElement(ElementName = "Item", Namespace = "http://whisolutions.com/pss/common/helper/parts", Order = 1)]
public PartSource.Data.Nexpart.Item[] Item { get; set; } public PartSource.Data.Nexpart.Item[] Item { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class Make public class Make
{ {
[XmlText] [XmlText]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class MakeSearch public class MakeSearch
{ {
public MakeSearch() public MakeSearch()
@@ -18,16 +18,16 @@ namespace PartSource.Data.Nexpart
this.RegionId = new int[]{ 2 }; this.RegionId = new int[]{ 2 };
} }
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)] [XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 1)]
public PSRequestHeader PSRequestHeader { get; set; } public PSRequestHeader PSRequestHeader { get; set; }
[XmlElement(ElementName = "Years", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 2)] [XmlElement(ElementName = "Years", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 2)]
public Years Years { get; set; } public Years Years { get; set; }
[XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 3)] [XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 3)]
public int[] RegionId { get; set; } public int[] RegionId { get; set; }
[XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 4)] [XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 4)]
public int[] VehicleTypeId { get; set; } public int[] VehicleTypeId { get; set; }
} }
} }

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class MakeSearchResponse : IResponseElement<Makes> public class MakeSearchResponse : IResponseElement<Makes>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,10 +8,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Makes public class Makes
{ {
[XmlElement(ElementName = "Make", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)] [XmlElement(ElementName = "Make", Namespace = "http://whisolutions.com/pss/common/helper/parts", Order = 1)]
public PartSource.Data.Nexpart.Make[] Make { get; set; } public PartSource.Data.Nexpart.Make[] Make { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class MenuNode public class MenuNode
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -8,10 +8,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class MenuNodes public class MenuNodes
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public MenuNode[] MenuNode{ get; set; } public MenuNode[] MenuNode{ get; set; }
} }
} }

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class MenuNodesLookup public class MenuNodesLookup
{ {
public MenuNodesLookup() public MenuNodesLookup()

View File

@@ -3,7 +3,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class MenuNodesLookupResponse : IResponseElement<MenuNodes> public class MenuNodesLookupResponse : IResponseElement<MenuNodes>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class Model public class Model
{ {
[XmlText] [XmlText]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class ModelSearch public class ModelSearch
{ {
public ModelSearch() public ModelSearch()
@@ -17,19 +17,19 @@ namespace PartSource.Data.Nexpart
this.RegionId = new int[] { 2 }; this.RegionId = new int[] { 2 };
} }
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)] [XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 1)]
public PSRequestHeader PSRequestHeader { get; set; } public PSRequestHeader PSRequestHeader { get; set; }
[XmlElement(ElementName = "Year", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 2)] [XmlElement(ElementName = "Year", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 2)]
public int Year { get; set; } public int Year { get; set; }
[XmlElement(ElementName = "MakeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 3)] [XmlElement(ElementName = "MakeId", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 3)]
public int MakeId { get; set; } public int MakeId { get; set; }
[XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 4)] [XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 4)]
public int[] RegionId { get; set; } public int[] RegionId { get; set; }
[XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 5)] [XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 5)]
public int[] VehicleTypeId { get; set; } public int[] VehicleTypeId { get; set; }
} }
} }

View File

@@ -9,13 +9,13 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class ModelSearchResponse : IResponseElement<Models[]> public class ModelSearchResponse : IResponseElement<Models[]>
{ {
[XmlElement] [XmlElement]
public PSResponseHeader PSResponseHeader { get; set; } public PSResponseHeader PSResponseHeader { get; set; }
[XmlElement(ElementName = "Models", Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlElement(ElementName = "Models", Namespace = "http://whisolutions.com/pss/common/model/parts")]
public Models[] ResponseBody { get; set; } public Models[] ResponseBody { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Models public class Models
{ {
public Models() public Models()
@@ -19,7 +19,7 @@ namespace PartSource.Data.Nexpart
[XmlAttribute] [XmlAttribute]
public int Region { get; set; } public int Region { get; set; }
[XmlElement(ElementName = "Model", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(ElementName = "Model", Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public PartSource.Data.Nexpart.Model[] Model { get; set; } public PartSource.Data.Nexpart.Model[] Model { get; set; }
} }
} }

View File

@@ -8,19 +8,19 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PSRequestHeader public class PSRequestHeader
{ {
public PSRequestHeader() public PSRequestHeader()
{ {
this.SvcVersion = "1.0"; this.SvcVersion = "2.0";
this.ReturnWarnings = "true"; this.ReturnWarnings = "true";
} }
[XmlElement(ElementName = "SvcVersion", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "SvcVersion", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string SvcVersion { get; set; } public string SvcVersion { get; set; }
[XmlElement(ElementName = "ReturnWarnings", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "ReturnWarnings", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string ReturnWarnings { get; set; } public string ReturnWarnings { get; set; }
} }
} }

View File

@@ -8,25 +8,25 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PSResponseHeader public class PSResponseHeader
{ {
[XmlElement(ElementName = "RequestId", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "RequestId", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string RequestId { get; set; } public string RequestId { get; set; }
[XmlElement(ElementName = "RequestProcessingTime", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "RequestProcessingTime", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string RequestProcessingTime { get; set; } public string RequestProcessingTime { get; set; }
[XmlElement(ElementName = "Build", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "Build", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string Build { get; set; } public string Build { get; set; }
[XmlElement(ElementName = "TimeStamp", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "TimeStamp", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string TimeStamp { get; set; } public string TimeStamp { get; set; }
[XmlElement(ElementName = "StatusCode", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "StatusCode", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public string StatusCode { get; set; } public string StatusCode { get; set; }
[XmlElement(ElementName = "Exceptions", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")] [XmlElement(ElementName = "Exceptions", Namespace = "http://whisolutions.com/pss/common/header/parts")]
public PartSource.Data.Nexpart.Exceptions[] Exceptions { get; set; } public PartSource.Data.Nexpart.Exceptions[] Exceptions { get; set; }
} }
} }

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class Part public class Part
{ {
[XmlElement] [XmlElement]
@@ -15,7 +15,7 @@ namespace PartSource.Data.Nexpart
public PartPartType PartType { get; set; } public PartPartType PartType { get; set; }
// There are two different kinds of PartType because of course there are... // There are two different kinds of PartType because of course there are...
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class PartPartType public class PartPartType
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class PartNumber public class PartNumber
{ {
[XmlText] [XmlText]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PartType public class PartType
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PartTypeSearch public class PartTypeSearch
{ {
public PartTypeSearch() public PartTypeSearch()

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PartTypeSearchResponse : IResponseElement<PartTypes> public class PartTypeSearchResponse : IResponseElement<PartTypes>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,10 +8,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PartTypes public class PartTypes
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public PartSource.Data.Nexpart.PartType[] PartType { get; set; } public PartSource.Data.Nexpart.PartType[] PartType { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PartTypesValidateLookup public class PartTypesValidateLookup
{ {
public PartTypesValidateLookup() public PartTypesValidateLookup()

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class PartTypesValidateLookupResponse : IResponseElement<PartTypes> public class PartTypesValidateLookupResponse : IResponseElement<PartTypes>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class PrimaryImg public class PrimaryImg
{ {
[XmlElement] [XmlElement]

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Region public class Region
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class RegionId public class RegionId
{ {
[XmlText] [XmlText]

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class ResultOption public class ResultOption
{ {
[XmlText] [XmlText]

View File

@@ -2,7 +2,7 @@
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class SmartPageDataSearch public class SmartPageDataSearch
{ {
public SmartPageDataSearch() public SmartPageDataSearch()
@@ -10,15 +10,15 @@ namespace PartSource.Data.Nexpart
PSRequestHeader = new PSRequestHeader(); PSRequestHeader = new PSRequestHeader();
} }
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)] [XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 1)]
public PSRequestHeader PSRequestHeader { get; set; } public PSRequestHeader PSRequestHeader { get; set; }
[XmlElement(ElementName = "Item", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 2)] [XmlElement(ElementName = "Item", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 2)]
public Item[] Items { get; set; } public Item[] Items { get; set; }
[XmlElement(ElementName = "DataOption", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 3)] [XmlElement(ElementName = "DataOption", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 3)]
public string[] DataOption { get; set; } public string[] DataOption { get; set; }
} }
} }

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class SmartPageDataSearchResponse : IResponseElement<Items> public class SmartPageDataSearchResponse : IResponseElement<Items>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class SubModel public class SubModel
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -6,7 +6,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class SubModelSearchResponse : IResponseElement<SubModels> public class SubModelSearchResponse : IResponseElement<SubModels>
{ {
[XmlElement] [XmlElement]

View File

@@ -5,10 +5,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class SubModels public class SubModels
{ {
[XmlElement(ElementName = "SubModel", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)] [XmlElement(ElementName = "SubModel", Namespace = "http://whisolutions.com/pss/common/helper/parts", Order = 1)]
public SubModel[] SubModel { get; set; } public SubModel[] SubModel { get; set; }
} }
} }

View File

@@ -2,7 +2,7 @@
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class SubModelSearch public class SubModelSearch
{ {
public SubModelSearch() public SubModelSearch()

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleDetail public class VehicleDetail
{ {
[XmlAttribute] [XmlAttribute]
@@ -32,7 +32,7 @@ namespace PartSource.Data.Nexpart
[XmlAttribute] [XmlAttribute]
public int VehicleToEngineConfigId { get; set; } public int VehicleToEngineConfigId { get; set; }
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public BaseVehicle BaseVehicle { get; set; } public BaseVehicle BaseVehicle { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleIdSearch public class VehicleIdSearch
{ {
public VehicleIdSearch() public VehicleIdSearch()

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleIdSearchResponse : IResponseElement<VehicleDetail> public class VehicleIdSearchResponse : IResponseElement<VehicleDetail>
{ {
[XmlElement] [XmlElement]

View File

@@ -8,13 +8,13 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleIdentifier public class VehicleIdentifier
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public int BaseVehicleId { get; set; } public int BaseVehicleId { get; set; }
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public int EngineConfigId { get; set; } public int EngineConfigId { get; set; }
public bool ShouldSerializeBaseVehicleId() public bool ShouldSerializeBaseVehicleId()

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class VehicleType public class VehicleType
{ {
[XmlText] [XmlText]

View File

@@ -8,10 +8,10 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleTypes public class VehicleTypes
{ {
[XmlElement(ElementName = "VehicleType", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)] [XmlElement(ElementName = "VehicleType", Namespace = "http://whisolutions.com/pss/common/helper/parts", Order = 1)]
public PartSource.Data.Nexpart.VehicleType[] VehicleType { get; set; } public PartSource.Data.Nexpart.VehicleType[] VehicleType { get; set; }
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleTypesGet public class VehicleTypesGet
{ {
public VehicleTypesGet() public VehicleTypesGet()
@@ -16,7 +16,7 @@ namespace PartSource.Data.Nexpart
this.PSRequestHeader = new PSRequestHeader(); this.PSRequestHeader = new PSRequestHeader();
} }
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)] [XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/pss/common/model/parts", Order = 1)]
public PSRequestHeader PSRequestHeader { get; set; } public PSRequestHeader PSRequestHeader { get; set; }
} }
} }

View File

@@ -9,7 +9,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class VehicleTypesGetResponse : IResponseElement<VehicleTypes> public class VehicleTypesGetResponse : IResponseElement<VehicleTypes>
{ {
[XmlElement] [XmlElement]

View File

@@ -2,7 +2,7 @@
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public class WHIEngine public class WHIEngine
{ {
[XmlAttribute] [XmlAttribute]

View File

@@ -5,7 +5,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class WHIEngineSearch public class WHIEngineSearch
{ {
public WHIEngineSearch() public WHIEngineSearch()

View File

@@ -6,7 +6,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class WHIEngineSearchResponse : IResponseElement<WHIEngines> public class WHIEngineSearchResponse : IResponseElement<WHIEngines>
{ {
[XmlElement] [XmlElement]

View File

@@ -2,10 +2,10 @@
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class WHIEngines public class WHIEngines
{ {
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")] [XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
public WHIEngine[] WHIEngine; public WHIEngine[] WHIEngine;
} }
} }

View File

@@ -8,7 +8,7 @@ using System.Xml.Serialization;
namespace PartSource.Data.Nexpart namespace PartSource.Data.Nexpart
{ {
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")] [XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
public class Years public class Years
{ {
[XmlAttribute(AttributeName = "to")] [XmlAttribute(AttributeName = "to")]

View File

@@ -32,7 +32,7 @@ namespace PartSource.Services
try try
{ {
//HttpResponseMessage response = await client.PostAsync(ConfigurationManager.AppSettings["NexpartUrl"], (HttpContent)new StringContent(sb.ToString(), Encoding.UTF8, "text/xml")); //HttpResponseMessage response = await client.PostAsync(ConfigurationManager.AppSettings["NexpartUrl"], (HttpContent)new StringContent(sb.ToString(), Encoding.UTF8, "text/xml"));
HttpResponseMessage response = await client.PostAsync("http://acespssprod.nexpart.com:8081/partselect/1.0/services/PartSelectService.PartSelectHttpSoap11Endpoint/", new StringContent(textWriter.ToString(), Encoding.UTF8)); HttpResponseMessage response = await client.PostAsync("https://acespssprod.nexpart.com:4085/partselect/2.0/services/PartSelectService.PartSelectHttpSoap11Endpoint", new StringContent(textWriter.ToString(), Encoding.UTF8, "text/xml"));
Stream result = await response.Content.ReadAsStreamAsync(); Stream result = await response.Content.ReadAsStreamAsync();
string str = await response.Content.ReadAsStringAsync(); string str = await response.Content.ReadAsStringAsync();