mi problema es, que al convertir el dato del tipo MFN_M02CONTENTMFN_M02CONTENT
a stringstring
, me guarda solo el namescpacenamespace del tipo de dato MiProyecto.HL7.MFN_M02CONTENTMiProyecto.HL7.MFN_M02CONTENT
, y no el xml con los tags del mensaje.
el tipo de datos MFN-M02CONTENTMFN-M02CONTENT
esta definido de la siguiente manera:
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "MFN_M02.CONTENT", Namespace = "urn:hl7-org:v2xml")]
[System.Xml.Serialization.XmlRootAttribute("MFN_M02", Namespace = "urn:hl7-org:v2xml", IsNullable = false)]
public partial class MFN_M02CONTENT
{
private MSHCONTENT mSHField;
private SFTCONTENT[] sFTField;
private MFICONTENT mFIField;
private MFN_M02MF_STAFFCONTENT[] mFN_M02MF_STAFFField;
/// <comentarios/>
[DataMember]
public MSHCONTENT MSH
{
get
{
return this.mSHField;
}
set
{
this.mSHField = value;
}
}
/// <comentarios/>
[System.Xml.Serialization.XmlElementAttribute("SFT")]
[DataMember]
public SFTCONTENT[] SFT
{
get
{
return this.sFTField;
}
set
{
this.sFTField = value;
}
}
/// <comentarios/>
[DataMember]
public MFICONTENT MFI
{
get
{
return this.mFIField;
}
set
{
this.mFIField = value;
}
}
/// <comentarios/>
[System.Xml.Serialization.XmlElementAttribute("MFN_M02.MF_STAFF")]
[DataMember]
public MFN_M02MF_STAFFCONTENT[] MFN_M02MF_STAFF
{
get
{
return this.mFN_M02MF_STAFFField;
}
set
{
this.mFN_M02MF_STAFFField = value;
}
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(TypeName = "MFN_M02.CONTENT", Namespace = "urn:hl7-org:v2xml")]
[System.Xml.Serialization.XmlRootAttribute("MFN_M02", Namespace = "urn:hl7-org:v2xml", IsNullable = false)]
public partial class MFN_M02CONTENT
{
private MSHCONTENT mSHField;
private SFTCONTENT[] sFTField;
private MFICONTENT mFIField;
private MFN_M02MF_STAFFCONTENT[] mFN_M02MF_STAFFField;
/// <comentarios/>
[DataMember]
public MSHCONTENT MSH
{
get
{
return this.mSHField;
}
set
{
this.mSHField = value;
}
}
/// <comentarios/>
[System.Xml.Serialization.XmlElementAttribute("SFT")]
[DataMember]
public SFTCONTENT[] SFT
{
get
{
return this.sFTField;
}
set
{
this.sFTField = value;
}
}
/// <comentarios/>
[DataMember]
public MFICONTENT MFI
{
get
{
return this.mFIField;
}
set
{
this.mFIField = value;
}
}
/// <comentarios/>
[System.Xml.Serialization.XmlElementAttribute("MFN_M02.MF_STAFF")]
[DataMember]
public MFN_M02MF_STAFFCONTENT[] MFN_M02MF_STAFF
{
get
{
return this.mFN_M02MF_STAFFField;
}
set
{
this.mFN_M02MF_STAFFField = value;
}
}
}
como dederiadebería transformar este tipo de mensaje XML para que quede como texto?
Saludos y gracias