我正在尝试将字符串值分配给Nsrequest
个实例,但我得到null reference exception
这是与SAP的整合,有什么帮助吗?
NHSREquest的类看起来像这样
[Serializable]
[DebuggerStepThrough]
[DesignerCategory("code")]
[GeneratedCode("System.Xml", "4.6.1080.0")]
[XmlType(Namespace = "urn:com.li.common:objects")]
public class NHSRequest
{
public NHSRequest();
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public NHSRequestNHSDetails NHSDetails { get; set; }
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public TechnicalHeader TechnicalHeader { get; set; }
}
NHSRequest locRequest = new NHSRequest();
locRequest.TechnicalHeader.SourceSystem = "Ub";
locRequest.TechnicalHeader.TargetSystem = "DGE0a6";
locRequest.TechnicalHeader.DateTime = DateTime.MinValue;