| Greg Forsythe 2006-02-09, 7:54 am |
| Siddharth,
You basically just need to post the event data to the BTSHTTPReceive.dll.
Here is some basic C# code for doing that.
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("http://biztalkserver/HTTPReceive/BTSHTTPReceive.dll");
request.Method = "POST";
request.ContentType = "text/xml";
request.ContentLength = <length of xml document>;
Stream requestStream = request.GetRequestStream();
//write xml document or data to requestStream here
requestStream.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Here is Http header that should arrive at the Biztalk IIS
POST /HTTPReceive/BTSHTTPReceive.dll HTTP/1.0
Via: 1.1 xxxxxxxxxxxxx
Host x.x.x.x
Content-Length: 37592
Content-Type: text/xml
Expect: 100-continue
Connection:.Keep-Alive
<invoice xmlns="urn:invoice:v1.0">.....</invoice>
The BTSHTTPReceive.dll will take this data (<invoice
xmlns="urn:invoice:v1.0">.....</invoice> ) and create a Biztalk message that
will pass thru a specified pipeline and be published to the Biztalk
MessageBox.
The data does not have to be Xml, but you will need a custom pipeline to
handle non-Xml data.
The Http headers are captured in the message context, if required
There are a few steps required to set up the IIS virtual directory, these
are explained in the documentation.
- application pool identity should be a member of Biztalk Isolated Host
Users group
- allow ISAPI extension BTSHTTPReceive.dll
Greg
"sidds" <siddharth.velankar@gmail.com> wrote in message
news:1138881253.745857.170720@z14g2000cwz.googlegroups.com...
> Hi Jean
> Thanks for your reply.
> I have gone through that link and also understood its working
> But my fundamental requirement is the following
> I have an application which generates a set of events.
> I want to somehow send these events to BizTalk server.
> Tell me one thing how do i publish my events to the virtual directory
> which contains BTSHTTPReceive.dll.
> Do i need to write some code to receive those events or the dll file
> wil take care of that ??
> Once i get to know this, the rest should be simple.
> Thanks again
> Siddharth
>
|