By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

Retrieving values from HTTP POST

P: n/a
I am wanting to capture the XML posted by an InfoPath form with .NET, but I
cannot figure out how to capture the XML stream sent back by the InfoPath
form. With Classic ASP, I could just create an MSXML object then load the XML
with a simple objXML.Load(Request). This would give me the XML stream, which
I could then manipulate.

However, using System.Xml, this is not possible - not that I have found,
anyway. The InfoPath documentation simply states that "InfoPath sends the
form as XML data in the body of an HTTP POST request to the specified URL".
But how do I access that data? Any help would be greatly appreciated.
Nov 19 '05 #1
Share this Question
Share on Google+
13 Replies


P: n/a
"=?Utf-8?B?UkhQVA==?=" <RH**@online.nospam> wrote in
news:29**********************************@microsof t.com:
However, using System.Xml, this is not possible - not that I have
found, anyway. The InfoPath documentation simply states that "InfoPath
sends the form as XML data in the body of an HTTP POST request to the
specified URL". But how do I access that data? Any help would be
greatly appreciated.


Check the body... is it a hidden form field?

If it is, you can use Request.Form("FormName") to retrieve the value of the
XML.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2

P: n/a
Hi,

In ASP.Net, you can use the System.XML.XmlDocument object for working on the
xml instead of the MSXML.

code snippet for loading the xml from the request:

System.XML.XmlDocument xDoc = new System.XML.XmlDocument();
xDoc.Load(Request.InputStream);
//Now, manupulate the xDoc

--
Saravanan K V
"RHPT" wrote:
I am wanting to capture the XML posted by an InfoPath form with .NET, but I
cannot figure out how to capture the XML stream sent back by the InfoPath
form. With Classic ASP, I could just create an MSXML object then load the XML
with a simple objXML.Load(Request). This would give me the XML stream, which
I could then manipulate.

However, using System.Xml, this is not possible - not that I have found,
anyway. The InfoPath documentation simply states that "InfoPath sends the
form as XML data in the body of an HTTP POST request to the specified URL".
But how do I access that data? Any help would be greatly appreciated.

Nov 19 '05 #3

P: n/a
Running the code objXMLDoc.Load(Request.InputStream) returns the
error: convert from 'System.IO.Stream' to 'string'. I've added
'.ToString()', but that results in just the text string
'System.Web.HttpInputStream', and not the actual XML.

On Sun, 14 Aug 2005 07:15:03 -0700, "Saravanan K V"
<Sa*********@discussions.microsoft.com> wrote:

:Hi,
:
:In ASP.Net, you can use the System.XML.XmlDocument object for working on the
:xml instead of the MSXML.
:
:code snippet for loading the xml from the request:
:
:System.XML.XmlDocument xDoc = new System.XML.XmlDocument();
:xDoc.Load(Request.InputStream);
://Now, manupulate the xDoc

Nov 19 '05 #4

P: n/a
Hi John,

What's the "objXMLDoc" in your code? Is it the MSXML's DOMDocument or the
..NET's
System.Xml.XmlDocument? Since we're not supported to use the COM msxml
component in .NET application, we should use the System.Xml.XmlDocument to
capture xml data. Here is the test code snippet I use in my ASP.NET web
page:

private void Page_Load(object sender, System.EventArgs e)
{
if(Request.ContentType == "text/xml")
{
XmlDocument doc = new XmlDocument();
doc.Load(Request.InputStream);

Response.Write(HttpUtility.HtmlEncode(doc.OuterXml ));

Response.End();
}
}

Hope helps. Thanks,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| NNTP-Posting-Date: Mon, 15 Aug 2005 11:31:02 -0500
| From: John Smith <3r*********@sneakemail.com>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Retrieving values from HTTP POST
| Date: Mon, 15 Aug 2005 11:31:02 -0500
| Message-ID: <cp********************************@4ax.com>
| References: <29**********************************@microsoft.co m>
<1C**********************************@microsoft.co m>
| X-Newsreader: Forte Agent 2.0/32.652
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 21
| NNTP-Posting-Host: 69.137.71.225
| X-Trace:
sv3-adqGpeoGmhDDgmTv1+mHE3QzJjsbKHGA0YanckV+sUpOZ2sdLt 8OmviM9pfiRjuOXSUYdtFK
tZlNwD9!NO+LHmQaeH5ZCx83oN2WbvMdjnUEI1wWcGsNnz8Zkt AlQKGvWxeegGuRNXSHpDaClBSg
lM/BzNpi!LF507AX/gtlkW6p07w==
| X-Complaints-To: ab***@comcast.net
| X-DMCA-Complaints-To: dm**@comcast.net
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!tornad o.fastwebnet.it!tiscali!ne
wsfeed1.ip.tiscali.net!news.maxwell.syr.edu!border 1.nntp.dca.giganews.com!lo
cal01.nntp.dca.giganews.com!nntp.comcast.com!news. comcast.com.POSTED!not-for
-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118025
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Running the code objXMLDoc.Load(Request.InputStream) returns the
| error: convert from 'System.IO.Stream' to 'string'. I've added
| '.ToString()', but that results in just the text string
| 'System.Web.HttpInputStream', and not the actual XML.
|
|
|
| On Sun, 14 Aug 2005 07:15:03 -0700, "Saravanan K V"
| <Sa*********@discussions.microsoft.com> wrote:
|
| :Hi,
| :
| :In ASP.Net, you can use the System.XML.XmlDocument object for working on
the
| :xml instead of the MSXML.
| :
| :code snippet for loading the xml from the request:
| :
| :System.XML.XmlDocument xDoc = new System.XML.XmlDocument();
| :xDoc.Load(Request.InputStream);
| ://Now, manupulate the xDoc
|
|

Nov 19 '05 #5

P: n/a
Lucas Tam wrote:
"=?Utf-8?B?UkhQVA==?=" <RH**@online.nospam> wrote in
news:29**********************************@microsof t.com:
However, using System.Xml, this is not possible - not that I have
found, anyway. The InfoPath documentation simply states that
"InfoPath sends the form as XML data in the body of an HTTP POST
request to the specified URL". But how do I access that data? Any
help would be greatly appreciated.


Check the body... is it a hidden form field?

If it is, you can use Request.Form("FormName") to retrieve the value
of the XML.


I guess it's a straight "as is" POST. In this case, you can read the
XML from Request.InputStream.

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #6

P: n/a
I think I found my issue. The XML is coming from an InfoPath form, and
the stream has headers (e.g., <? xml version 1.0 > and some other
MS-related tags at the very top). I think this is messing up the Load
call.


On Tue, 16 Aug 2005 02:04:18 GMT, st*****@online.microsoft.com (Steven
Cheng[MSFT]) wrote:

