Setting custom HTTP status code in response
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Setting custom HTTP status code in response




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting custom HTTP status code in response  
red


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-05 12:50 PM

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. Th
e
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!






[ Post a follow-up to this message ]



    RE: Setting custom HTTP status code in response  
Ruslan Yakushev [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    RE: Setting custom HTTP status code in response  
red


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-16-05 12:46 PM

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 an
d
> hence to the HTTP client.
>
> You can find the sample HTTP receive adapter implementation in the product
> SDK refresh:
> [url]http://www.microsoft.com/downloads/details.aspx?FamilyId=8A1CA3AF-790C-4261-[/ur
l]
> 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.
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:42 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register