I am using Spring Integration as an intermediary between a REST client and an existing REST service, and the target URL has a path parameter and a query parameter. I have modeled my inbound configuration similarly:
However, when I try to access SI via HTTP, I get a 404. If I simply remove the query parameter like this:Code:<http:inbound-gateway id="documentsByTextAndCategoryInboundGateway" request-channel="documentsByTextAndCategoryRequestChannel" reply-channel="documentsByTextAndCategoryReplyChannel" name="/documents/text/{text}?category={category}" supported-methods="GET"/>
http://localhost:8080/myapp/documents/text/{text}
Then I am able to connect to SI.
I know that I could simply rewrite the inbound URL to not have any query parameters, but is there another way? Or am I simply doing something wrong?
Any insight is appreciated.
Thanks.


Reply With Quote