Hi

I'm working on a http xml post (request/response).

In my testing - I have been able to create and post xml string/stream and
send response
back.

But now I've been told that I should "code the whole xml payload string as a
single key"

I'm not sure what this means and haven't been able to find anything about
it.

Can anyone help me with this?

Thanks,
Cindy

Re: http xml post by bruce

bruce
Thu May 08 23:51:38 CDT 2008

generally this means they want a form post with one form field
containing the xml. in this case your post data is:

string postdata = "fieldname=" + HttpUtility.UrlEncode(doc.OuterXml);

note: you should set the content-type to:
application/x-www-form-urlencoded

-- bruce (sqlwork.com)


CindyH wrote:
> Hi
>
> I'm working on a http xml post (request/response).
>
> In my testing - I have been able to create and post xml string/stream and
> send response
> back.
>
> But now I've been told that I should "code the whole xml payload string as a
> single key"
>
> I'm not sure what this means and haven't been able to find anything about
> it.
>
> Can anyone help me with this?
>
> Thanks,
> Cindy
>
>

Re: http xml post by Cindy

Cindy
Fri May 09 06:26:18 CDT 2008

That makes sense - I'll check it out and get back to you on this.
Thanks a lot - I think you got me on the right road.


"bruce barker" <nospam@nospam.com> wrote in message
news:e4UqfBZsIHA.3716@TK2MSFTNGP04.phx.gbl...
> generally this means they want a form post with one form field containing
> the xml. in this case your post data is:
>
> string postdata = "fieldname=" + HttpUtility.UrlEncode(doc.OuterXml);
>
> note: you should set the content-type to:
> application/x-www-form-urlencoded
>
> -- bruce (sqlwork.com)
>
>
> CindyH wrote:
>> Hi
>>
>> I'm working on a http xml post (request/response).
>>
>> In my testing - I have been able to create and post xml string/stream and
>> send response
>> back.
>>
>> But now I've been told that I should "code the whole xml payload string
>> as a
>> single key"
>>
>> I'm not sure what this means and haven't been able to find anything about
>> it.
>>
>> Can anyone help me with this?
>>
>> Thanks,
>> Cindy
>>


Re: http xml post by CindyH

CindyH
Fri May 09 07:55:23 CDT 2008

Hi

I'm wondering how I go about reading this for sending a reponse back.

Currently, I'm using:

Stream = New System.IO.StreamReader(Page.Request.InputStream)

Reader = New System.Xml.XmlTextReader(Stream)

Do While Reader.Read()

This of course doesn't work with httputility.urlencode(doc.outerxml) as a
post

Thanks,

Cindy

"bruce barker" <nospam@nospam.com> wrote in message
news:e4UqfBZsIHA.3716@TK2MSFTNGP04.phx.gbl...
> generally this means they want a form post with one form field containing
> the xml. in this case your post data is:
>
> string postdata = "fieldname=" + HttpUtility.UrlEncode(doc.OuterXml);
>
> note: you should set the content-type to:
> application/x-www-form-urlencoded
>
> -- bruce (sqlwork.com)
>
>
> CindyH wrote:
>> Hi
>>
>> I'm working on a http xml post (request/response).
>>
>> In my testing - I have been able to create and post xml string/stream and
>> send response
>> back.
>>
>> But now I've been told that I should "code the whole xml payload string
>> as a
>> single key"
>>
>> I'm not sure what this means and haven't been able to find anything about
>> it.
>>
>> Can anyone help me with this?
>>
>> Thanks,
>> Cindy
>>


Re: http xml post by Martin

Martin
Fri May 09 09:32:09 CDT 2008

CindyH wrote:

> This of course doesn't work with httputility.urlencode(doc.outerxml) as a
> post

If the data is posted as application/x-www-form-urlencoded then you can
access it with
Request.Form("fieldname")
so
Using reader As XmlReader = XmlReader.Create(new
StringReader(Request.Form("fieldname")))
While reader.Read()
'...
End While
End Using

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Re: http xml post by Cindy

Cindy
Sat May 10 05:59:17 CDT 2008

Yea - this is what he was asking for - thanks for everyones help!!!!



"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:ej6I5FesIHA.5472@TK2MSFTNGP06.phx.gbl...
> CindyH wrote:
>
>> This of course doesn't work with httputility.urlencode(doc.outerxml) as a
>> post
>
> If the data is posted as application/x-www-form-urlencoded then you can
> access it with
> Request.Form("fieldname")
> so
> Using reader As XmlReader = XmlReader.Create(new
> StringReader(Request.Form("fieldname")))
> While reader.Read()
> '...
> End While
> End Using
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/