BizTalk Server Applications Integration - mapping web form data to biztalk

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > January 2005 > mapping web form data to biztalk





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 mapping web form data to biztalk
Chad

2005-01-26, 5:54 pm

I recently was assigned my first biztalk project. The concept is
simple enough, I have to create a web form for purchase order requests
that basically just handles the user interface. It will take all the
entered form data on submit and get sent to biztalk for business rules
processing. Once the business rules are appied biztalk will notify the
necessary users they need to approve this and allow them to link back
to the web form to approve or reject the request.

I'm not sure how to best handle mapping the entered form data to
biztalk when it is submitted. Do I use some sort of web service? I
have been through the starter tutorials which show how to map data from
one schema to another, but I'm not sure how to get the form data into
the xml format necessary for biztalk to use.
Thanks in advance for any suggestions.

Nabeel Prior

2005-01-26, 5:54 pm

There are a number of options, but here are 2:

1. From the web form call a web service generated by publishing an
orchestration as a web service. In this way, no mapping is required and the
orchestration will be started with the data posted to the web service, which
will form an XML document that BizTalk will process.

2. If you are just wanting to use the business rules, you could call the
business rules directly from any .Net code - not trivial, but definitely
possible.

--

Kind Regards,

Nabeel Prior
Web: http://www.brainjar.co.za
Blog: http://www.brainjar.co.za/blog.aspx


"Chad" <chad.crosby@wise.com> wrote in message
news:1106775686.519865.59580@z14g2000cwz.googlegroups.com...
>I recently was assigned my first biztalk project. The concept is
> simple enough, I have to create a web form for purchase order requests
> that basically just handles the user interface. It will take all the
> entered form data on submit and get sent to biztalk for business rules
> processing. Once the business rules are appied biztalk will notify the
> necessary users they need to approve this and allow them to link back
> to the web form to approve or reject the request.
>
> I'm not sure how to best handle mapping the entered form data to
> biztalk when it is submitted. Do I use some sort of web service? I
> have been through the starter tutorials which show how to map data from
> one schema to another, but I'm not sure how to get the form data into
> the xml format necessary for biztalk to use.
> Thanks in advance for any suggestions.
>



Chad

2005-01-26, 5:54 pm

Thanks for the input. I am going to try and implement option #1 above.
Our goal is to encapsulate as much as possible in biz talk. In order
to do this, would I use XMLDocumentFieldBinding to assign the form
values to the schema properties?

Chad

2005-01-26, 5:54 pm

Thanks for the help. I think I want to attempt at handling it with the
orchestration. So, since no mapping is required can I simply use
XMLDocumentFieldBinding in my code behind to assign the form data
values to the schema properties??

Nabeel Prior

2005-01-27, 2:50 am

Chad, once you publish the orchestration as a web service, you should be able
to create objects for the different levels of your xml document you are
sending to the orchestration, and then set the fields for each of these
levlels as properties on those objects.

Have a look at the sample located in the BizTalk SDK on your machine at:
<Program Files>\Microsoft BizTalk Server
2004\SDK\Samples\Orchestrations\ExposeWe
bService

Steps you should follow:
1. Create a schema representing the data you want to send from the web form.
2. Create your orchestration to receive this data.
3. In the "Orchestration View" window go to the "Port Types" section, and
find the port type that was created when you created your receive port.
4. Set the "Type Modifier" property to Public.
5. Build
6. Use the BizTalk Web Service Publishing Wizard (in the BizTalk program
group) to publish the orchestration as a web service.
7. In your web project, add a web reference to the published service, and
use it within your code, as shown in the example ExposeWebServiceDriver
project.

Hope this helps,

Nabeel

"Chad" wrote:

> Thanks for the help. I think I want to attempt at handling it with the
> orchestration. So, since no mapping is required can I simply use
> XMLDocumentFieldBinding in my code behind to assign the form data
> values to the schema properties??
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com