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 Aspirecn.Entities.Cssp.ServiceAccessRespEntity AddResponseRecords(
            ServiceAccesssReqBody body,
            ServiceAccesssReqHead head, CsspEntitiesContainer entities,
            ServiceAccessReqEntity reqEntity)
        {
            int tranID = this.GenerateRandomNumber();
            string orderpushid = this.GenerateOrderPushIDStr(tranID);

            Aspirecn.Entities.Cssp.ServiceAccessRespEntity resp =
                new ServiceAccessRespEntity()
                {
                    Head = new RespHead()
                    {
                        Dest_Address =
                            reqEntity.Head.Dest_Address,
                        Send_Address = reqEntity.Head.Send_Address,
                        Version = "1.0.0",
                        TransactionID = tranID.ToString()
                    },
                    Body = new ResponseType()
                        {
                            Price = "0.01",
                            RetCode = "0",
                            SPID = reqEntity.Body.Request.SPID,
                            SPServiceID = reqEntity.Body.Request.SPServiceID,
                            OrderID = orderpushid,
                            PushID = orderpushid
                        },
                    // ServiceAccessReqEntity = reqEntity
                };
            //resp.ServiceAccessReqEntity = reqEntity;
            //reqEntity.ServiceAccessRespEntity = resp;
            //entities.ServiceAccessRespEntities.Add(resp);

            return resp;
        }