PDA

View Full Version : سوال: مشکل در پردازش اطلاعات برگشتی از سیستم بانک سامان



merlin_vista
سه شنبه 15 دی 1388, 15:38 عصر
سلام خدمت همه دوستان :لبخندساده:

در یک سیستم پرداخت آنلاین که طراحی کردم به خطا

"The remote name could not be resolved : 'acquirer.sb24.com'برخورد کردم . ( تصویر خطا ضمیمه شده است )
ازمتن خطا مشخص است که نمیتونه به وب سرویس متصل بشه . ولی دلیل این را نمیدونم .

کد های صفحه نمایش اطلاعات :

ResNum = Request.Form.Get("ResNum");
RefNum = Request.Form.Get("RefNum");
State = Request.Form.Get("State");
if (ResNum == null || RefNum == null || State == null)
{
this.lbl_msg.Text = "مشكل در تراكنش به وجود آمده است ";
this.lbl_msg.ForeColor = System.Drawing.Color.Red;
this.Image1.ImageUrl = "~/images/PAYPIC/error.jpg";
}
else
{
RegLevel rg = new RegLevel();
if (State == "OK" && rg.CheckRes(ResNum))
{
paySaman pay = new paySaman();
amount = pay.Verifytransaction(RefNum, ConfigurationManager.AppSettings["MID_RegLevel"].ToString());
if (amount > 0)
{
rg.Insert_2(ResNum, RefNum, amount);
display_information();
this.lbl_msg.ForeColor = System.Drawing.Color.Green;
this.lbl_msg.Text = "پرداخت شما با موفقيت به پايان رسيد ، از پرداخت شما سپاسگزاريم";
this.Image1.ImageUrl = "~/images/PAYPIC/ok.jpg";

}
else
{
string errortxt = pay.CheckError(Convert.ToInt32(amount));
this.lbl_msg.ForeColor = System.Drawing.Color.Red;
this.lbl_msg.Text = errortxt;
rg.LogError(ResNum, errortxt);
this.Image1.ImageUrl = "~/images/PAYPIC/error.jpg";


}
}
else if (State != "OK")
{
this.lbl_msg.ForeColor = System.Drawing.Color.Red;
this.lbl_msg.Text = "Number Error IS : " + State.ToString();
this.Image1.ImageUrl = "~/images/PAYPIC/error.jpg";
rg.LogError(ResNum, State.ToString());
}


}متد Verifytransaction


public double Verifytransaction(string ResNum, string Mid)
{
ReferencePayment Pay = new ReferencePayment();
return Pay.verifyTransaction(ResNum, Mid);
}تنظیمات آدرس وب سرویس در Web.config

<add key="com.sb24.acquirer.ReferencePayment" value="https://acquirer.sb24.com/ref-payment/ws/ReferencePayment"/>از دوستانی که تجربه ای در این زمینه دارند ممنون میشم کمک ام کنند . :قلب:

ennovation
سه شنبه 15 دی 1388, 16:53 عصر
Check if you have to use a proxy server to access external URLs. In that case, add the following to web.config

<system.net>
<defaultProxy>
<proxy usessystemdefault="False" proxyaddress="http://your-proxy-name.domain.com:port-number-if-any" bypassonlocal="True" autoDetect="False" />
</defaultProxy>
</system.net>