BizTalk Server General - HTTP ?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2005 > HTTP ?





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 HTTP ?
Brian C

2005-03-02, 6:02 pm

I am extremely new to using HTTP, so feel free to answer me as if you're
talking to a 10 year old. I have to send an XML file to a vendor via HTTP.
I have a send port with a transport type of HTTP, and I have the URI set to
what the vendor gave me.

Here is what is supposed to happen. I send them the XML, and they
immediately send back a response to say if the XML is valid.

Then if the XML was valid, I receive (maybe in 4 hours or 4 days) XML via
HTTP that will be an order rejection (maybe they no longer stock an item or
something), or ship advice XML (the order has been shipped and processed
successfully).

Now, I thnk I understand how to set up the HTTP receive for when they send
me the order rejection, or ship advice (I will use correleation and set up
the receive ports, etc... for this part, I have to provide my vendor a URL).

What I don't understand is how to view/interrogate the XML that they
immediately send back when I first send the order. I've looked thru the SDK
and examples, and from what I can see, I don't need a receive port for this
part, and I don't need to provide the vendor a URL... somehow I can just
view/interrogate the response I get back...but how????

Thanks in advance!

Brian


Raj

2005-03-02, 6:02 pm

Brian,
To my knowledge you have to write a custom HTTP Adapter, in which you embed
the schema validation logic and return a valid HTTP response code(maybe 500)
w/ appropriate reason in case of Schema failure or an 200 if schema
validation passes.
You cant use the built in HTTP Adapter as it just passes the HTTP request to
the Messagebox and in your case, it wouldnt help you much.Also you cant use
the pipeline code because you need to return a valid HTTP response back.
There are some SDK samples available under BT install directory.Take a look
at it.
Thanks
Raj


"Brian C" wrote:

> I am extremely new to using HTTP, so feel free to answer me as if you're
> talking to a 10 year old. I have to send an XML file to a vendor via HTTP.
> I have a send port with a transport type of HTTP, and I have the URI set to
> what the vendor gave me.
>
> Here is what is supposed to happen. I send them the XML, and they
> immediately send back a response to say if the XML is valid.
>
> Then if the XML was valid, I receive (maybe in 4 hours or 4 days) XML via
> HTTP that will be an order rejection (maybe they no longer stock an item or
> something), or ship advice XML (the order has been shipped and processed
> successfully).
>
> Now, I thnk I understand how to set up the HTTP receive for when they send
> me the order rejection, or ship advice (I will use correleation and set up
> the receive ports, etc... for this part, I have to provide my vendor a URL).
>
> What I don't understand is how to view/interrogate the XML that they
> immediately send back when I first send the order. I've looked thru the SDK
> and examples, and from what I can see, I don't need a receive port for this
> part, and I don't need to provide the vendor a URL... somehow I can just
> view/interrogate the response I get back...but how????
>
> Thanks in advance!
>
> Brian
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com