01-24-06 11: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.
>
[ Post a follow-up to this message ]
|