HTTP Adapter POST Form
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > HTTP Adapter POST Form




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    HTTP Adapter POST Form  
Sam


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 11:04 PM

I am trying to POST a firstname and lastname fields to a page from BizTalk t
o
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 ]



    Re: HTTP Adapter POST Form  
Greg Forsythe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: HTTP Adapter POST Form  
Sam


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 11:04 PM

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 HTM
L
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... 
>
>
>





[ Post a follow-up to this message ]



    Re: HTTP Adapter POST Form  
Greg Forsythe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-06 11: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:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:12 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register