:Hi John,
:
:What's the "objXMLDoc" in your code? Is it the MSXML's DOMDocument or the
:.NET's
:System.Xml.XmlDocument? Since we're not supported to use the COM msxml
:component in .NET application, we should use the System.Xml.XmlDocument to
:capture xml data. Here is the test code snippet I use in my ASP.NET web
:page:
:
:private void Page_Load(object sender, System.EventArgs e)
:{
: if(Request.ContentType == "text/xml")
: {
: XmlDocument doc = new XmlDocument();
: doc.Load(Request.InputStream);
:
: Response.Write(HttpUtility.HtmlEncode(doc.OuterXml ));
:
: Response.End();
: }
:}
:
:Hope helps. Thanks,
:
:Regards,
:
:Steven Cheng
:Microsoft Online Support
:
:Get Secure! www.microsoft.com/security
:(This posting is provided "AS IS", with no warranties, and confers no
:rights.)
:
:
:
:
:
:--------------------
:| NNTP-Posting-Date: Mon, 15 Aug 2005 11:31:02 -0500
:| From: John Smith <3r*********@sneakemail.com>
:| Newsgroups: microsoft.public.dotnet.framework.aspnet
:| Subject: Re: Retrieving values from HTTP POST
:| Date: Mon, 15 Aug 2005 11:31:02 -0500
:| Message-ID: <cp********************************@4ax.com>
:| References: <29**********************************@microsoft.co m>
:<1C**********************************@microsoft.c om>
:| X-Newsreader: Forte Agent 2.0/32.652
:| MIME-Version: 1.0
:| Content-Type: text/plain; charset=us-ascii
:| Content-Transfer-Encoding: 7bit
:| Lines: 21
:| NNTP-Posting-Host: 69.137.71.225
:| X-Trace:
:sv3-adqGpeoGmhDDgmTv1+mHE3QzJjsbKHGA0YanckV+sUpOZ2sdLt 8OmviM9pfiRjuOXSUYdtFK
:tZlNwD9!NO+LHmQaeH5ZCx83oN2WbvMdjnUEI1wWcGsNnz8Zk tAlQKGvWxeegGuRNXSHpDaClBSg
:lM/BzNpi!LF507AX/gtlkW6p07w==
:| X-Complaints-To: ab***@comcast.net
:| X-DMCA-Complaints-To: dm**@comcast.net
:| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
:| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
:complaint properly
:| X-Postfilter: 1.3.32
:| Path:
:TK2MSFTNGXA01.phx.gbl!TK2MSFTFEED02.phx.gbl!torna do.fastwebnet.it!tiscali!ne
:wsfeed1.ip.tiscali.net!news.maxwell.syr.edu!borde r1.nntp.dca.giganews.com!lo
:cal01.nntp.dca.giganews.com!nntp.comcast.com!news .comcast.com.POSTED!not-for
:-mail
:| Xref: TK2MSFTNGXA01.phx.gbl
:microsoft.public.dotnet.framework.aspnet:118025
:| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
:|
:| Running the code objXMLDoc.Load(Request.InputStream) returns the
:| error: convert from 'System.IO.Stream' to 'string'. I've added
:| '.ToString()', but that results in just the text string
:| 'System.Web.HttpInputStream', and not the actual XML.
:|
:|
:|
:| On Sun, 14 Aug 2005 07:15:03 -0700, "Saravanan K V"
:| <Sa*********@discussions.microsoft.com> wrote:
:|
:| :Hi,
:| :
:| :In ASP.Net, you can use the System.XML.XmlDocument object for working on
:the
:| :xml instead of the MSXML.
:| :
:| :code snippet for loading the xml from the request:
:| :
:| :System.XML.XmlDocument xDoc = new System.XML.XmlDocument();
:| :xDoc.Load(Request.InputStream);
:| ://Now, manupulate the xDoc
:|
:|

Nov 19 '05 #7

P: n/a
Here's something strange:

On default.aspx, I have a textbox that I fill with the following XML
string and then submit:

<myFields><txt_name>adsf</txt_name><gender_buttons>Male</gender_buttons><birthday>2005-08-17</birthday><spam_me>true</spam_me></myFields>

On my code behind page, I have the following code:

XmlDocument doc = new XmlDocument();
doc.LoadXml(Request.InputStream.ToString());
doc.Save("C:\\Inetpub\\wwwroot\\RX2\\test.xml");

When I debug into the code, Request.InputStream.ToString() returns
"System.Web.HttpInputStream".

I've debugged intot he code, and looked at the Request object. Nowhere
does it have the XML.

Nov 19 '05 #8

P: n/a
Hi RHPT,

You means the XML content in your request are coming from the clientside
input in a TextBox? If so, I don't think we can directly use the
Request.InputStream to load the Xml content since the whole http message's
contentType is event not pure XML. We can load XmlDocument directly from
the Request.InputStream only if the pure request message is "text/xml"
contentType. For example, we can send XML content to a remote page through
the following code:

==============
static void Post_XML()
{
string url = "http://remoteserver/app/remotepage.aspx";

HttpWebRequest webreq = WebRequest.Create(url) as HttpWebRequest;

webreq.Method = "POST";
webreq.ContentType = "text/xml";
XmlDocument doc = new XmlDocument();
doc.LoadXml(
@"<?xml version='1.0' ?>
<root>
<items>
<item id='1'>item1</item>
<item id='2'>item2</item>
<item id='3'>item3</item>
<item id='4'>item4</item>
</items>
</root>
"
);

StreamWriter sw = new StreamWriter(webreq.GetRequestStream(),
System.Text.Encoding.UTF8);
sw.Write(doc.OuterXml);
sw.Close();

HttpWebResponse webrep = webreq.GetResponse() as HttpWebResponse;
StreamReader sr = new
StreamReader(webrep.GetResponseStream(),System.Tex t.Encoding.UTF8);

Console.WriteLine(sr.ReadToEnd());
sr.Close();
webrep.Close();

}
===========================

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| NNTP-Posting-Date: Thu, 18 Aug 2005 20:35:01 -0500
| From: RHPT <RH**@online.nospam>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Retrieving values from HTTP POST
| Date: Thu, 18 Aug 2005 20:34:57 -0500
| Message-ID: <ro********************************@4ax.com>
| References: <29**********************************@microsoft.co m>
<1C**********************************@microsoft.co m>
<cp********************************@4ax.com>
<Eb**************@TK2MSFTNGXA01.phx.gbl>
| X-Newsreader: Forte Agent 2.0/32.652
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 21
| NNTP-Posting-Host: 69.137.71.225
| X-Trace:
sv3-tqkcQ2XW4EE9xw18jiJjXuANveHVgbfoc05N5egU8S4IaI6IrV yNbV/YEaLlsoyLoC+VJvUw
0DGWkFd!QIWeCmsrkJS0gql7mj+eeXKYNjlQyKqWTL1VrYRwVe Yo45DLITxDL3JenJbf86cv9ddq
MSJcW+yb!NbDf2F9l68qFqzNhrw==
| X-Complaints-To: ab***@comcast.net
| X-DMCA-Complaints-To: dm**@comcast.net
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!border1.nntp.dca.gigan
ews.com!local01.nntp.dca.giganews.com!nntp.comcast .com!news.comcast.com.POST
ED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:119021
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Here's something strange:
|
| On default.aspx, I have a textbox that I fill with the following XML
| string and then submit:
|
|
<myFields><txt_name>adsf</txt_name><gender_buttons>Male</gender_buttons><bir
thday>2005-08-17</birthday><spam_me>true</spam_me></myFields>
|
| On my code behind page, I have the following code:
|
| XmlDocument doc = new XmlDocument();
| doc.LoadXml(Request.InputStream.ToString());
| doc.Save("C:\\Inetpub\\wwwroot\\RX2\\test.xml");
|
| When I debug into the code, Request.InputStream.ToString() returns
| "System.Web.HttpInputStream".
|
| I've debugged intot he code, and looked at the Request object. Nowhere
| does it have the XML.
|
|
|
|

Nov 19 '05 #9

P: n/a
Hi RHPT,

