|
Home > Archive > BizTalk Server General > January 2006 > HTTP Adapter POST Form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
HTTP Adapter POST Form
|
|
|
| I am trying to POST a firstname and lastname fields to a page from BizTalk to
a URL that could be sitting on any kind of server - be it Apache. That means,
we have
no control over the logic of this page at all. All I can do is post a
message and it should hopefully process it correctly if all goes well. So,
what I'm trying to achieve is on how to create this POST message in a manner
that the HTTP Adapter sends it in the correct format.
For now, I have a file pick-up location that picks up the body of the
message as a pass-thru flat file and sends it off to this URL location, but
it fails even when I have the Content-type as
'application/x-www-form-urlencoded' in the Send Port
configuration. I had read a blog that explanined that we might need to setup
the body of the message using the HTTPUtility which I haven't gotten a
chance dig deeper.
So, my question is how can we POST a message to a URL location that accepts
the message and processes the fields without us having any control on the
logic of the webpage?
I would really appreciate your help.
| |
| Greg Forsythe 2006-01-24, 6:04 pm |
| I have an assembly that allows you to send or receive Html form
posts.
It consists of a two schema, two pipelines and two maps.
To send an Html form post
Create a HTTP send port with
Url = Form Action Url location
ContentType = 'application/x-www-form-urlencoded
Pipeline = HtmlForm.SendForm
Outbound Map = HtmlForm.MaptoHtmlForm
Send a file using the HtmlForm.XmlForm schema
<form xmlns="http://HtmlForm.AnyForm">
<field1>value1</field1>
<field2>value2</field2>
</form>
Send me an email if you would like this assembly, I am unable to attach it.
Greg
"Sam" <Sam@discussions.microsoft.com> wrote in message
news:ED87E437-0F69-4568-BD5F-AF3F4BF596AF@microsoft.com...
>I am trying to POST a firstname and lastname fields to a page from BizTalk
>to
> a URL that could be sitting on any kind of server - be it Apache. That
> means,
> we have
> no control over the logic of this page at all. All I can do is post a
> message and it should hopefully process it correctly if all goes well. So,
> what I'm trying to achieve is on how to create this POST message in a
> manner
> that the HTTP Adapter sends it in the correct format.
>
> For now, I have a file pick-up location that picks up the body of the
> message as a pass-thru flat file and sends it off to this URL location,
> but
> it fails even when I have the Content-type as
> 'application/x-www-form-urlencoded' in the Send Port
> configuration. I had read a blog that explanined that we might need to
> setup
> the body of the message using the HTTPUtility which I haven't gotten a
> chance dig deeper.
>
> So, my question is how can we POST a message to a URL location that
> accepts
> the message and processes the fields without us having any control on the
> logic of the webpage?
>
> I would really appreciate your help.
>
| |
|
| Hi Greg:
Thanks for your help. From your solution, what I understand is that you
basically take care of the trasnformation from input XML message to the html
form and use a custome pipeline that does the Flat File parsing into the HTML
format before sending it out to the URL. Is that right? I'd be interested in
peeking at your solution.
Thanks.
"Greg Forsythe" wrote:
> I have an assembly that allows you to send or receive Html form
> posts.
> It consists of a two schema, two pipelines and two maps.
> To send an Html form post
> Create a HTTP send port with
> Url = Form Action Url location
> ContentType = 'application/x-www-form-urlencoded
> Pipeline = HtmlForm.SendForm
> Outbound Map = HtmlForm.MaptoHtmlForm
>
> Send a file using the HtmlForm.XmlForm schema
> <form xmlns="http://HtmlForm.AnyForm">
> <field1>value1</field1>
> <field2>value2</field2>
> </form>
>
> Send me an email if you would like this assembly, I am unable to attach it.
>
> Greg
>
> "Sam" <Sam@discussions.microsoft.com> wrote in message
> news:ED87E437-0F69-4568-BD5F-AF3F4BF596AF@microsoft.com...
>
>
>
| |
| Greg Forsythe 2006-01-24, 6:04 pm |
| Basically yes, except the Html form post does not send HTML
The format is a flat file:
e.g. Field1=Value1&Field2=Value2&Field3=Value3&Submit=Send
All the values must be Url encoded
I can provide the source if you can reply directly to my email. It is too
big to post on the newsgroup and I have yet to upload it to GotDotNet
Greg
"Sam" <Sam@discussions.microsoft.com> wrote in message
news:468513E6-718A-493C-BB4C-CD87D7B37DD9@microsoft.com...[vbcol=seagreen]
> Hi Greg:
>
> Thanks for your help. From your solution, what I understand is that you
> basically take care of the trasnformation from input XML message to the
> html
> form and use a custome pipeline that does the Flat File parsing into the
> HTML
> format before sending it out to the URL. Is that right? I'd be interested
> in
> peeking at your solution.
>
> Thanks.
>
> "Greg Forsythe" wrote:
>
|
|
|
|
|