|
Hi all, thanks in advance for any help. I have added a Service reference to a Land Registry web Service which generated a reference.cs file to help in building an xml document to submit a request. Code below:
using System;
namespace ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1 {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(Namespace="http://officialcopyv2_1.ws.bg.lr.gov/", ConfigurationName="LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service")]
public interface OC1TitleKnownV2_1Service {
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
[System.ServiceModel.FaultContractAttribute(typeof(string), Action="", Name="SOAPEngineSystemException")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchResponse performTitleKnownSearch(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest request);
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
System.Threading.Tasks.Task<ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchResponse> performTitleKnownSearchAsync(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest request);
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class RequestTitleKnownOfficialCopyV2_1Type : object, System.ComponentModel.INotifyPropertyChanged {
private Q1IdentifierType idField;
private Q1ProductType productField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q1IdentifierType ID {
get {
return this.idField;
}
set {
this.idField = value;
this.RaisePropertyChanged("ID");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1ProductType Product {
get {
return this.productField;
}
set {
this.productField = value;
this.RaisePropertyChanged("Product");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1IdentifierType : object, System.ComponentModel.INotifyPropertyChanged {
private Q1TextType messageIDField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q1TextType MessageID {
get {
return this.messageIDField;
}
set {
this.messageIDField = value;
this.RaisePropertyChanged("MessageID");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1TextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class ResultCodeType : object, System.ComponentModel.INotifyPropertyChanged {
private ResultCodeContentType valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public ResultCodeContentType Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public enum ResultCodeContentType {
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
[System.Xml.Serialization.XmlEnumAttribute("30")]
Item30,
[System.Xml.Serialization.XmlEnumAttribute("40")]
Item40,
[System.Xml.Serialization.XmlEnumAttribute("50")]
Item50,
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName="DateType", Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class DateType1 : object, System.ComponentModel.INotifyPropertyChanged {
private System.DateTime valueField;
[System.Xml.Serialization.XmlTextAttribute(DataType="date")]
public System.DateTime Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class BinaryObjectType : object, System.ComponentModel.INotifyPropertyChanged {
private string filenameField;
private string formatField;
private string mimeCodeField;
private string characterSetCodeField;
private byte[] valueField;
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
public string filename {
get {
return this.filenameField;
}
set {
this.filenameField = value;
this.RaisePropertyChanged("filename");
}
}
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
public string format {
get {
return this.formatField;
}
set {
this.formatField = value;
this.RaisePropertyChanged("format");
}
}
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, DataType="normalizedString")]
public string mimeCode {
get {
return this.mimeCodeField;
}
set {
this.mimeCodeField = value;
this.RaisePropertyChanged("mimeCode");
}
}
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, DataType="normalizedString")]
public string characterSetCode {
get {
return this.characterSetCodeField;
}
set {
this.characterSetCodeField = value;
this.RaisePropertyChanged("characterSetCode");
}
}
[System.Xml.Serialization.XmlTextAttribute(DataType="base64Binary")]
public byte[] Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1AttachmentType : object, System.ComponentModel.INotifyPropertyChanged {
private BinaryObjectType embeddedFileBinaryObjectField;
private TextType titleField;
private TextType descriptionField;
private DateType1 dateField;
private TextType copyrightNoticesField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public BinaryObjectType EmbeddedFileBinaryObject {
get {
return this.embeddedFileBinaryObjectField;
}
set {
this.embeddedFileBinaryObjectField = value;
this.RaisePropertyChanged("EmbeddedFileBinaryObject");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public TextType Title {
get {
return this.titleField;
}
set {
this.titleField = value;
this.RaisePropertyChanged("Title");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public TextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
public DateType1 Date {
get {
return this.dateField;
}
set {
this.dateField = value;
this.RaisePropertyChanged("Date");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=4)]
public TextType CopyrightNotices {
get {
return this.copyrightNoticesField;
}
set {
this.copyrightNoticesField = value;
this.RaisePropertyChanged("CopyrightNotices");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class TextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1MessageDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
private TextType descriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public TextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1ResultsType : object, System.ComponentModel.INotifyPropertyChanged {
private Q1MessageDetailsType messageDetailsField;
private Q1ExternalReferenceType1 externalReferenceField;
private Q1ActualPriceType actualPriceField;
private Q1AttachmentType attachmentField;
private ResultCodeType resultTypeCodeField;
private Q1HMLRReferenceType hMLRReferenceField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q1MessageDetailsType MessageDetails {
get {
return this.messageDetailsField;
}
set {
this.messageDetailsField = value;
this.RaisePropertyChanged("MessageDetails");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1ExternalReferenceType1 ExternalReference {
get {
return this.externalReferenceField;
}
set {
this.externalReferenceField = value;
this.RaisePropertyChanged("ExternalReference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q1ActualPriceType ActualPrice {
get {
return this.actualPriceField;
}
set {
this.actualPriceField = value;
this.RaisePropertyChanged("ActualPrice");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
public Q1AttachmentType Attachment {
get {
return this.attachmentField;
}
set {
this.attachmentField = value;
this.RaisePropertyChanged("Attachment");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=4)]
public ResultCodeType ResultTypeCode {
get {
return this.resultTypeCodeField;
}
set {
this.resultTypeCodeField = value;
this.RaisePropertyChanged("ResultTypeCode");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=5)]
public Q1HMLRReferenceType HMLRReference {
get {
return this.hMLRReferenceField;
}
set {
this.hMLRReferenceField = value;
this.RaisePropertyChanged("HMLRReference");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName="Q1ExternalReferenceType", Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1ExternalReferenceType1 : object, System.ComponentModel.INotifyPropertyChanged {
private TextType referenceField;
private TextType allocatedByField;
private TextType descriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public TextType Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
this.RaisePropertyChanged("Reference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public TextType AllocatedBy {
get {
return this.allocatedByField;
}
set {
this.allocatedByField = value;
this.RaisePropertyChanged("AllocatedBy");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public TextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1ActualPriceType : object, System.ComponentModel.INotifyPropertyChanged {
private AmountType1 grossPriceAmountField;
private AmountType1 netPriceAmountField;
private AmountType1 vATAmountField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public AmountType1 GrossPriceAmount {
get {
return this.grossPriceAmountField;
}
set {
this.grossPriceAmountField = value;
this.RaisePropertyChanged("GrossPriceAmount");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public AmountType1 NetPriceAmount {
get {
return this.netPriceAmountField;
}
set {
this.netPriceAmountField = value;
this.RaisePropertyChanged("NetPriceAmount");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public AmountType1 VATAmount {
get {
return this.vATAmountField;
}
set {
this.vATAmountField = value;
this.RaisePropertyChanged("VATAmount");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName="AmountType", Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class AmountType1 : object, System.ComponentModel.INotifyPropertyChanged {
private string currencyIDField;
private decimal valueField;
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, DataType="normalizedString")]
public string currencyID {
get {
return this.currencyIDField;
}
set {
this.currencyIDField = value;
this.RaisePropertyChanged("currencyID");
}
}
[System.Xml.Serialization.XmlTextAttribute()]
public decimal Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1HMLRReferenceType : object, System.ComponentModel.INotifyPropertyChanged {
private HMLRReferenceTextType referenceField;
private OrganisationNameTextType allocatedByField;
private DescriptionTextType descriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public HMLRReferenceTextType Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
this.RaisePropertyChanged("Reference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public OrganisationNameTextType AllocatedBy {
get {
return this.allocatedByField;
}
set {
this.allocatedByField = value;
this.RaisePropertyChanged("AllocatedBy");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public DescriptionTextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class HMLRReferenceTextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class OrganisationNameTextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class DescriptionTextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1ValidationErrorsType : object, System.ComponentModel.INotifyPropertyChanged {
private TextType codeField;
private TextType descriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public TextType Code {
get {
return this.codeField;
}
set {
this.codeField = value;
this.RaisePropertyChanged("Code");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public TextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1RejectionResponseType : object, System.ComponentModel.INotifyPropertyChanged {
private TextType reasonField;
private TextType codeField;
private TextType otherDescriptionField;
private Q1ValidationErrorsType[] validationErrorsField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public TextType Reason {
get {
return this.reasonField;
}
set {
this.reasonField = value;
this.RaisePropertyChanged("Reason");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public TextType Code {
get {
return this.codeField;
}
set {
this.codeField = value;
this.RaisePropertyChanged("Code");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public TextType OtherDescription {
get {
return this.otherDescriptionField;
}
set {
this.otherDescriptionField = value;
this.RaisePropertyChanged("OtherDescription");
}
}
[System.Xml.Serialization.XmlElementAttribute("ValidationErrors", Order=3)]
public Q1ValidationErrorsType[] ValidationErrors {
get {
return this.validationErrorsField;
}
set {
this.validationErrorsField = value;
this.RaisePropertyChanged("ValidationErrors");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1RejectionType : object, System.ComponentModel.INotifyPropertyChanged {
private Q1ExternalReferenceType1 externalReferenceField;
private Q1ActualPriceType actualPriceField;
private Q1RejectionResponseType rejectionResponseField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q1ExternalReferenceType1 ExternalReference {
get {
return this.externalReferenceField;
}
set {
this.externalReferenceField = value;
this.RaisePropertyChanged("ExternalReference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1ActualPriceType ActualPrice {
get {
return this.actualPriceField;
}
set {
this.actualPriceField = value;
this.RaisePropertyChanged("ActualPrice");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q1RejectionResponseType RejectionResponse {
get {
return this.rejectionResponseField;
}
set {
this.rejectionResponseField = value;
this.RaisePropertyChanged("RejectionResponse");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class DateTimeType : object, System.ComponentModel.INotifyPropertyChanged {
private System.DateTime valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public System.DateTime Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class IdentifierType : object, System.ComponentModel.INotifyPropertyChanged {
private string schemeAgencyNameField;
private string schemeNameField;
private string valueField;
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
public string schemeAgencyName {
get {
return this.schemeAgencyNameField;
}
set {
this.schemeAgencyNameField = value;
this.RaisePropertyChanged("schemeAgencyName");
}
}
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
public string schemeName {
get {
return this.schemeNameField;
}
set {
this.schemeNameField = value;
this.RaisePropertyChanged("schemeName");
}
}
[System.Xml.Serialization.XmlTextAttribute(DataType="normalizedString")]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1AcknowledgementDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
private IdentifierType uniqueIDField;
private DateTimeType expectedResponseDateTimeField;
private TextType messageDescriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public IdentifierType UniqueID {
get {
return this.uniqueIDField;
}
set {
this.uniqueIDField = value;
this.RaisePropertyChanged("UniqueID");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public DateTimeType ExpectedResponseDateTime {
get {
return this.expectedResponseDateTimeField;
}
set {
this.expectedResponseDateTimeField = value;
this.RaisePropertyChanged("ExpectedResponseDateTime");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public TextType MessageDescription {
get {
return this.messageDescriptionField;
}
set {
this.messageDescriptionField = value;
this.RaisePropertyChanged("MessageDescription");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1AcknowledgementType : object, System.ComponentModel.INotifyPropertyChanged {
private Q1AcknowledgementDetailsType acknowledgementDetailsField;
private Q1HMLRReferenceType hMLRReferenceField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q1AcknowledgementDetailsType AcknowledgementDetails {
get {
return this.acknowledgementDetailsField;
}
set {
this.acknowledgementDetailsField = value;
this.RaisePropertyChanged("AcknowledgementDetails");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1HMLRReferenceType HMLRReference {
get {
return this.hMLRReferenceField;
}
set {
this.hMLRReferenceField = value;
this.RaisePropertyChanged("HMLRReference");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class ProductResponseCodeType : object, System.ComponentModel.INotifyPropertyChanged {
private ProductResponseCodeContentType valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public ProductResponseCodeContentType Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public enum ProductResponseCodeContentType {
[System.Xml.Serialization.XmlEnumAttribute("0")]
Item0,
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
[System.Xml.Serialization.XmlEnumAttribute("30")]
Item30,
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class Q1GatewayResponseType : object, System.ComponentModel.INotifyPropertyChanged {
private ProductResponseCodeType typeCodeField;
private Q1AcknowledgementType acknowledgementField;
private Q1RejectionType rejectionField;
private Q1ResultsType resultsField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public ProductResponseCodeType TypeCode {
get {
return this.typeCodeField;
}
set {
this.typeCodeField = value;
this.RaisePropertyChanged("TypeCode");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1AcknowledgementType Acknowledgement {
get {
return this.acknowledgementField;
}
set {
this.acknowledgementField = value;
this.RaisePropertyChanged("Acknowledgement");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q1RejectionType Rejection {
get {
return this.rejectionField;
}
set {
this.rejectionField = value;
this.RaisePropertyChanged("Rejection");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
public Q1ResultsType Results {
get {
return this.resultsField;
}
set {
this.resultsField = value;
this.RaisePropertyChanged("Results");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/ResponseTitleKnownOfficialCopyV2_0")]
public partial class ResponseTitleKnownOfficialCopyV2_0Type : object, System.ComponentModel.INotifyPropertyChanged {
private Q1GatewayResponseType gatewayResponseField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q1GatewayResponseType GatewayResponse {
get {
return this.gatewayResponseField;
}
set {
this.gatewayResponseField = value;
this.RaisePropertyChanged("GatewayResponse");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1DXDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
private Q3TextType dXNumberField;
private Q3TextType exchangeNameField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q3TextType DXNumber {
get {
return this.dXNumberField;
}
set {
this.dXNumberField = value;
this.RaisePropertyChanged("DXNumber");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q3TextType ExchangeName {
get {
return this.exchangeNameField;
}
set {
this.exchangeNameField = value;
this.RaisePropertyChanged("ExchangeName");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q3TextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
public static implicit operator Q3TextType(Q1ContactType v)
{
throw new NotImplementedException();
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1AlternativePostalAddressType : object, System.ComponentModel.INotifyPropertyChanged {
private Q3TextType[] addressLineField;
private Q3TextType postcodeField;
[System.Xml.Serialization.XmlElementAttribute("AddressLine", Order=0)]
public Q3TextType[] AddressLine {
get {
return this.addressLineField;
}
set {
this.addressLineField = value;
this.RaisePropertyChanged("AddressLine");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q3TextType Postcode {
get {
return this.postcodeField;
}
set {
this.postcodeField = value;
this.RaisePropertyChanged("Postcode");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1AlternativeDespatchAddressType : object, System.ComponentModel.INotifyPropertyChanged {
private object itemField;
[System.Xml.Serialization.XmlElementAttribute("DXDetails", typeof(Q1DXDetailsType), Order=0)]
[System.Xml.Serialization.XmlElementAttribute("PostalAddress", typeof(Q1AlternativePostalAddressType), Order=0)]
public object Item {
get {
return this.itemField;
}
set {
this.itemField = value;
this.RaisePropertyChanged("Item");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1AlternativeDespatchDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
private string alternativeDespatchNameField;
private string alternativeDespatchReferenceField;
private Q1AlternativeDespatchAddressType alternativeDespatchAddressField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public string AlternativeDespatchName {
get {
return this.alternativeDespatchNameField;
}
set {
this.alternativeDespatchNameField = value;
this.RaisePropertyChanged("AlternativeDespatchName");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public string AlternativeDespatchReference {
get {
return this.alternativeDespatchReferenceField;
}
set {
this.alternativeDespatchReferenceField = value;
this.RaisePropertyChanged("AlternativeDespatchReference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q1AlternativeDespatchAddressType AlternativeDespatchAddress {
get {
return this.alternativeDespatchAddressField;
}
set {
this.alternativeDespatchAddressField = value;
this.RaisePropertyChanged("AlternativeDespatchAddress");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class NumericType : object, System.ComponentModel.INotifyPropertyChanged {
private decimal valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public decimal Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class IndicatorType : object, System.ComponentModel.INotifyPropertyChanged {
private bool valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public bool Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class OfficialCopyCodeType : object, System.ComponentModel.INotifyPropertyChanged {
private OfficialCopyCodeContentType valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public OfficialCopyCodeContentType Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public enum OfficialCopyCodeContentType {
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class RequestedOfficialCopyCodeType : object, System.ComponentModel.INotifyPropertyChanged {
private RequestedOfficialCopyCodeContentType valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public RequestedOfficialCopyCodeContentType Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public enum RequestedOfficialCopyCodeContentType {
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
[System.Xml.Serialization.XmlEnumAttribute("30")]
Item30,
[System.Xml.Serialization.XmlEnumAttribute("40")]
Item40,
[System.Xml.Serialization.XmlEnumAttribute("50")]
Item50,
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1TitleKnownOfficialCopyType : object, System.ComponentModel.INotifyPropertyChanged {
private RequestedOfficialCopyCodeType requestedOfficialCopyCodeField;
private string propertyDescriptionField;
private OfficialCopyCodeType officialCopyTypeCodeField;
private IndicatorType continueIfTitleIsClosedAndContinuedIndicatorField;
private IndicatorType notifyIfPendingFirstRegistrationIndicatorField;
private IndicatorType notifyIfPendingApplicationIndicatorField;
private IndicatorType sendBackDatedIndicatorField;
private IndicatorType continueIfActualFeeExceedsExpectedFeeIndicatorField;
private NumericType[] certificateInFormCIField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public RequestedOfficialCopyCodeType RequestedOfficialCopyCode {
get {
return this.requestedOfficialCopyCodeField;
}
set {
this.requestedOfficialCopyCodeField = value;
this.RaisePropertyChanged("RequestedOfficialCopyCode");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public string PropertyDescription {
get {
return this.propertyDescriptionField;
}
set {
this.propertyDescriptionField = value;
this.RaisePropertyChanged("PropertyDescription");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public OfficialCopyCodeType OfficialCopyTypeCode {
get {
return this.officialCopyTypeCodeField;
}
set {
this.officialCopyTypeCodeField = value;
this.RaisePropertyChanged("OfficialCopyTypeCode");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
public IndicatorType ContinueIfTitleIsClosedAndContinuedIndicator {
get {
return this.continueIfTitleIsClosedAndContinuedIndicatorField;
}
set {
this.continueIfTitleIsClosedAndContinuedIndicatorField = value;
this.RaisePropertyChanged("ContinueIfTitleIsClosedAndContinuedIndicator");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=4)]
public IndicatorType NotifyIfPendingFirstRegistrationIndicator {
get {
return this.notifyIfPendingFirstRegistrationIndicatorField;
}
set {
this.notifyIfPendingFirstRegistrationIndicatorField = value;
this.RaisePropertyChanged("NotifyIfPendingFirstRegistrationIndicator");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=5)]
public IndicatorType NotifyIfPendingApplicationIndicator {
get {
return this.notifyIfPendingApplicationIndicatorField;
}
set {
this.notifyIfPendingApplicationIndicatorField = value;
this.RaisePropertyChanged("NotifyIfPendingApplicationIndicator");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=6)]
public IndicatorType SendBackDatedIndicator {
get {
return this.sendBackDatedIndicatorField;
}
set {
this.sendBackDatedIndicatorField = value;
this.RaisePropertyChanged("SendBackDatedIndicator");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=7)]
public IndicatorType ContinueIfActualFeeExceedsExpectedFeeIndicator {
get {
return this.continueIfActualFeeExceedsExpectedFeeIndicatorField;
}
set {
this.continueIfActualFeeExceedsExpectedFeeIndicatorField = value;
this.RaisePropertyChanged("ContinueIfActualFeeExceedsExpectedFeeIndicator");
}
}
[System.Xml.Serialization.XmlArrayAttribute(Order=8)]
[System.Xml.Serialization.XmlArrayItemAttribute("EstatePlanPlotNumberNumeric", IsNullable=false)]
public NumericType[] CertificateInFormCI {
get {
return this.certificateInFormCIField;
}
set {
this.certificateInFormCIField = value;
this.RaisePropertyChanged("CertificateInFormCI");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1CommunicationType : object, System.ComponentModel.INotifyPropertyChanged {
private Q3TextType telephoneField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q3TextType Telephone {
get {
return this.telephoneField;
}
set {
this.telephoneField = value;
this.RaisePropertyChanged("Telephone");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1ContactType : object, System.ComponentModel.INotifyPropertyChanged {
private Q3TextType nameField;
private Q1CommunicationType communicationField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q3TextType Name {
get {
return this.nameField;
}
set {
this.nameField = value;
this.RaisePropertyChanged("Name");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1CommunicationType Communication {
get {
return this.communicationField;
}
set {
this.communicationField = value;
this.RaisePropertyChanged("Communication");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class AmountType : object, System.ComponentModel.INotifyPropertyChanged {
private string currencyIDField;
private decimal valueField;
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, DataType="normalizedString")]
public string currencyID {
get {
return this.currencyIDField;
}
set {
this.currencyIDField = value;
this.RaisePropertyChanged("currencyID");
}
}
[System.Xml.Serialization.XmlTextAttribute()]
public decimal Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1ExpectedPriceType : object, System.ComponentModel.INotifyPropertyChanged {
private AmountType grossPriceAmountField;
private AmountType netPriceAmountField;
private AmountType vATAmountField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public AmountType GrossPriceAmount {
get {
return this.grossPriceAmountField;
}
set {
this.grossPriceAmountField = value;
this.RaisePropertyChanged("GrossPriceAmount");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public AmountType NetPriceAmount {
get {
return this.netPriceAmountField;
}
set {
this.netPriceAmountField = value;
this.RaisePropertyChanged("NetPriceAmount");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public AmountType VATAmount {
get {
return this.vATAmountField;
}
set {
this.vATAmountField = value;
this.RaisePropertyChanged("VATAmount");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class TenureCodeType : object, System.ComponentModel.INotifyPropertyChanged {
private TenureCodeContentType valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public TenureCodeContentType Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public enum TenureCodeContentType {
[System.Xml.Serialization.XmlEnumAttribute("0")]
Item0,
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
[System.Xml.Serialization.XmlEnumAttribute("30")]
Item30,
[System.Xml.Serialization.XmlEnumAttribute("40")]
Item40,
[System.Xml.Serialization.XmlEnumAttribute("100")]
Item100,
[System.Xml.Serialization.XmlEnumAttribute("110")]
Item110,
[System.Xml.Serialization.XmlEnumAttribute("120")]
Item120,
[System.Xml.Serialization.XmlEnumAttribute("130")]
Item130,
[System.Xml.Serialization.XmlEnumAttribute("140")]
Item140,
[System.Xml.Serialization.XmlEnumAttribute("150")]
Item150,
[System.Xml.Serialization.XmlEnumAttribute("160")]
Item160,
[System.Xml.Serialization.XmlEnumAttribute("170")]
Item170,
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1SubjectPropertyType : object, System.ComponentModel.INotifyPropertyChanged {
private Q2TextType titleNumberField;
private TenureCodeType tenureTypeCodeField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public Q2TextType TitleNumber {
get {
return this.titleNumberField;
}
set {
this.titleNumberField = value;
this.RaisePropertyChanged("TitleNumber");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public TenureCodeType TenureTypeCode {
get {
return this.tenureTypeCodeField;
}
set {
this.tenureTypeCodeField = value;
this.RaisePropertyChanged("TenureTypeCode");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q2TextType : object, System.ComponentModel.INotifyPropertyChanged {
private string valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public string Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1CustomerReferenceType : object, System.ComponentModel.INotifyPropertyChanged {
private string referenceField;
private Q3TextType allocatedByField;
private Q3TextType descriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public string Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
this.RaisePropertyChanged("Reference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q3TextType AllocatedBy {
get {
return this.allocatedByField;
}
set {
this.allocatedByField = value;
this.RaisePropertyChanged("AllocatedBy");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q3TextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1ExternalReferenceType : object, System.ComponentModel.INotifyPropertyChanged {
private string referenceField;
private Q3TextType allocatedByField;
private Q3TextType descriptionField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public string Reference {
get {
return this.referenceField;
}
set {
this.referenceField = value;
this.RaisePropertyChanged("Reference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q3TextType AllocatedBy {
get {
return this.allocatedByField;
}
set {
this.allocatedByField = value;
this.RaisePropertyChanged("AllocatedBy");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q3TextType Description {
get {
return this.descriptionField;
}
set {
this.descriptionField = value;
this.RaisePropertyChanged("Description");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class DateType : object, System.ComponentModel.INotifyPropertyChanged {
private System.DateTime valueField;
[System.Xml.Serialization.XmlTextAttribute(DataType="date")]
public System.DateTime Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class TypeOfDocumentCodeType : object, System.ComponentModel.INotifyPropertyChanged {
private TypeOfDocumentCodeContentType valueField;
[System.Xml.Serialization.XmlTextAttribute()]
public TypeOfDocumentCodeContentType Value {
get {
return this.valueField;
}
set {
this.valueField = value;
this.RaisePropertyChanged("Value");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public enum TypeOfDocumentCodeContentType {
[System.Xml.Serialization.XmlEnumAttribute("10")]
Item10,
[System.Xml.Serialization.XmlEnumAttribute("20")]
Item20,
[System.Xml.Serialization.XmlEnumAttribute("30")]
Item30,
[System.Xml.Serialization.XmlEnumAttribute("40")]
Item40,
[System.Xml.Serialization.XmlEnumAttribute("50")]
Item50,
[System.Xml.Serialization.XmlEnumAttribute("60")]
Item60,
[System.Xml.Serialization.XmlEnumAttribute("70")]
Item70,
[System.Xml.Serialization.XmlEnumAttribute("80")]
Item80,
[System.Xml.Serialization.XmlEnumAttribute("90")]
Item90,
[System.Xml.Serialization.XmlEnumAttribute("100")]
Item100,
[System.Xml.Serialization.XmlEnumAttribute("110")]
Item110,
[System.Xml.Serialization.XmlEnumAttribute("120")]
Item120,
[System.Xml.Serialization.XmlEnumAttribute("130")]
Item130,
[System.Xml.Serialization.XmlEnumAttribute("140")]
Item140,
[System.Xml.Serialization.XmlEnumAttribute("150")]
Item150,
[System.Xml.Serialization.XmlEnumAttribute("160")]
Item160,
[System.Xml.Serialization.XmlEnumAttribute("170")]
Item170,
[System.Xml.Serialization.XmlEnumAttribute("180")]
Item180,
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1DocumentDetailsType : object, System.ComponentModel.INotifyPropertyChanged {
private TypeOfDocumentCodeType typeOfDocumentCodeField;
private DateType dateOfDocumentDateField;
private Q2TextType titleNumberFiledUnderField;
private Q3TextType additionalInformationField;
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
public TypeOfDocumentCodeType TypeOfDocumentCode {
get {
return this.typeOfDocumentCodeField;
}
set {
this.typeOfDocumentCodeField = value;
this.RaisePropertyChanged("TypeOfDocumentCode");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public DateType DateOfDocumentDate {
get {
return this.dateOfDocumentDateField;
}
set {
this.dateOfDocumentDateField = value;
this.RaisePropertyChanged("DateOfDocumentDate");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q2TextType TitleNumberFiledUnder {
get {
return this.titleNumberFiledUnderField;
}
set {
this.titleNumberFiledUnderField = value;
this.RaisePropertyChanged("TitleNumberFiledUnder");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
public Q3TextType AdditionalInformation {
get {
return this.additionalInformationField;
}
set {
this.additionalInformationField = value;
this.RaisePropertyChanged("AdditionalInformation");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.oscre.org/ns/eReg-Final/2011/RequestTitleKnownOfficialCopyV2_1")]
public partial class Q1ProductType : object, System.ComponentModel.INotifyPropertyChanged {
private Q1DocumentDetailsType[] documentDetailsField;
private Q1ExternalReferenceType externalReferenceField;
private Q1CustomerReferenceType customerReferenceField;
private Q1SubjectPropertyType subjectPropertyField;
private Q1ExpectedPriceType expectedPriceField;
private Q1ContactType[] contactField;
private Q1TitleKnownOfficialCopyType titleKnownOfficialCopyField;
private Q1AlternativeDespatchDetailsType alternativeDespatchDetailsField;
[System.Xml.Serialization.XmlElementAttribute("DocumentDetails", Order=0)]
public Q1DocumentDetailsType[] DocumentDetails {
get {
return this.documentDetailsField;
}
set {
this.documentDetailsField = value;
this.RaisePropertyChanged("DocumentDetails");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
public Q1ExternalReferenceType ExternalReference {
get {
return this.externalReferenceField;
}
set {
this.externalReferenceField = value;
this.RaisePropertyChanged("ExternalReference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
public Q1CustomerReferenceType CustomerReference {
get {
return this.customerReferenceField;
}
set {
this.customerReferenceField = value;
this.RaisePropertyChanged("CustomerReference");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=3)]
public Q1SubjectPropertyType SubjectProperty {
get {
return this.subjectPropertyField;
}
set {
this.subjectPropertyField = value;
this.RaisePropertyChanged("SubjectProperty");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=4)]
public Q1ExpectedPriceType ExpectedPrice {
get {
return this.expectedPriceField;
}
set {
this.expectedPriceField = value;
this.RaisePropertyChanged("ExpectedPrice");
}
}
[System.Xml.Serialization.XmlElementAttribute("Contact", Order=5)]
public Q1ContactType[] Contact {
get {
return this.contactField;
}
set {
this.contactField = value;
this.RaisePropertyChanged("Contact");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=6)]
public Q1TitleKnownOfficialCopyType TitleKnownOfficialCopy {
get {
return this.titleKnownOfficialCopyField;
}
set {
this.titleKnownOfficialCopyField = value;
this.RaisePropertyChanged("TitleKnownOfficialCopy");
}
}
[System.Xml.Serialization.XmlElementAttribute(Order=7)]
public Q1AlternativeDespatchDetailsType AlternativeDespatchDetails {
get {
return this.alternativeDespatchDetailsField;
}
set {
this.alternativeDespatchDetailsField = value;
this.RaisePropertyChanged("AlternativeDespatchDetails");
}
}
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName) {
System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
if ((propertyChanged != null)) {
propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="performTitleKnownSearch", WrapperNamespace="http://officialcopyv2_1.ws.bg.lr.gov/", IsWrapped=true)]
public partial class performTitleKnownSearchRequest {
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://officialcopyv2_1.ws.bg.lr.gov/", Order=0)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.RequestTitleKnownOfficialCopyV2_1Type arg0;
public performTitleKnownSearchRequest() {
}
public performTitleKnownSearchRequest(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.RequestTitleKnownOfficialCopyV2_1Type arg0) {
this.arg0 = arg0;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="performTitleKnownSearchResponse", WrapperNamespace="http://officialcopyv2_1.ws.bg.lr.gov/", IsWrapped=true)]
public partial class performTitleKnownSearchResponse {
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://officialcopyv2_1.ws.bg.lr.gov/", Order=0)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.ResponseTitleKnownOfficialCopyV2_0Type @return;
public performTitleKnownSearchResponse() {
}
public performTitleKnownSearchResponse(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.ResponseTitleKnownOfficialCopyV2_0Type @return) {
this.@return = @return;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface OC1TitleKnownV2_1ServiceChannel : ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service, System.ServiceModel.IClientChannel {
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class OC1TitleKnownV2_1ServiceClient : System.ServiceModel.ClientBase<ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service>, ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service {
public OC1TitleKnownV2_1ServiceClient() {
}
public OC1TitleKnownV2_1ServiceClient(string endpointConfigurationName) :
base(endpointConfigurationName) {
}
public OC1TitleKnownV2_1ServiceClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public OC1TitleKnownV2_1ServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress) {
}
public OC1TitleKnownV2_1ServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress) {
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchResponse ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service.performTitleKnownSearch(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest request) {
return base.Channel.performTitleKnownSearch(request);
}
public ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.ResponseTitleKnownOfficialCopyV2_0Type performTitleKnownSearch(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.RequestTitleKnownOfficialCopyV2_1Type arg0) {
ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest inValue = new ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest();
inValue.arg0 = arg0;
ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchResponse retVal = ((ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service)(this)).performTitleKnownSearch(inValue);
return retVal.@return;
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.Threading.Tasks.Task<ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchResponse> ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service.performTitleKnownSearchAsync(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest request) {
return base.Channel.performTitleKnownSearchAsync(request);
}
public System.Threading.Tasks.Task<ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchResponse> performTitleKnownSearchAsync(ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.RequestTitleKnownOfficialCopyV2_1Type arg0) {
ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest inValue = new ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.performTitleKnownSearchRequest();
inValue.arg0 = arg0;
return ((ProcessTitlesFromDBFs.LROfficialCopyTitleKnownV2_1.OC1TitleKnownV2_1Service)(this)).performTitleKnownSearchAsync(inValue);
}
}
}
I have written code to assign values to the required elements for the xml document and everything is great apart from the Q1ContactType element. This is an implied array and every time I try to create an instance of it, it just returns an 'Object set to Null Reference' error. My code below:
<pre lang="c#">public static ResponseTitleKnownOfficialCopyV2_0Type MatchTitles(string title)
{
try
{
string uname = Properties.Settings.Default.hmlrUserName;
string pwd = Properties.Settings.Default.hmlrPassWord;
OC1TitleKnownV2_1ServiceClient client = new OC1TitleKnownV2_1ServiceClient();
client.ChannelFactory.Endpoint.Behaviors.Add(new HMLR.HMLRBGMessageEndpointBehavior(uname, pwd));
RequestTitleKnownOfficialCopyV2_1Type request = new RequestTitleKnownOfficialCopyV2_1Type();
request.ID = new Q1IdentifierType();
request.ID.MessageID = new Q1TextType();
request.ID.MessageID.Value = "testsuccessmanyresults";
request.Product = new Q1ProductType();
request.Product.ExternalReference = new Q1ExternalReferenceType();
request.Product.ExternalReference.Reference = "DotNetQuickStartReference";
request.Product.CustomerReference = new Q1CustomerReferenceType();
request.Product.CustomerReference.Reference = "AEJTest";
request.Product.SubjectProperty = new Q1SubjectPropertyType();
request.Product.SubjectProperty.TitleNumber = new LROfficialCopyTitleKnownV2_1.Q2TextType();
request.Product.SubjectProperty.TitleNumber.Value = "DN100";
request.Product.ExpectedPrice = new Q1ExpectedPriceType();
request.Product.ExpectedPrice.GrossPriceAmount = new AmountType();
request.Product.ExpectedPrice.GrossPriceAmount.Value = 3;
request.Product.Contact[1] = new Q1ContactType();
request.Product.Contact[0].Name = new Q3TextType();
request.Product.Contact[0].Name.Value = "Allen Jones";
request.Product.Contact[0].Communication = new Q1CommunicationType();
request.Product.Contact[0].Communication.Telephone.Value = "01925 938640";
request.Product.TitleKnownOfficialCopy = new Q1TitleKnownOfficialCopyType();
request.Product.TitleKnownOfficialCopy.RequestedOfficialCopyCode = new RequestedOfficialCopyCodeType();
request.Product.TitleKnownOfficialCopy.RequestedOfficialCopyCode.Value = RequestedOfficialCopyCodeContentType.Item10;
request.Product.TitleKnownOfficialCopy.OfficialCopyTypeCode = new OfficialCopyCodeType();
request.Product.TitleKnownOfficialCopy.OfficialCopyTypeCode.Value = OfficialCopyCodeContentType.Item10;
request.Product.TitleKnownOfficialCopy.PropertyDescription = "";
request.Product.TitleKnownOfficialCopy.ContinueIfTitleIsClosedAndContinuedIndicator = new IndicatorType();
request.Product.TitleKnownOfficialCopy.ContinueIfTitleIsClosedAndContinuedIndicator.Value = true;
request.Product.TitleKnownOfficialCopy.NotifyIfPendingFirstRegistrationIndicator = new IndicatorType();
request.Product.TitleKnownOfficialCopy.NotifyIfPendingFirstRegistrationIndicator.Value = true;
request.Product.TitleKnownOfficialCopy.NotifyIfPendingApplicationIndicator = new IndicatorType();
request.Product.TitleKnownOfficialCopy.NotifyIfPendingApplicationIndicator.Value = true;
request.Product.TitleKnownOfficialCopy.SendBackDatedIndicator = new IndicatorType();
request.Product.TitleKnownOfficialCopy.SendBackDatedIndicator.Value = true;
request.Product.TitleKnownOfficialCopy.ContinueIfActualFeeExceedsExpectedFeeIndicator = new IndicatorType();
request.Product.TitleKnownOfficialCopy.ContinueIfActualFeeExceedsExpectedFeeIndicator.Value = true;
Console.Write(request.ToString());
LROfficialCopyTitleKnownV2_1.ResponseTitleKnownOfficialCopyV2_0Type response = client.performTitleKnownSearch(request);
return response;
}
catch (Exception e)
{
Console.WriteLine(e);
return null;
}
}
Any ideas as to what I am doing wrong or what I am missing will be gratefully received.
Allen Jones
|
|
|
|
|
Do us all a favour and don't post your whole app - do you really think we want to wade through that pile of code trying to find the relevant bits?
Edit your question and cut it down to just the relevant code fragments - and then explain exactly where the problem occurs.
But in this case, we can't help you: we can't run your code in isolation, and it needs to be run under the debugger to find out what exactly is going on.
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself.
Let me just explain what the error means: You have tried to use a variable, property, or a method return value but it contains null - which means that there is no instance of a class in the variable.
It's a bit like a pocket: you have a pocket in your shirt, which you use to hold a pen. If you reach into the pocket and find there isn't a pen there, you can't sign your name on a piece of paper - and you will get very funny looks if you try! The empty pocket is giving you a null value (no pen here!) so you can't do anything that you would normally do once you retrieved your pen. Why is it empty? That's the question - it may be that you forgot to pick up your pen when you left the house this morning, or possibly you left the pen in the pocket of yesterdays shirt when you took it off last night.
We can't tell, because we weren't there, and even more importantly, we can't even see your shirt, much less what is in the pocket!
Back to computers, and you have done the same thing, somehow - and we can't see your code, much less run it and find out what contains null when it shouldn't.
But you can - and Visual Studio will help you here. Run your program in the debugger and when it fails, VS will show you the line it found the problem on. You can then start looking at the various parts of it to see what value is null and start looking back through your code to find out why. So put a breakpoint at the beginning of the method containing the error line, and run your program from the start again. This time, VS will stop before the error, and let you examine what is going on by stepping through the code looking at your values.
But we can't do that - we don't have your code, we don't know how to use it if we did have it, we don't have your data. So try it - and see how much information you can find out!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Quote:
request.Product.Contact[1] = new Q1ContactType();
request.Product.Contact[0].Name = new Q3TextType();
request.Product.Contact[0].Name.Value = "Allen Jones";
request.Product.Contact[0].Communication = new Q1CommunicationType();
request.Product.Contact[0].Communication.Telephone.Value = "01925 938640";
You're trying to store an element in the array before you've initialized the array. The request.Product.Contact array is null , so if you try to store anything in it, you'll get a NullReferenceException .
The code to initialize the array is on the following line, but you've commented it out.
You're also trying to store an item at index 1 , and then modifying the item at index 0 . Array indices are zero-based, and your commented-out line is creating an array of length 1 , so the only valid index will be 0 .
request.Product.Contact = new Q1ContactType[1];
request.Product.Contact[0] = new Q1ContactType();
request.Product.Contact[0].Name = new Q3TextType();
request.Product.Contact[0].Name.Value = "Allen Jones";
request.Product.Contact[0].Communication = new Q1CommunicationType();
request.Product.Contact[0].Communication.Telephone.Value = "01925 938640";
If you're using a recent version of Visual Studio, you can simplify this code by using an initializer[^]:
request.Product.Contact = new[]
{
new Q1ContactType
{
Name = new Q3TextType
{
Value = "Allen Jones"
},
Communication = new Q1CommunicationType
{
Value = "01925 938640"
}
}
};
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I though the comment this code is generated by a tool was humorous...
|
|
|
|
|
I have textbox for inserting date called startdate
i want when user insert date get last day of month in another textbox
forexample startdate: 23/09/2018 "my format is dd/mm/yyyy"
lastdate: 30/09/20
|
|
|
|
|
Have some google foo Google Search[^]
You should learn to do some basic research, it is MUCH quicker.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It's quite easy. See:
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
DateTime dt1 = DateTime.ParseExact("23/09/2018", "dd/MM/yyyy", ci);
DateTime dt2 = new DateTime(dt1.Year, dt1.Month,1).AddMonths(1).AddDays(-1);
Console.WriteLine("{0} => {1}", dt1.ToString("yyyy-MM-dd"), dt2.ToString("yyyy-MM-dd"));
For further details, please see:
DateTime Constructor (System) | Microsoft Docs
How to: convert strings to DateTime | Microsoft Docs
Good luck!
[EDIT]
Please, read OriginalGriff's comment to my answer. In my code is one bug, which you have to handle.
Thanks, OG!
modified 24-Sep-18 4:06am.
|
|
|
|
|
Um...
DateTime dt2 = new DateTime(dt1.Year, dt1.Month+1,1).AddDays(-1); Did you test that in December?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Good point!
No. Should i?
This part belongs to OP
[EDIT]
Corrected!
Thanks, OG!
|
|
|
|
|
You're welcome!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Marciej has the right idea, but his method has a problem: it will fail in December, because it tries to create a date in the 13th month of the year.
Have a look at this: DateTime Extensions to Make Some Simple Tasks a Little More Readable[^] - it includes a "Last day of month" function.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Absolut Beginner can someone explain why i get stackoverflow on this code and how to avoid this ?
Stackoverflow error
After adding this lines to my code i get the stack overflow
static void Udskriv2() {
Console.WriteLine("Start Udskriv 2");
/Udskriv1();
Console.WriteLine("Slut Udskriv 2");
using System;
using System.Collections.Generic;
using System.Text;
namespace Metodekald_H4
{
class Program
{
static void Main(string[] args) {
Console.WriteLine("Start Main");
Udskriv1();
Console.WriteLine("Slut Main");
}
static void Udskriv1() {
Console.WriteLine("Start Udskriv 1");
Udskriv2();
Console.WriteLine("Slut Udskriv 1");
}
static void Udskriv2() {
Console.WriteLine("Start Udskriv 2");
/Udskriv1();
Console.WriteLine("Slut Udskriv 2");
}
static void Udskriv3() {
Console.WriteLine("Start Udskriv 3");
Console.WriteLine("Slut Udskriv 3");
}
}
}
|
|
|
|
|
Because Udskriv1 calls Udskriv2 , and Udskriv2 calls Udskriv1
That's called recursion, and it means that because every time a method gets called it ends up being called again before it exits - and because each call needs space on some memory called "the stack" to hold the address it has to go back to when it returns the stack fills up very quickly and you get an error because it has nowhere else it can put addresses.
In this case, it's "indirect recursion" because an intermediate method is involved, but exactly teh same thing happens, just slightly quicker.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Thanks, now i see whats going on.
I have to find a solution to avoid this error, could it be to make a little pause in the code to let the code be finish before it starts again ?
in the school assignment i have on this i have to find a solution´S ! on how to deal with this.
|
|
|
|
|
No, a pause won't make any difference.
This is going to be difficult to explain without being able to tell when your eyes glaze over, but I'll try.
Suppose you have a stack of coins and a piece of paper. Each time you turn the paper over, you do exactly what it says.
So you turn the paper and it says:
1) Put a coin on the stack.
2) Turn over the paper. So you do.
The stack grows one bigger, and you turn the paper. This time it says:
1) Put a coin on the stack.
2) Turn over the paper. So you do.
The stack grows one bigger, and you turn the paper. You know what it says, because you are back where you started!
Each time you turn the paper, the stack of coins gets bigger, and bigger.
At some point, it reaches the ceiling, and you can't add another - but you try to force a coin on, and the whole pile falls to the ground with a crash!
That's what happens with unbounded recursive methods - you keep on calling it, and the stack gets bigger, and bigger until it runs out of space and your application crashes.
Adding a delay doesn't "fix the problem", it just means it takes longer in real-world time to get there, just as it does with the pile of coins. Even if you change one side of the paper to read
1) Put a coin on the stack.
2) Wait 30 seconds.
3) Turn over the paper. The same problem will happen, the stack will still collapse, but it's happen later on in the day.
The way to fix this is: either get rid of the recursion, or add a boundary condition which lets you out of the method without the recursive call. There really is no other solution!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wery good expl. !!!
For a minute ago, i talked with another student, he was at the same course last year!
He had in his soulution written that a programmer should not write more code to solve problem as this.
Just remove the code causing this !
Thanks again !
/Thomas
|
|
|
|
|
You're welcome!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi all i have been trying to post files for a third party tool through rest api with MultipartFormDataContent. Even though i am writing files to MultipartFordatacontent in byte arry i am receiving error saying "400 bad request no filedata section found in multipart post request".
Request:
Method: POST, RequestUri: 'url', Version: 1.1, Content: System.Net.Http.MultipartFormDataContent, Headers:
{
Content-Type: multipart/form-data; boundary="4c10d3d0-f2ac-467e-9b46-3ca172eb646d"
Content-Length: 185
}
--c4757eb4-aefd-450a-a5cc-e879ac7f37ce
Content-Disposition: form-data; name=filedata; filename=pp.txt
Content-Type: text/plain
test file
--c4757eb4-aefd-450a-a5cc-e879ac7f37ce--
Response:
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
x-transaction-id: 99999_fileuploaddownload_staging_1537571048380:f4e44b3ca701:28:jm91oq79:10113
vary: accept-encoding
Connection: keep-alive
Cache-Control: no-cache
Date: Fri, 21 Sep 2018 23:04:08 GMT
Content-Length: 104
Content-Type: application/json; charset=utf-8
}
{"statusCode":400,"error":"Bad Request","message":"No filedata section found in multipart POST request"}
|
|
|
|
|
This is a web development issue, nothing to do with C#.
|
|
|
|
|
hello
i stored image in sql server DB by follow command:
command.Parameters.Add("@attach", SqlDbType.VarBinary).Value = bytFile;
but now i want to do it by
Parameters.AddWithValue
command.Parameters.AddWithValue("@attach", bytFile);
but it dont work .
thanks
|
|
|
|
|
"It dont work" is probably the most useless problem report we get - and we get it a lot. It tells us nothing about what is happening, or when it happens.
So tell us what it is doing that you didn't expect, or not doing that you did.
Tell us what you did to get it to happen.
Tell us any error messages.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
i have create code like this right now,it is small game. it will show grid pictureboxes when user enter rows and columns in textboxes. also i have several button with image. when i click the button,that mean i choose the image on that button and when i click the picturebox, that image will showing on that picturebox.also user can click button(image) to change the image on picture box.
i don't know how to modify my picturebox image with button.
private void btnGenerate_Click(object sender, EventArgs e)
{
panel3.Controls.Clear();
int rows = Convert.ToInt32(txtRows.Text);
int columns = Convert.ToInt32(txtColumns.Text);
PictureBox[,] map = new PictureBox[rows,columns];
for (int j = 0; j < columns; j++)
{
for (int i = 0; i < rows; i++)
{
System.Threading.Thread.Sleep(50);
map[i, j] = new PictureBox();
map[i, j].Width = 45;
map[i, j].Height = 45;
map[i, j].BackColor = Color.NavajoWhite;
if (i == 0 && j == 0)
{
map[i, j].Location = new Point(100, 100);
}
map[i, j].Location = new Point(45 * i + 100, 45 * j + 100);
map[i, j].BorderStyle = BorderStyle.Fixed3D;
panel3.Controls.Add(map[i, j]);
}
}
}
|
|
|
|
|
Message Removed
modified 2-Oct-18 16:27pm.
|
|
|
|
|
I want to perform some communication between two child forms that are each opened from a parent form (separate button to show each form). I want to change the visibility and value of a numericalUpDown and also the visibility and text of a textbox.
I have used properties, the get part is working perfectly, but the set part works only on the child.show() event, e.g. when I click on Child1Form.button to show the Child2Form the "set" part works, but if I do not show Child2Form, it does not work. and i also do not want to use from setting files.
I used form event handling. The method has gotten fired and the message has shown correctly, but the changes in text and visibility have not.
On the parents side where I call the publisher form, means Child3 form:
Child3 child3 = new Child3();
Child1 child1 = new Child1();
child3.Child1Button2Clicked += child1.child3_Child1Button2Clicked;
child3.Show();
On the subscriber(listener) side:
Event Handling between two child forms that each open from the same parent (Two child - one parent).
public void child3_Child1Button2Clicked(object sender, FormsCommunication e)
{
NumericalUD1.Visible = e.NumericalUDPass;
textBox1.Text = e.textBoxPass;
MessageBox.Show("it got fire" + ": " + e.NumericalUDPass.ToString() + ": " + e.textBoxPass.ToString());
}
On the publisher side:
public event EventHandler<FormsCommunication> Child1Button2Clicked;
//button click event to set the values and fire the method.
private void Child3Btn1_Click(object sender, EventArgs e)
{
FormsCommunication formsCommunication = new
FormsCommunication("2782",Convert.ToBoolean(false));
OnChild1Button2Clicked(formsCommunication);
}
protected virtual void OnChild1Button2Clicked(FormsCommunication e)
{
Child1Button2Clicked?.Invoke(this, e);
}
//the constructor in the EventArgs Class:
public FormsCommunication(string textBox, bool NumericalUD)
{
textBoxPass = textBox;
NumericalUDPass = NumericalUD;
}
public string textBoxPass { get; private set; }
public bool NumericalUDPass { get; private set; }
|
|
|
|
|