HTTP 아웃 바운드 구성 요소를 사용하여 mule에서 hybris rest services를 호출합니다. 내가 서비스를 처음 호출 할 때 JSESSIONID가 Set-Cookie에 있지만 두 번째 호출에서 JSESSIONID가 Set-Cookie에 없습니다.MULE이 두 번째 HTTP 요청의 헤더에 JSESSIONID를 제공하지 않습니다.
동일한 시나리오를 사용하여 Rest Client를 사용해 보았습니다. 나머지 고객으로부터 hybris 서비스를 직접 호출합니다 .Rest Client 매번 Set-Cookie에 JSESSIONID를 부여합니다.
JSESSIONID가 두 번째로 HTTP 아웃 바운드 구성 요소를 호출하지 않는 이유는 무엇입니까?
여기 내 흐름이다
<flow name="Oauth" doc:name="Oauth">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8081" doc:name="Oauth"
path="getOauth" />
<logger
message="Oauth Request : #[message.payload]"
level="INFO" doc:name="LogOuthRequest" />
<http:outbound-endpoint exchange-pattern="request-response"
host="hybrisServer" port="port" path="rest/oauth/token"
method="POST" contentType="application/x-www-form-urlencoded"
doc:name="HybrisPostRestCall">
<message-properties-transformer name="test"
doc:name="Set Content-type xml">
<add-message-property key="accept"
value="application/xml" />
</message-properties-transformer>
</http:outbound-endpoint>
<echo-component doc:name="Object2String" />
<logger message="AccessToken : #[message.payload]"
level="INFO" doc:name="LogOauthResponse" />
</flow>
아마도 인바운드 및 아웃 바운드 헤더와 혼동스러워 할 수 있습니다. xml 구성을 추가하여 충분한 정보를 얻으십시오. –
안녕하세요, 내 질문을 업데이 트했습니다. .. added XML을 .. – Kalpesh