Как получить ответ от веб-службы на выполнение прокси-службы wso2 esb?

В настоящее время я отправляю xml as jms-сообщение из activemq в прокси-службу wso2 esb. Это сообщение я собираю с помощью класса посредника, и это сообщение, которое я отправил на внешний веб-сервис.

Итак, теперь, как получить ответ от веб-службы на wso2 esb proxy outsequence, который я должен отправить обратно в активную очередь вывода mq как сообщение jms.

 Here is the proxy service ::-

    <proxy xmlns="http://ws.apache.org/ns/synapse" name="Demo" transports="https,http,jms" statistics="disable" trace="disable" startOnLoad="true">
       <target>
          <inSequence>
             <property name="OUT_ONLY" value="false"/>
             <property name="ContentType" value="text/plain"/>
             <class name="com.test.Mediator1"/>
             <send>
                <endpoint>
                   <address uri="http://localhost:9989/ws/param?wsdl"/>
                </endpoint>
             </send>
          </inSequence>
          <outSequence>
             <send>
                <endpoint>
                   <address uri="jms:/OutputQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616"/>
                </endpoint>
             </send>
          </outSequence>
       </target>
       <parameter name="transport.jms.ContentType">
          <rules>         
             <jmsProperty>contentType</jmsProperty>         
             <default>application/xml</default>      
          </rules>
       </parameter>
       <description></description>
    </proxy>

    This is the message which I got when I invoke webservice through soapui client.

    <?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:getHelloWorldAsStringResponse xmlns:ns2="http://ws.mkyong.com/"><result>true</result></ns2:getHelloWorldAsStringResponse></S:Body></S:Envelope>

    This is the message which I got in activemq output queue.


    <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope>   

person user2032008    schedule 08.03.2013    source источник


Ответы (1)


Вы можете использовать посредник вызовов, чтобы вызвать службу и получить ответ на последовательность. Пожалуйста, ссылайтесь на [1] [2]

[1] http://docs.wso2.org/wiki/display/ESB460/Callout+Mediator

[2] http://docs.wso2.org/wiki/display/ESB460/Sample+430%3A+Simple+Callout+Mediator+for+Synchronized+Web+Service+Invocation

person Shelan Perera    schedule 09.03.2013