using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace iWareWebservice.AppDao
{
public class ResponseXmlString
{
///
/// 响应头(xml)
///
///
///
///
///
public string GetResponseHeardStr(string msgSeqNo,bool result,string errorMsg)
{
string statusCode = "200";
string successStr = "true";
if (!result)
{
statusCode = "201";
successStr = "false";
}
string heardStr = ""
+ ""+ msgSeqNo + ""
+ "1.0"
+ "WMS"
+ "SPx"
+ "" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff") + ""
+ ""+ statusCode + ""
+ ""+ successStr + ""
+ "false"
+ ""+ errorMsg + ""
+ "";
return heardStr;
}
///
/// 响应尾(xml)
///
///
public string GetResponseEndStr()
{
return "";
}
}
}