BizTalk Server Orchestration - Setting custom HTTP status code in response

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2005 > Setting custom HTTP status code in response





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 Setting custom HTTP status code in response
red

2005-01-14, 7:50 am

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!

Ruslan Yakushev [MSFT]

2005-01-14, 8:46 pm

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: =?Utf-8?B?cmVk?= <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.

red

2005-01-16, 7:46 am

Hi Ruslan,
Thank you very much for this information.

"Ruslan Yakushev [MSFT]" wrote:

> 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.
> --------------------
> a
> 200
> my
> The
> 200
> Any
>
> 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.
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com