【发布时间】:2013-04-01 13:24:25
【问题描述】:
我必须收到来自 interfax API 的“回电”。当 interfax 上的用户(拥有帐户)收到传真时,它会在必须能够接收 Http Post 请求的指定 URL 上向帐户持有人回叫。 指南在这里Accepting incoming fax notifications by callback。
我创建了一个控制器和动作“索引”作为
public string Index()
{
try
{
Ifax ifax = new Fax();
ifax.UserId = Convert.ToString(Request.QueryString["userId"]);
ifax.Id = Convert.ToInt32(Request.QueryString["id"]);
---
---
ifax.Save()
}
}
catch(Exception ex)
{
//handle exception
}
//Just saving to db 'true' or 'false', to know if callback receive.
//SaveFlag();
}
当我在我的 interfax 帐户中收到传真时,我会在我的网络服务器上收到回电。 但问题是我没有得到数据。我得到每个变量为空或为空。 我是否使用正确的方式从任何客户端 api 接收 http post 请求?
【问题讨论】:
标签: c# api asp.net-mvc-4 fax interfax