2014-04-22 3 views
0

내가 뮬 새로운 오전과 HTTP 끝점을 사용하여 GET 요청을 게시하려고하지만, 나는 다음과 같은 오류가 발생하고뮬 잘못된 엔드 포인트 오류

"템플릿 엔드 포인트"http://api.mymemory.translated.net:80/get?q=#[message.inboundProperties.get ('http.relative.path')] & langpair = EN | IT는 http://api.mymemory.translated.net:80/get?q=hello&langpair=EN|IT "조작 된 엔드 포인트에 해결" "엔드 포인트를 통해 라우팅 이벤트에 실패했습니다. org.mule.endpoint.DynamicOutboundEndpoint"

나는 다음과 같은 구성 시도

:

get?q=hello&langpair=EN%7CIT [작품]

get?q=#[message.inboundProperties.get('http.relative.path')]&langpair=EN%7CIT [작동하지 않음]

get?q=#[message.inboundProperties.get('http.relative.path')]&langpair=EN|IT [작동하지 않음]

스택 추적에 문제가 있음을 나타내는 것

은 "|" 캐릭터. 다음과 같이

내 흐름은 다음과 같습니다

<flow name="my_first_projectFlow1" doc:name="my_first_projectFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> <http:outbound-endpoint exchange-pattern="request-response" host="api.mymemory.translated.net" port="80" path="get?q=#[message.inboundProperties.get('http.relative.path')]&amp;langpair=EN%7CIT" method="GET" doc:name="HTTP"/> <echo-component doc:name="Echo"/> </flow>

답변

0

파이프 ("|") 교체 시도 MEL 표현 #[java.net.URLEncoder.encode('|', 'UTF-8')]와 문자를.