2015-01-20 7 views
0

HTTPS를 통해 휴식 서비스를 사용해야하는 곳에서 런타임시 URL을 가져와야한다는 요구 사항이 있습니다. 나는 아웃 바운드 속성으로 REST 'URL'을 설정하고 있고 제가 위에서 말했듯이 내가되는 시간 오류를 컴파일 얻고, MELMEL을 사용하여 HTTP에서 URL 가져 오기 ENDPOINT

#[message.outboundProperties.'url' 

를 사용하는 시도를 할 때 가져 오기 위해 노력하고 동일한 작업을 수행하려면 아래에 언급 된

org.springframework.beans.MethodInvocationException: Property 'protocol' threw exception; nested exception is java.lang.IllegalArgumentException: Address '#[message.outboundProperties.'url']' for protocol 'http' should start with http:// 

뭐가 잘못 되었나요? 아니면이 이외의 요구 사항을 성취 할 수있는 가장 좋은 방법이 있습니까?

\t <https:outbound-endpoint exchange-pattern="request-response" 
 
\t \t \t \t \t \t \t method="GET" doc:name="HTTPs with Auth header" address="#[message.outboundProperties.'url']" connector-ref="HTTP_HTTPS"/> 
 

 
    <https:connector name="HTTP_HTTPS" cookieSpec="netscape" validateConnections="true" sendBufferSize="0" receiveBufferSize="0" receiveBacklog="0" clientSoTimeout="10000" serverSoTimeout="10000" socketSoLinger="0" doc:name="HTTP-HTTPS"> 
 
     <https:tls-key-store path="#[message.outboundProperties.'Storepath']" keyPassword="#[message.outboundProperties.'storepassword']" storePassword="#[message.outboundProperties.'storepassword']"/> 
 
     <https:tls-server path="#[message.outboundProperties.'Storepath']" storePassword="#[message.outboundProperties.'storepassword']"/> 
 
    </https:connector>

답변

1

HTTP를 구성 요소는 정적 'HTTP를 : //'필요 URL의 시작 따라서 아래

<http:outbound-endpoint exchange-pattern="request-response" method="GET" address="http://#[message.outboundProperties.'url'] " doc:name="HTTP"/> 
을 작품으로