All -
Sorry for the duplicate post with the one in the general biztalk group
-- I didn't realize that this newsgroup existed until now.
I have a requirement (well, a strong want actually) to be able to
perform schema validation on an message coming into BizTalk 2004
through an HTTP receive ****t, and if that schema validation fails to
send that schema validation error back to the sender of the message
as
the HTTP response.
I've tried a couple different approaches, without much success:
1.) Standard HTTP Receive ****t, one-way receive -- Doesn't seem to
work -- I don't think that the adapter even returns a 500 response if
the validation fails - just a 202, I believe.
2.) Standard HTTP Receive, request/response w/ Aenabled - I can get a
500 response back from the receive ****t when schema validation fails,
but getting the actual validation message (I.E element x is required,
etc) back to the client doesn't seem possible.
I also tried experimenting with a custom adapter, starting with the
ASP.NET Http Receive adapter in the SDK Samples.
3.) Custom HTTP Adapter, one-way receive : Within the adapter SDK I
can get an event when the message being submitted is suspended, but
when I try to retrieve the reason for suspension (via GetErrorInfo
method on the IBaseMessage object representing the suspended message)
all I get is a BT***ception, with the text 'An Exception of type
BT***ception was thrown' -- come on!
It seems to me this approach *should* be the correct one, as I can get
notification within the adapter of the message being suspended, and I
can call GetErrorInfo() on the message being suspended to supposedly
get the reason for the message suspension. However, the Exception
returned from GetErrorInfo just isn't returning any useful info. Is
this a bug in the SDK or in the Adapter Framework for 2004?
4.) Custom HTTP Adapter, request/response w/loopback : WIth this
configuration, the response message never seems to make it back, and
the client eventually times out.
Am I missing something here?


|