예제 #1
0
 /// <summary>
 /// 测试
 /// </summary>
 /// <returns></returns>
 public static OTA_PingReturnEntity OTA_Ping()
 {
     OTA_PingCallEntity callEntity = new OTA_PingCallEntity();
     //callEntity.RequestType = "";
     callEntity.RequestContent = "<ns:OTA_PingRQ><ns:EchoData>阿什顿</ns:EchoData></ns:OTA_PingRQ>";
     return hotelOTAService.OTA_Ping(callEntity);
 }
예제 #2
0
 /// <summary>
 /// Ping测试接口
 /// </summary>
 /// <param name="callEntity"></param>
 /// <returns></returns>
 public OTA_PingReturnEntity OTA_Ping(OTA_PingCallEntity callEntity)
 {
     //string requestType = "OTA_Ping";
     string requestContent = "<ns:OTA_PingRQ><ns:EchoData>阿什顿</ns:EchoData></ns:OTA_PingRQ>";
     OTA_PingCallEntity rq = new OTA_PingCallEntity()
     {
         RequestContent  = requestContent,
         
         //RequestUrl = string.Format("{0}/Hotel/{1}.asmx", CtripApiUrl, callEntity.RequestType)
     };
     HotelApiCall(rq);
     return null;
 }