Have you got any progress on this issue or does the suggestion in my
previous messages helps. If there are anything else we can help, please
feel free to pos there. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 47208013
| References: <29**********************************@microsoft.co m>
<1C**********************************@microsoft.co m>
<cp********************************@4ax.com>
<Eb**************@TK2MSFTNGXA01.phx.gbl>
<ro********************************@4ax.com>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Fri, 19 Aug 2005 02:24:34 GMT
| Subject: Re: Retrieving values from HTTP POST
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <yn*************@TK2MSFTNGXA01.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 97
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:119027
| NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
|
| Hi RHPT,
|
| You means the XML content in your request are coming from the clientside
| input in a TextBox? If so, I don't think we can directly use the
| Request.InputStream to load the Xml content since the whole http
message's
| contentType is event not pure XML. We can load XmlDocument directly from
| the Request.InputStream only if the pure request message is "text/xml"
| contentType. For example, we can send XML content to a remote page
through
| the following code:
|
| ==============
| static void Post_XML()
| {
| string url = "http://remoteserver/app/remotepage.aspx";
|
| HttpWebRequest webreq = WebRequest.Create(url) as HttpWebRequest;
|
| webreq.Method = "POST";
| webreq.ContentType = "text/xml";
|
|
| XmlDocument doc = new XmlDocument();
| doc.LoadXml(
| @"<?xml version='1.0' ?>
| <root>
| <items>
| <item id='1'>item1</item>
| <item id='2'>item2</item>
| <item id='3'>item3</item>
| <item id='4'>item4</item>
| </items>
| </root>
| "
| );
|
| StreamWriter sw = new StreamWriter(webreq.GetRequestStream(),
| System.Text.Encoding.UTF8);
| sw.Write(doc.OuterXml);
| sw.Close();
|
| HttpWebResponse webrep = webreq.GetResponse() as HttpWebResponse;
| StreamReader sr = new
| StreamReader(webrep.GetResponseStream(),System.Tex t.Encoding.UTF8);
|
| Console.WriteLine(sr.ReadToEnd());
| sr.Close();
| webrep.Close();
|
| }
| ===========================
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
| --------------------
| | NNTP-Posting-Date: Thu, 18 Aug 2005 20:35:01 -0500
| | From: RHPT <RH**@online.nospam>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | Subject: Re: Retrieving values from HTTP POST
| | Date: Thu, 18 Aug 2005 20:34:57 -0500
| | Message-ID: <ro********************************@4ax.com>
| | References: <29**********************************@microsoft.co m>
| <1C**********************************@microsoft.co m>
| <cp********************************@4ax.com>
| <Eb**************@TK2MSFTNGXA01.phx.gbl>
| | X-Newsreader: Forte Agent 2.0/32.652
| | MIME-Version: 1.0
| | Content-Type: text/plain; charset=us-ascii
| | Content-Transfer-Encoding: 7bit
| | Lines: 21
| | NNTP-Posting-Host: 69.137.71.225
| | X-Trace:
|
sv3-tqkcQ2XW4EE9xw18jiJjXuANveHVgbfoc05N5egU8S4IaI6IrV yNbV/YEaLlsoyLoC+VJvUw
|
0DGWkFd!QIWeCmsrkJS0gql7mj+eeXKYNjlQyKqWTL1VrYRwVe Yo45DLITxDL3JenJbf86cv9ddq
| MSJcW+yb!NbDf2F9l68qFqzNhrw==
| | X-Complaints-To: ab***@comcast.net
| | X-DMCA-Complaints-To: dm**@comcast.net
| | X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| | X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| complaint properly
| | X-Postfilter: 1.3.32
| | Path:
|
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
|
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!border1.nntp.dca.gigan
|
ews.com!local01.nntp.dca.giganews.com!nntp.comcast .com!news.comcast.com.POST
| ED!not-for-mail
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:119021
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Here's something strange:
| |
| | On default.aspx, I have a textbox that I fill with the following XML
| | string and then submit:
| |
| |
|
<myFields><txt_name>adsf</txt_name><gender_buttons>Male</gender_buttons><bir
| thday>2005-08-17</birthday><spam_me>true</spam_me></myFields>
| |
| | On my code behind page, I have the following code:
| |
| | XmlDocument doc = new XmlDocument();
| | doc.LoadXml(Request.InputStream.ToString());
| | doc.Save("C:\\Inetpub\\wwwroot\\RX2\\test.xml");
| |
| | When I debug into the code, Request.InputStream.ToString() returns
| | "System.Web.HttpInputStream".
| |
| | I've debugged intot he code, and looked at the Request object. Nowhere
| | does it have the XML.
| |
| |
| |
| |
|
|

Nov 19 '05 #10

P: n/a
Hi Steven,

No, no progress here. Your examples work fine, but what I am trying to
do - as I mentioned in my inital post - is capture information
submitted via InfoPath. For whatever reason, trying to retrieve the
XML stream that InfoPath sends to the webserver is proving to be
impossible with ASP.NET.

I can capture the XML sent by InfoPath with ASP 3.0 and MSXML, but I
keep getting errors when I attempt it with ASP.NET.

RHPT
On Tue, 23 Aug 2005 11:28:07 GMT, st*****@online.microsoft.com (Steven
Cheng[MSFT]) wrote:

:Hi RHPT,
:
:Have you got any progress on this issue or does the suggestion in my
:previous messages helps. If there are anything else we can help, please
:feel free to pos there. Thanks,
:
:Steven Cheng
:Microsoft Online Support
:

Nov 19 '05 #11

P: n/a
Hi RHPT,

