뮬 -

2014-02-05 3 views
0

내 웹 응용 프로그램은 다음 주소에있는 웹 응용 프로그램 및 뮬 ESB 간의 통신 :뮬 -

http://localhost:8080/MyProject/page-obj.html

나는 데, (글래스 피쉬에 배포) 웹 응용 프로그램에서, 뮬 프로젝트를 호출하고 다음 URL의 URL :

`<form action="http://localhost:28146/CallObject" method="post" id="objform">` 

Mule 프로젝트가 원격 서버에서 무언가를 실행하고 성공을 반환합니다. 리디렉션, 내가 대신 http://localhost:8080/MyProject/page-sucess.html의, 주소 표시 줄에 http://localhost:28146/CallObject를 볼 때 내가 다른 페이지로 성공을 리디렉션 할

http://localhost:8080/MyProject/page-sucess.html

말한다. 둘째, CSS 및 JS를 제대로로드 할 수 없습니다.

`

<http:endpoint exchange-pattern="request-response" address="http://localhost:8080/MyProject/page-sucess.html" name="page" method="POST"/> 

    <flow name="Create_Work_Flow" doc:name="Create_Work_Flow"> 
     <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:28146/CallObject" contentType="text/html" doc:name="Request"> 
      <http:body-to-parameter-map-transformer doc:name="HTMLForm-Parameters-To-Mule"/> 
     </http:inbound-endpoint> 
     <logger level="INFO" doc:name="Form-Parameters" message="#[payload]" /> 

     <http:outbound-endpoint exchange-pattern="request-response" method="POST" doc:name="HTTP" ref="Page"> 
      <custom-transformer class="com.ExecuteWorkflow" doc:name="Call-CreateWorkflow"/> 
     </http:outbound-endpoint> 

    </flow>` 

답변

1

이 뮬 흐름이 성공 사례에서 헤더를 재 설정하고 브라우저가 리디렉션을 수행해야 유무 : 난 내가 사용 뮬 흐름되는 다음 제대로

을이 취급하고 있지 않다 생각 : 속성이 자식 할 수 없습니다 :

<flow name="Create_Work_Flow" doc:name="Create_Work_Flow"> 
    <http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:28146/CallObject" contentType="text/html" doc:name="Request"> 
     <http:body-to-parameter-map-transformer doc:name="HTMLForm-Parameters-To-Mule"/> 
    </http:inbound-endpoint> 
    <logger level="INFO" doc:name="Form-Parameters" message="#[payload]" /> 
    <http:outbound-endpoint exchange-pattern="request-response" method="POST" doc:name="HTTP" ref="Page"> 
     <custom-transformer class="com.ExecuteWorkflow" doc:name="Call-CreateWorkflow"/> 
    </http:outbound-endpoint> 
    <set-property propertyName="http.status" value="301"/> 
    <set-property propertyName="Location" value="http://localhost:8080/MyProject/page- 
</flow> 
+0

이 있다는 오류를 던지고있다 HTTP의 요소. – fatherazrael

+0

예제를 수정했습니다. 속성 대신 set-property 요소를 사용해야합니다. – neildo

+0

없이 사용자 지정 변압기도 작동합니다. 나는 그것의 어떤 사용법도 볼 수 없기 때문에 그것을 제거해야한다고 생각한다. – fatherazrael