Hi,
I need to receive posted XML from a 3rd party so I've created test post page (which is the 3rd party) and obviously the receiving page which we will host.
The problem is, the XML is always null and I'm not sure if the issue is with the POST or receive code.
TEST POST CODE:
protected void btnSend_Click(object sender, EventArgs e)
{
try
{
string _url = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + "/";
_url += "WebOrderNotificationHandler.aspx";
WebRequest _request = WebRequest.Create(_url);
_request.Credentials = CredentialCache.DefaultCredentials;
((HttpWebRequest)_request).UserAgent = ".NET Framework Example Client";
_request.Method = "POST";
...
Go to the complete details ...