发送XML字符串作为响应 [英] Send XML String as Response

查看:126
本文介绍了发送XML字符串作为响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到来自第三方的应用程序(不同领域),以我的ASP应用程序,我的要求。我处理请求,并在我的应用程序在做业务的一部分,作为确认我需要发送XML字符串作为响应同一页,其中张贴的要求我的应用程序。我成功地用下面的code从检索请求中输入

I am getting my Request from a third party application(different domain) to my ASP application. I am handling the request and doing the business part in my application and as a acknowledgement I need to send XML string as Response to the same Page which POSTED the request to my Application. I was successful in retrieving the input from Request using the following code

  NameValueCollection postPageCollection = Request.Form;
  foreach (string name in postPageCollection.AllKeys)
    {
        ... = postPageCollection[name]);
    }

但我不知道如何随着XML字符串返回响应到站点(不同的域)?

But i am not sure how to send back the response along with XML String to the site(different domain)?

编辑:如何从POST发生的地点的网址

How to get the URL from where the POST happened.

推荐答案

斜面你只需要使用下面的code:

Cant you just use the following code:

Request.UrlReferrer.ToString();

这篇关于发送XML字符串作为响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