2014-06-23 3 views
0

를 구성하는 도움이 필요 어떻게 그것을 통해 전송 될 수 있도록 내가 HTTP 포스트 페이로드로 변환 된 SOAP 페이로드를 인바운드받을 수 있나요 내 HTTPEndpoint 예는 크게는 WSO2 프록시 서비스

+0

어떤 플랫폼입니까? 어떤 SOAP 프레임 워크인가? "HTTPEndpoint"(소프트웨어)는 무엇입니까? –

답변

0

SOAP에서 REST로 변환 하시겠습니까? 이 경우 다음과 같이됩니다.

<proxy xmlns="http://ws.apache.org/ns/synapse" name="testProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> 
    <target> 
     <inSequence> 
     <property name="messageType" value="application/xml" scope="axis2"/> 
     <send> 
      <endpoint> 
       <http method="POST" uri-template="http://localhost:9000"/> 
      </endpoint> 
     </send> 
     </inSequence> 
     <outSequence> 
     <send/> 
     </outSequence> 
    </target> 
    <description/> 
</proxy> 

는, 축 messageType입니다 속성을 보내기 전에 메시지를 포맷하는 데 사용되는 MessageFormatter를 결정한다. 이 경우 해당 application/xml이므로 나가는 POST 요청의 Content-Type은 application/xml이됩니다.

+0

덕분에 - 어떻게 내가 가진 내 게시 된 HTTP 페이로드 --- 데이터 1 데이터 2 data_n에있는 비누 페이로드의 일부만을 사용합니까 --- 나는 데이터 1 데이터 2를 게시 할 data_n 그냥 태그를 삭제하려면 내 필터링 – user3766728

+0

의 일환으로 을 사용하고, 당신이 풍부하게 중재자 – Jeewantha

+0

예를 들어 설정 사용할 수 있습니다 : <소스 XMLNS : m = "HTTP를 : // your_name군요 공백 " 클론 ="true " xpath ="$ body/m : level1/m : level2 "/> Jeewantha

관련 문제