|
Home > Archive > BizTalk Server General > May 2004 > How do we make an ASP.NET page talk to a HTTP Adapter using 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 |
How do we make an ASP.NET page talk to a HTTP Adapter using Biztalk
|
|
| Siddharth 2004-05-30, 10:46 am |
|
Hi,
I just wanted to know how do we submit data from an
ASP.Net page to Biztalk Server2004 thru HTTPAdapter
| |
| Matt Milner 2004-05-30, 10:46 am |
| You need to use the classes in System.Net to create a web request and post
the information to the HTTP receive location you have set up. This involves
setting up an HTTP receive according to the documentation.
matt
"Siddharth" <anonymous@discussions.microsoft.com> wrote in message
news:1281301c442ef$0818da80$a001280a@phx
.gbl...
>
> Hi,
>
> I just wanted to know how do we submit data from an
> ASP.Net page to Biztalk Server2004 thru HTTPAdapter
>
>
>
| |
| Allen Zhang 2004-05-30, 10:46 am |
| Not sure your exact scenario, but I will list two common ones:
1. ASP page is used to accept data, it will in turn submit it into BizTalk
on the same box. In this scenario, you should take a look SDK sample
SubmitDirect which you can call in the ASP, ASPX page to submit the data
received.
2. ASP page is acting like client. In this case you just need to create
VROOT and create a HTTP receive location in BizTalk listening on that URL.
In ASP page you will just POST the data to that URL. This works when even
ASP page is on seperate box.
- Allen Zhang (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------[vbcol=seagreen]
| |
| Allen Zhang 2004-05-30, 10:46 am |
| It looks like that your HTTP receive location is not configured correctly.
There are a number of things to configure. Please see documentation
Microsoft BizTalk Server 2004 -> Operations -> Connecting Application using
Native Adapters -> Http Adapter -> Configure Http Receive Adapter.
Depending you are on IIS 6 or IIS 5, the steps are different.
After successful configuration, one way to test it is change the receive
pipeline to pass thru and use a browser to browse to that URL plus some
junk query string like http://localhost\mytest\BtsHttpReceive.dll?<junk/>.
You should get a submission ID for one way ports. If you get error code,
you need to check event log for defailed errors.
500 means processing failed. Could be from pipeline failure to no
subscription
401 first check IIS directory security, if you can browse an .html file in
the same vroot, then you need to check
403 your URL is incorrect, check for typro.
Thanks
- Allen Zhang (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
[vbcol=seagreen]
Iam Siddharth Dixit from Mumbai, India.....
You had replied to my query in the Microsoft newsgroup regarding the
ASP.Net & HTTP Adapter communication using Biztalk Server 2004...
Iam completely new to Biztalk Server 2004 & have to execute a project in
it...But iam facing a lot many problems...
I had an ASP.Net page which accepts certain data and on Submit it shuld
submit the data to Biztalk Server 2004 thru an HTTPAdapter......We tried to
do this using the existing SDK sample, but on submission of the ASP.Net
page it returns an error(401 & 500)....
.If u could send me a solution, or some sample code , i would be very
greatful to u......Even any document or tutorial of Biztalk 2004 you find
worthy, it'll be great if u can share it with us....
[vbcol=seagreen]
--------------------[vbcol=seagreen]
BizTalk[vbcol=seagreen]
URL.[vbcol=seagreen]
rights.[vbcol=seagreen]
|
|
|
|
|