How are multiple arguments stored in a message in Switchyard

Latest response

How are multiple arguments passed to a service in Switchyard stored in the message? For example, if I define a service contract as "public void service(String param1)" I know that param1 becomes the body of the message. What if the contract is defined as "public void service(String param1, String param2)" How are both arguments stored in the message, and how would I access each of them?

In addition, would it be possible to promote some of the arguments to headers instead of keeping them in the body?

Responses

Hi Robert, have you found an answer to this question?

Hi Robert,
Methods in SwitchYard can only have one parameter, so I guess that answers your question.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.