Topic
  • 7 replies
  • Latest Post - ‏2013-02-15T19:21:14Z by HermannSW
Bankrupt
Bankrupt
39 Posts

Pinned topic Setting HTTP response information

‏2013-02-12T20:01:08Z |
I want to customize the HTTP Response Code and Description to "202 Message Accepted" and as per http://www-01.ibm.com/support/docview.wss?uid=swg21502506, I used the following statements. However I keep getting "202 Processed" instead of "202 Message Accepted". Is there something else I need to do ? Any help will be appreciated.

.............
.............
<dp:set-http-response-header name="'x-dp-response-code'" value="'202 Message Accepted'"/>
<dp:append-response-header name="'x-dp-response-code'" value="'202 Message Accepted'"/>
.............
.............
Updated on 2013-02-15T19:21:14Z at 2013-02-15T19:21:14Z by HermannSW
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: Setting HTTP response information

    ‏2013-02-13T05:32:36Z  
    what is your service flow...few time back i have same issue and it get resolved successfully..
  • Bankrupt
    Bankrupt
    39 Posts

    Re: Setting HTTP response information

    ‏2013-02-13T15:28:36Z  
    what is your service flow...few time back i have same issue and it get resolved successfully..
    What did you do to get it resolved ? Mine is a simple request / response MPG. In the response flow, all I am doing is setting the HTTP Status in a XSL Transformation Action using the methods mentioned earlier.
  • HermannSW
    HermannSW
    6380 Posts

    Re: Setting HTTP response information

    ‏2013-02-14T09:34:44Z  
    • Bankrupt
    • ‏2013-02-13T15:28:36Z
    What did you do to get it resolved ? Mine is a simple request / response MPG. In the response flow, all I am doing is setting the HTTP Status in a XSL Transformation Action using the methods mentioned earlier.
    Is you Transform action the last action in response policy, or is it followed by a results action?
    If there is a results action, please remove that and have the stylesheet output to OUTPUT context directly.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • Bankrupt
    Bankrupt
    39 Posts

    Re: Setting HTTP response information

    ‏2013-02-14T17:40:38Z  
    • HermannSW
    • ‏2013-02-14T09:34:44Z
    Is you Transform action the last action in response policy, or is it followed by a results action?
    If there is a results action, please remove that and have the stylesheet output to OUTPUT context directly.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Hermann -- I had a results action as you guessed. I removed it and tried and it is still not working.
  • HermannSW
    HermannSW
    6380 Posts

    Re: Setting HTTP response information

    ‏2013-02-15T08:21:55Z  
    • Bankrupt
    • ‏2013-02-14T17:40:38Z
    Hermann -- I had a results action as you guessed. I removed it and tried and it is still not working.
    OK, next question, what is the response type of your policy?

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • Bankrupt
    Bankrupt
    39 Posts

    Re: Setting HTTP response information

    ‏2013-02-15T17:20:22Z  
    • HermannSW
    • ‏2013-02-15T08:21:55Z
    OK, next question, what is the response type of your policy?

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    The Response and Request Type is Non-XML (preprocessed). I am working for this for a streaming a message.
  • HermannSW
    HermannSW
    6380 Posts

    Re: Setting HTTP response information

    ‏2013-02-15T19:21:14Z  
    • Bankrupt
    • ‏2013-02-15T17:20:22Z
    The Response and Request Type is Non-XML (preprocessed). I am working for this for a streaming a message.
    From this related posting:
    https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14695585#14695618

    It seems that with Non-XML response type you are in a position where the "try" from technote does not work.
    At least I was not able to change 'Processed', in my experiments.

     
    Hermann<myXsltBlog/> <myXsltTweets/>