private ServiceAccesssResp ConvertToResponse(ServiceAccessRespEntity resp, ServiceAccesssReq req, ServiceAccesssReqHead head, ServiceAccesssReqBody body) { ServiceAccesssResp response = new ServiceAccesssResp() { Items = new object[]{ new ServiceAccesssRespHead() { Dest_Address = head.Dest_Address, Send_Address = head.Send_Address, TransactionID = resp.Head.TransactionID, Version = resp.Head.Version } , new ServiceAccesssRespBody() { Response = new ServiceAccesssRespBodyResponse[] { new ServiceAccesssRespBodyResponse() { OrderID = resp.Body.OrderID, Price = resp.Body.Price, PushID = resp.Body.PushID, RetCode = resp.Body.RetCode, SPID = resp.Body.SPID, SPServiceID = resp.Body.SPServiceID } } } } }; return response; }
private string ConvertToServiceAccessRespXml(ServiceAccesssResp resp) { string xml = resp.ToXml(); return xml; }