public string dbgTGHTMLReport(string User, string Pwd, string Id_Branch, string Id_Company) { string strParametros = string.Empty; strParametros = "&usuario=" + User + "&password="******"&sucursal=" + Id_Branch + "&cdEmpresa=" + Id_Company; strParametros = EncryptC.EncryptTripleDES(strParametros, KTGAPPWEB); WS.WS_Url = TGURL + "/pgs/services/getReferencias"; Console.WriteLine("URL: " + WS.WS_Url); WS.WS_Action = "http://server.referencias.webservice.cpagos"; WS.ClearWS(); WS.WS_Params = strParametros; Console.WriteLine("Parametros Encryptados: " + WS.WS_Params); WS.WS_nbParams = "in0"; WS.WS_Method = "getReporte"; WS.MITWebServices(WS.WS_Params, WS.WS_nbParams, WS.WS_Method); Console.WriteLine("Respuesta " + WS.WS_Response); WS.WS_Response = Utils.GetDataXML(WS.WS_Response, "ns1:out"); Console.WriteLine("Respuesta sin basura" + WS.WS_Response); WS.WS_Response = EncryptC.DecryptTripleDES(WS.WS_Response, KTGAPPWEB); return(WS.WS_Response); }
//'Funciones implementadas para el nuevo flujo 3Gate (21-12-2009) public void sndTGGetEmpresas(string Bs_Company, string Bs_Branch, string Bs_User, string Bs_Pwd) { try { string strXml = string.Empty; dbgClearDLL(); strXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; strXml += "<REQ3GATE>"; strXml += "<opcion>empconv</opcion>"; strXml += "<id_company>" + Bs_Company + "</id_company>"; strXml += "<id_branch>" + Bs_Branch + "</id_branch>"; strXml += "<user>" + Bs_User + "</user>"; strXml += "<pwd>" + Bs_Pwd + "</pwd>"; strXml += "</REQ3GATE>"; strXml = EncryptC.EncryptTripleDES(strXml, KTGAPPWEB); WS.WS_Url = TGURL + "/pgs/services/getReferencias"; WS.WS_Action = "http://server.referencias.webservice.cpagos"; WS.ClearWS(); WS.WS_Params = strXml; WS.WS_nbParams = "in0"; WS.WS_Method = "getInfoEmpresas"; WS.MITWebServices(WS.WS_Params, WS.WS_nbParams, WS.WS_Method); WS.WS_Response = EncryptC.DecryptTripleDES(WS.WS_Response, KTGAPPWEB); setRspTGXML(WS.WS_Response); } catch { } }
public void snd3GateInsertReference(string Bs_User, string Bs_Pwd, string Bs_Company, string Tx_Reference, string Tx_OptionalReference, string Tx_Amount, string Tx_Date) { dbgClearDLL(); WS.WS_Url = TGURL + "/pgs/services/insertreferencias"; WS.WS_Action = "http://server.insertreferencias.webservice.tgate.cpagos"; WS.ClearWS(); WS.WS_Params = EncryptC.EncryptTripleDES(Bs_User, KTGAPPWEB) + "," + EncryptC.EncryptTripleDES(Bs_Pwd, KTGAPPWEB) + "," + Bs_Company + "," + EncryptC.EncryptTripleDES(Tx_Reference, KTGAPPWEB) + "," + Tx_OptionalReference + "," + Tx_Amount + "," + Tx_Date; WS.WS_nbParams = "in0,in1,in2,in3,in4,in5,in6"; WS.WS_Method = "insert"; WS.MITWebServices(WS.WS_Params, WS.WS_nbParams, WS.WS_Method); setRspTGXML(WS.WS_Response); }
public void snd3GateSmartReference(string Bs_User, string Bs_Pwd, string Bs_Company, string Bs_Branch, string Tx_Reference, string Tx_Originadora, string Tx_Amount = "") { try { string strXml = string.Empty; dbgClearDLL(); strXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; strXml += "<REQ3GATE>"; strXml += "<opcion>consultareferenciasmart</opcion>"; strXml += "<id_company>" + Bs_Company + "</id_company>"; strXml += "<id_branch>" + Bs_Branch + "</id_branch>"; strXml += "<user>" + Bs_User + "</user>"; strXml += "<pwd>" + Bs_Pwd + "</pwd>"; strXml += "<referencia>" + Tx_Reference + "</referencia>"; strXml += "<originadora>" + Tx_Originadora + "</originadora>"; //'Se agrega para enviar el monto if (!vacio(Tx_Amount)) { //strXml = strXml + "<importe>" + Format(Tx_Amount, "##########.00") + "</importe>"; } strXml += "</REQ3GATE>"; strXml = EncryptC.EncryptTripleDES(strXml, KTGAPPWEB); WS.WS_Url = TGURL + "/pgs/services/getReferencias"; WS.WS_Action = "http://server.referencias.webservice.cpagos";// 'http://server.referencias.webservice.cpagos WS.ClearWS(); WS.WS_Params = strXml; WS.WS_nbParams = "in0"; WS.WS_Method = "getReferencias"; WS.MITWebServices(WS.WS_Params, WS.WS_nbParams, WS.WS_Method); WS.WS_Response = EncryptC.DecryptTripleDES(WS.WS_Response, KTGAPPWEB); setRspTGXML(WS.WS_Response); //'Aqui parcear XML de Respuesta } catch { } }
public void sndTGGetRecibo(string Bs_User, string Bs_Pwd, string Bs_Company, string Bs_Branch, string TG_CdOriginante, string TG_Referencia, string TG_NuOperacion) { try { string strXml = string.Empty; dbgClearDLL(); strXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; strXml += "<REQGETRECIBO>"; strXml += "<id_company>" + Bs_Company + "</id_company>"; strXml += "<id_branch>" + Bs_Branch + "</id_branch>"; strXml += "<user>" + Bs_User + "</user>"; strXml += "<pwd>" + Bs_Pwd + "</pwd>"; strXml += "<cd_originante>" + TG_CdOriginante + "</cd_originante>"; strXml += "<referencia>" + TG_Referencia + "</referencia>"; strXml += "<no_operacion>" + TG_NuOperacion + "</no_operacion>"; strXml += "</REQGETRECIBO>"; strXml = EncryptC.EncryptTripleDES(strXml, KTGAPPWEB); WS.WS_Url = TGURL + "/pgs/services/getReferencias"; WS.WS_Action = "http://server.referencias.webservice.cpagos"; // 'http://server.referencias.webservice.cpagos WS.ClearWS(); WS.WS_Params = strXml; WS.WS_nbParams = "in0"; WS.WS_Method = "getRecibo"; WS.MITWebServices(WS.WS_Params, WS.WS_nbParams, WS.WS_Method); WS.WS_Response = EncryptC.DecryptTripleDES(WS.WS_Response, KTGAPPWEB); setRspTGXML(WS.WS_Response); setRspTGRecibo(Utils.GetDataXML(TGXML, "recibo")); } catch { dbgClearDLL(); } }
public void snd3GateRefAmount(string Bs_User, string Bs_Pwd, string Bs_Company, string Bs_Branch, string Tx_Reference, string Tx_Amount, string Tg_CdOriginadora, string Tg_CdConvenio) { try { string strXml = string.Empty; dbgClearDLL(); strXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; strXml += "<REQ3GATE>"; strXml += "<opcion>consultareferencia</opcion>"; strXml += "<id_company>" + Bs_Company + "</id_company>"; strXml += "<id_branch>" + Bs_Branch + "</id_branch>"; strXml += "<user>" + Bs_User + "</user>"; strXml += "<pwd>" + Bs_Pwd + "</pwd>"; strXml += "<referencia>" + Tx_Reference + "</referencia>"; strXml += "<importe>" + Tx_Amount + "</importe>"; strXml += "<cd_originadora>" + Tg_CdOriginadora + "</cd_originadora>"; strXml += "<cd_convenio>" + Tg_CdConvenio + "</cd_convenio>"; strXml += "<tipocadena>" + getTipoCadena() + "</tipocadena>"; strXml += "</REQ3GATE>"; strXml = EncryptC.EncryptTripleDES(strXml, KTGAPPWEB); WS.WS_Url = TGURL + "/pgs/services/getReferencias"; //'WS.WS_Url = "http://172.20.25.28:8080/obtenReferencias/services/getReferencias"; WS.WS_Action = "http://server.referencias.webservice.cpagos"; //'http://server.referencias.webservice.cpagos WS.ClearWS(); WS.WS_Params = strXml; WS.WS_nbParams = "in0"; WS.WS_Method = "getReferencias"; WS.MITWebServices(WS.WS_Params, WS.WS_nbParams, WS.WS_Method); WS.WS_Response = EncryptC.DecryptTripleDES(WS.WS_Response, KTGAPPWEB); setRspTGXML(WS.WS_Response); } catch { } }