Don't worry, I think the problem is still related to the underlying content
of the request INFOPATH send out. Have you installed any HTTP or TCP trace
utility tools on the server(hosting the asp.net page) such as Trace
Utility(in soap toolkit 3.0) or TcpTrace ? We can use them to capture the
request's content to see what's the actual data format the infopath send
out so as to use proper parsing code in asp.net page.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| NNTP-Posting-Date: Wed, 24 Aug 2005 22:20:02 -0500
| From: RHPT <RH**@online.nospam>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Retrieving values from HTTP POST
| Date: Wed, 24 Aug 2005 22:20:01 -0500
| Message-ID: <ov********************************@4ax.com>
| References: <29**********************************@microsoft.co m>
<1C**********************************@microsoft.co m>
<cp********************************@4ax.com>
<Eb**************@TK2MSFTNGXA01.phx.gbl>
<ro********************************@4ax.com>
<yn*************@TK2MSFTNGXA01.phx.gbl>
<GD**************@TK2MSFTNGXA01.phx.gbl>
| X-Newsreader: Forte Agent 2.0/32.652
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 29
| NNTP-Posting-Host: 69.137.71.225
| X-Trace:
sv3-JZGIzgrBE2c676Ym99397fEePqTgdKebNx82nPwf4GZQTw92Fu tNwNxE4eTc9+0iyOVegaeg
UImRZFw!7AZeAwCFtHF9bkdLv7I9ylh7GbJiU+7xvidwm030Qn KtYixQOylmpiBw0T12mADdtbVF
8YmJDY8E!HNFZJxy5n+Gaqlflpw==
| X-Complaints-To: ab***@comcast.net
| X-DMCA-Complaints-To: dm**@comcast.net
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!border1.nntp.dca.gigan
ews.com!local01.nntp.dca.giganews.com!nntp.comcast .com!news.comcast.com.POST
ED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:120137
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
|
| No, no progress here. Your examples work fine, but what I am trying to
| do - as I mentioned in my inital post - is capture information
| submitted via InfoPath. For whatever reason, trying to retrieve the
| XML stream that InfoPath sends to the webserver is proving to be
| impossible with ASP.NET.
|
| I can capture the XML sent by InfoPath with ASP 3.0 and MSXML, but I
| keep getting errors when I attempt it with ASP.NET.
|
|
|
| RHPT
|
|
| On Tue, 23 Aug 2005 11:28:07 GMT, st*****@online.microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| :Hi RHPT,
| :
| :Have you got any progress on this issue or does the suggestion in my
| :previous messages helps. If there are anything else we can help, please
| :feel free to pos there. Thanks,
| :
| :Steven Cheng
| :Microsoft Online Support
| :
|
|

Nov 19 '05 #12

P: n/a
Hi Steven,

I will definitely try those tools you mentioned. However, I am
currently stuck on another project, and have had to put my InfoPath
problems to the side. I will let you know how it goes when I get to it
again.

Thanks for all your help.
RHPT

On Thu, 25 Aug 2005 09:01:59 GMT, st*****@online.microsoft.com (Steven
Cheng[MSFT]) wrote:

