You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "wuyexixi (via GitHub)" <gi...@apache.org> on 2023/03/17 03:10:20 UTC

[GitHub] [camel-k] wuyexixi opened a new issue, #4144: how to set body of OUT message in yaml DSL?

wuyexixi opened a new issue, #4144:
URL: https://github.com/apache/camel-k/issues/4144

   like this java DSL do?
   
   exchange.getOut().setBody("Message received);


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] github-actions[bot] closed issue #4144: how to set body of OUT message in yaml DSL?

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4144: how to set body of OUT message in yaml DSL?
URL: https://github.com/apache/camel-k/issues/4144


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] wuyexixi commented on issue #4144: how to set body of OUT message in yaml DSL?

Posted by "wuyexixi (via GitHub)" <gi...@apache.org>.
wuyexixi commented on issue #4144:
URL: https://github.com/apache/camel-k/issues/4144#issuecomment-1473621389

   This example is set the IN message's body. I want to set the OUT message body without any headers from IN message. etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4144: how to set body of OUT message in yaml DSL?

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4144:
URL: https://github.com/apache/camel-k/issues/4144#issuecomment-1473379224

   We have some example in "examples" repository: https://github.com/apache/camel-k-examples/blob/1006ebc494adf59744130ba871d55f2868d79bb2/generic-examples/languages/routes.yaml#L23


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] github-actions[bot] commented on issue #4144: how to set body of OUT message in yaml DSL?

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4144:
URL: https://github.com/apache/camel-k/issues/4144#issuecomment-1599765439

   This issue has been automatically marked as stale due to 90 days of inactivity.
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4144: how to set body of OUT message in yaml DSL?

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4144:
URL: https://github.com/apache/camel-k/issues/4144#issuecomment-1479305952

   I think the answer is actually the one that @squakez gave you but you need to use the `- set-body` in the right place in your route to be able to access the response body instead of the request body.
   
   As for the headers from the IN message, if you want to remove them you need to use the [remove headers component](https://camel.apache.org/components/next/eips/removeHeaders-eip.html)
   ```yaml
         - removeHeaders:
             pattern: "*"
   ```
   
   
   You can ask more help on the user mailing list or the zulip chat room. Your question is more general Camel YAML DSL questions than Camel K specific.
   
   https://camel.apache.org/community/support/
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org