01-15-05 01:46 AM
You would need to build a custom adapter to do this. The exceptions that
are thrown from orchestration do not propagate back to the HTTP adapter and
hence to the HTTP client.
You can find the sample HTTP receive adapter implementation in the product
SDK refresh:
http://www.microsoft.com/downloads/...A3AF-790C-4261-
838A-9F0661C72887.
--------------------
>Thread-Topic: Setting custom HTTP status code in response
>thread-index: AcT6Hf9eQtus9uo5QpO5nZUeNaHGlQ==
>X-WBNR-Posting-Host: 15.219.201.69
>From: examnotes <red@discussions.microsoft.com>
>Subject: Setting custom HTTP status code in response
>Date: Fri, 14 Jan 2005 01:47:01 -0800
>Lines: 23
>Message-ID: <9D53F080-9014-409C-97DF-24F572F81785@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.biztalk.orchestration
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.orchestration:9775
>X-Tomcat-NG: microsoft.public.biztalk.orchestration
>
>Hi,
>
>I have a situation where I will be receiving XML iDOCs posted over HTTP to
>biztalk server. My Biztalk server implementation will need to accept the
>idocs and do some preprocessing (ie. to check if some importants tags are
>missing or not). If the proprocessing check fails then i will need to send
a
>resonse back to the client by setting some custom http status eg 403 or
200
>0r 500 etc.
>
>I was trying to extend the HTTPRequestResponse example in the SDK and in
my
>orchestration I implemented a expression shape to threw a
>HTTPException(403,"test") and the same did not get reflect in the client.
The
>client when receiving the response back, the statuscode is still OK i.e.
200
>i guess.
>
>I may be doing some wrong here. Please guide me in the right direction.
Any
>simple demo or samples would be greatly greatly appreciated.
>
>Can at all this situation be handled at the orchestration level or would i
>need to build a custom pipeline or adapter to do this?
>
>Thanks in advance!
>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
[ Post a follow-up to this message ]
|