:Hi RHPT,
:
:Don't worry, I think the problem is still related to the underlying content
:of the request INFOPATH send out. Have you installed any HTTP or TCP trace
:utility tools on the server(hosting the asp.net page) such as Trace
:Utility(in soap toolkit 3.0) or TcpTrace ? We can use them to capture the
:request's content to see what's the actual data format the infopath send
:out so as to use proper parsing code in asp.net page.
:
:Thanks,
:
:Steven Cheng
:Microsoft Online Support
:
:Get Secure! www.microsoft.com/security
:(This posting is provided "AS IS", with no warranties, and confers no
:rights.)
:--------------------
:| NNTP-Posting-Date: Wed, 24 Aug 2005 22:20:02 -0500
:| From: RHPT <RH**@online.nospam>
:| Newsgroups: microsoft.public.dotnet.framework.aspnet
:| Subject: Re: Retrieving values from HTTP POST
:| Date: Wed, 24 Aug 2005 22:20:01 -0500
:| Message-ID: <ov********************************@4ax.com>
:| References: <29**********************************@microsoft.co m>
:<1C**********************************@microsoft.c om>
:<cp********************************@4ax.com>
:<Eb**************@TK2MSFTNGXA01.phx.gbl>
:<ro********************************@4ax.com>
:<yn*************@TK2MSFTNGXA01.phx.gbl>
:<GD**************@TK2MSFTNGXA01.phx.gbl>
:| X-Newsreader: Forte Agent 2.0/32.652
:| MIME-Version: 1.0
:| Content-Type: text/plain; charset=us-ascii
:| Content-Transfer-Encoding: 7bit
:| Lines: 29
:| NNTP-Posting-Host: 69.137.71.225
:| X-Trace:
:sv3-JZGIzgrBE2c676Ym99397fEePqTgdKebNx82nPwf4GZQTw92Fu tNwNxE4eTc9+0iyOVegaeg
:UImRZFw!7AZeAwCFtHF9bkdLv7I9ylh7GbJiU+7xvidwm030Q nKtYixQOylmpiBw0T12mADdtbVF
:8YmJDY8E!HNFZJxy5n+Gaqlflpw==
:| X-Complaints-To: ab***@comcast.net
:| X-DMCA-Complaints-To: dm**@comcast.net
:| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
:| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
:complaint properly
:| X-Postfilter: 1.3.32
:| Path:
:TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfe ed00.sul.t-online.de!t-onli
:ne.de!border2.nntp.dca.giganews.com!nntp.giganews .com!border1.nntp.dca.gigan
:ews.com!local01.nntp.dca.giganews.com!nntp.comcas t.com!news.comcast.com.POST
:ED!not-for-mail
:| Xref: TK2MSFTNGXA01.phx.gbl
:microsoft.public.dotnet.framework.aspnet:120137
:| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
:|
:| Hi Steven,
:|
:| No, no progress here. Your examples work fine, but what I am trying to
:| do - as I mentioned in my inital post - is capture information
:| submitted via InfoPath. For whatever reason, trying to retrieve the
:| XML stream that InfoPath sends to the webserver is proving to be
:| impossible with ASP.NET.
:|
:| I can capture the XML sent by InfoPath with ASP 3.0 and MSXML, but I
:| keep getting errors when I attempt it with ASP.NET.
:|
:|
:|
:| RHPT
:|
:|
:| On Tue, 23 Aug 2005 11:28:07 GMT, st*****@online.microsoft.com (Steven
:| Cheng[MSFT]) wrote:
:|
:| :Hi RHPT,
:| :
:| :Have you got any progress on this issue or does the suggestion in my
:| :previous messages helps. If there are anything else we can help, please
:| :feel free to pos there. Thanks,
:| :
:| :Steven Cheng
:| :Microsoft Online Support
:| :
:|
:|

Nov 19 '05 #13

P: n/a
No problem RHPT,

