Skip to Content
0
Former Member
Jan 18, 2013 at 07:46 AM

DI Server Get an Error

25 Views

who know why ?

Node n = new Node();

XmlDocument d = new XmlDocument();

CommonXML oCommonXML = new CommonXML();

string AddCmd;

AddCmd = "<?xml version=\"1.0\" encoding=\"UTF-16\"?>";

AddCmd += "<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">";

AddCmd += "<env:Header>";

AddCmd += "<SessionID>" + D1DBC51A-85BF-4BDE-A251-EFDF5DDD7C29+ "</SessionID>";

AddCmd += "</env:Header>";

AddCmd += "<env:Body>";

AddCmd += "<dis:GetBusinessObjectTemplate xmlns:dis=\"http://www.sap.com/SBO/DIS\">";

AddCmd += "<Object>" + oJournalVouchers+ "</Object>";

AddCmd += "</dis:GetBusinessObjectTemplate></env:Body></env:Envelope>";

string res = n.Interact(AddCmd);

d.LoadXml(res);

return oCommonXML.RemoveEnv(d);

error message

<?xml version="1.0" encoding="UTF-8"?>

<string xmlns="http://tempuri.org/"><?xml version="1.0"?><env:Envelope xmlns:env="env:Receiver-1000http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value><env:Subcode><env:Value>-1000</env:Value></env:Subcode></env:Code><env:Reason><env:Text xml:lang="en">Field 'BatchNum' of 'OBTD' is not defined</env:Text></env:Reason><env:Detail><Object>28</Object><Command>GetBusinessObjectTemplate</Command><SessionID>D1DBC51A-85BF-4BDE-A251-EFDF5DDD7C29</SessionID></env:Detail></env:Fault></env:Body></env:Envelope></string>