나는 서비스에서 텍스트/일반 내용을 반환합니다. 응답 메시지와 같은 : ESB4.0.3에서, 응답이 같은입니다 그러나 RESP0Success ".. 내가 axis2.xml에서 빌더와 포맷을 설정text/plain에서 text/xml로 응답을 변경하는 방법
<text xmlns="http://ws.apache.org/commons/ns/payload"><?xml version="1.0" encoding="UTF-8"?><message><MsgType>RESP</MsgType><ReturnCode>0</ReturnCode><ReturnMessage>Success</ReturnMessage></message>
</text>
그러나 아무 소용이
<messageBuilder contentType="text/plain"
class="org.apache.axis2.format.PlainTextBuilder"/>
<messageFormatter contentType="text/plain"
class="org.apache.axis2.format.PlainTextFormatter"/>
하는 anyxone 수 방법 axis2.xml에서 빌더와 포맷을 설정하는 말해 내 서비스 설정은 다음과 같습니다?
<proxy xmlns="http://ws.apache.org/ns/synapse" name="TextPlain" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target>
<inSequence>
<property name="ContentType" value="text/plain" scope="axis2" />
<log level="full" />
</inSequence>
<outSequence>
<log level="full" />
<property name="ContentType" value="text/plain" scope="axis2" />
<send />
</outSequence>
<endpoint>
<address uri="http://172.20.28.206:8080/AAAService/recieveMsg" format="pox">
</address>
</endpoint>
</target>
</proxy>
ContentType을 설정하면 새 서비스 구성을 볼 수 있습니다. 그러나 사용하지 않는 응답은 다음과 같습니다. <? xml version = "1.0"encoding = "UTF-8"? > > < < 메시지 헤더 > < transactionId는 > IAG.BOSS_QUERY_DATA </동작 코드 > <을 MsgType > RESP </1을 MsgType > > </transactionId는 > < 소인 > 2012-06-04 10시 45분 35초 </소인 > < 동작 코드 <ReturnCode/ReturnCode> <ErrorMessage> ?? </오류 메시지 > </메시지 > –
luohao