Please feel free to post here when you need our assistance.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| NNTP-Posting-Date: Thu, 25 Aug 2005 21:44:22 -0500
| From: RHPT <RH**@online.nospam>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: Retrieving values from HTTP POST
| Date: Thu, 25 Aug 2005 21:44:22 -0500
| Message-ID: <ae********************************@4ax.com>
| References: <29**********************************@microsoft.co m>
<1C**********************************@microsoft.co m>
<cp********************************@4ax.com>
<Eb**************@TK2MSFTNGXA01.phx.gbl>
<ro********************************@4ax.com>
<yn*************@TK2MSFTNGXA01.phx.gbl>
<GD**************@TK2MSFTNGXA01.phx.gbl>
<ov********************************@4ax.com>
<QW**************@TK2MSFTNGXA01.phx.gbl>
| X-Newsreader: Forte Agent 2.0/32.652
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 102
| NNTP-Posting-Host: 69.137.71.225
| X-Trace:
sv3-dq3WVPknEKX+Jhh7JTSeR7mAR7/x+0nTtOkILSwekFSehAjOfMEe67S8lqLVtMH1WNxMIFUr
dnXJ1Qh!bfk6SHoMSt6ua6pXWucJ8YhZ7Ef3XgmuZrme2ogX7N +2UdukfGYMqH9SeVyy29o+j6t9
JEItVUx5!hHe5Ox43QdPD4nrWfw==
| X-Complaints-To: ab***@comcast.net
| X-DMCA-Complaints-To: dm**@comcast.net
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!border1.nntp.dca.gigan
ews.com!local01.nntp.dca.giganews.com!nntp.comcast .com!news.comcast.com.POST
ED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:120412
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
|
| I will definitely try those tools you mentioned. However, I am
| currently stuck on another project, and have had to put my InfoPath
| problems to the side. I will let you know how it goes when I get to it
| again.
|
| Thanks for all your help.
|
|
| RHPT
|
| On Thu, 25 Aug 2005 09:01:59 GMT, st*****@online.microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| :Hi RHPT,
| :
| :Don't worry, I think the problem is still related to the underlying
content
| :of the request INFOPATH send out. Have you installed any HTTP or TCP
trace
| :utility tools on the server(hosting the asp.net page) such as Trace
| :Utility(in soap toolkit 3.0) or TcpTrace ? We can use them to capture
the
| :request's content to see what's the actual data format the infopath send
| :out so as to use proper parsing code in asp.net page.
| :
| :Thanks,
| :
| :Steven Cheng
| :Microsoft Online Support
| :
| :Get Secure! www.microsoft.com/security
| :(This posting is provided "AS IS", with no warranties, and confers no
| :rights.)
| :--------------------
| :| NNTP-Posting-Date: Wed, 24 Aug 2005 22:20:02 -0500
| :| From: RHPT <RH**@online.nospam>
| :| Newsgroups: microsoft.public.dotnet.framework.aspnet
| :| Subject: Re: Retrieving values from HTTP POST
| :| Date: Wed, 24 Aug 2005 22:20:01 -0500
| :| Message-ID: <ov********************************@4ax.com>
| :| References: <29**********************************@microsoft.co m>
| :<1C**********************************@microsoft.c om>
| :<cp********************************@4ax.com>
| :<Eb**************@TK2MSFTNGXA01.phx.gbl>
| :<ro********************************@4ax.com>
| :<yn*************@TK2MSFTNGXA01.phx.gbl>
| :<GD**************@TK2MSFTNGXA01.phx.gbl>
| :| X-Newsreader: Forte Agent 2.0/32.652
| :| MIME-Version: 1.0
| :| Content-Type: text/plain; charset=us-ascii
| :| Content-Transfer-Encoding: 7bit
| :| Lines: 29
| :| NNTP-Posting-Host: 69.137.71.225
| :| X-Trace:
|
:sv3-JZGIzgrBE2c676Ym99397fEePqTgdKebNx82nPwf4GZQTw92Fu tNwNxE4eTc9+0iyOVegae
g
|
:UImRZFw!7AZeAwCFtHF9bkdLv7I9ylh7GbJiU+7xvidwm030Q nKtYixQOylmpiBw0T12mADdtbV
F
| :8YmJDY8E!HNFZJxy5n+Gaqlflpw==
| :| X-Complaints-To: ab***@comcast.net
| :| X-DMCA-Complaints-To: dm**@comcast.net
| :| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| :| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| :complaint properly
| :| X-Postfilter: 1.3.32
| :| Path:
|
:TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfe ed00.sul.t-online.de!t-onl
i
|
:ne.de!border2.nntp.dca.giganews.com!nntp.giganews .com!border1.nntp.dca.giga
n
|
:ews.com!local01.nntp.dca.giganews.com!nntp.comcas t.com!news.comcast.com.POS
T
| :ED!not-for-mail
| :| Xref: TK2MSFTNGXA01.phx.gbl
| :microsoft.public.dotnet.framework.aspnet:120137
| :| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| :|
| :| Hi Steven,
| :|
| :| No, no progress here. Your examples work fine, but what I am trying to
| :| do - as I mentioned in my inital post - is capture information
| :| submitted via InfoPath. For whatever reason, trying to retrieve the
| :| XML stream that InfoPath sends to the webserver is proving to be
| :| impossible with ASP.NET.
| :|
| :| I can capture the XML sent by InfoPath with ASP 3.0 and MSXML, but I
| :| keep getting errors when I attempt it with ASP.NET.
| :|
| :|
| :|
| :| RHPT
| :|
| :|
| :| On Tue, 23 Aug 2005 11:28:07 GMT, st*****@online.microsoft.com (Steven
| :| Cheng[MSFT]) wrote:
| :|
| :| :Hi RHPT,
| :| :
| :| :Have you got any progress on this issue or does the suggestion in my
| :| :previous messages helps. If there are anything else we can help,
please
| :| :feel free to pos there. Thanks,
| :| :
| :| :Steven Cheng
| :| :Microsoft Online Support
| :| :
| :|
| :|
|
|

Nov 19 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.