Click here to Skip to main content
15,913,396 members

Comments by Davide Ardizzola (Top 4 by date)

Davide Ardizzola 14-Nov-13 10:03am View    
I've generated the xsd and than the container class but when i deserialize i get always a error message: Error in XML document (2, 2).

This is the class:
<pre lang="CS">
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:2.0.50727.5472
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
//
//------------------------------------------------------------------------------

using System.Xml.Serialization;

namespace TestWebService
{
//
// This source code was auto-generated by xsd, Version=2.0.50727.3038.
//


/// <remarks>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
public partial class CRMMessage
{

private string requestCodeField;

private string responseCodeField;

private CRMMessageResultSet[] resultSetField;

private string languageField;

private string currencyField;

private string isTrustedSATField;

private string hostversionField;

/// <remarks>
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string RequestCode
{
get { return this.requestCodeField; }
set { this.requestCodeField = value; }
}

/// <remarks>
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string ResponseCode
{
get { return this.responseCodeField; }
set { this.responseCodeField = value; }
}

/// <remarks>
[System.Xml.Serialization.XmlElementAttribute("ResultSet", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public CRMMessageResultSet[] ResultSet
{
get { return this.resultSetField; }
set { this.resultSetField = value; }
}

/// <remarks>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string language
{
get { return this.languageField; }
set { this.languageField = value; }
}

/// <remarks>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string currency
{
get { return this.currencyField; }
set { this.currencyField = value; }
}

/// <remarks>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string isTrustedSAT
{
get { return this.isTrustedSATField; }
set { this.isTrustedSATField = value; }
}

/// <remarks>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string hostversion
{
get { return this.hostversionField; }
set { this.hostversionField = value; }
}
}

/// <remarks>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class CRMMessageResultSet
{

private CRMMessageResultSetResultSetMetaDataRSColumn[][] resultSetMetaDataField;

private CRMMessageResultSetRowsRow[][] rowsField;

/// <remarks>
[System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)
Davide Ardizzola 14-Nov-13 8:39am View    
correct, i don't know how to deserialize it.
Davide Ardizzola 14-Nov-13 5:23am View    
I've not understand what you mean.
Davide Ardizzola 13-Nov-13 15:47pm View    
I call a webservice giving a customer id (in the example the ID 168209) and the web service answer to me with Customer FirstName, LastName, ZIP, City...

I get the xml from a webservice.
I only need to deserialize it.