Skip to content

Pass variable to camel route #41

@vagostep

Description

@vagostep

Hi, i follow the instructor for the readme page with indicate that the form for pass variable to a camel route.

The code is: "${camel.sendTo('direct:llamarPrueba', 'request')}"

Here, i call the route "llamarPrueba" and send the variable request.

The camel route is this: from("direct:llamarPrueba") .routeId(ROUTE_NAME) .marshal(marshaller) .to("spring-ws:http://localhost:8081/ws") .unmarshal(marshaller);

But when the marshal tried to process the variable, throw:

java.io.IOException: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.util.HashMap to the required type: java.io.InputStream with value {request=com.example.demo.cliente.GetCountryRequest@1922e2c1}

How i get only the value of 'request' for make the soap request properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions