Send POX by jms from wso2

0

I am trying to send a message to a queue in ActiveMQ and I have a spring-boot service reading the message in the queue but I get a full SOAP message and I only want a text message.

Is it possible to send a simple text by jms from wso2 without converting it to a SOAP message?

<?xml version="1.0" encoding="UTF-8"?>
<proxy name="ADMINS.donaciones.request" startOnLoad="true" transports="jms" xmlns="http://ws.apache.org/ns/synapse">
    <target>
        <inSequence>        
                  . . . .         
        </inSequence>
        <outSequence>
            <log level="full"/>                                                        
            <property name="messageType" value="text/plain" scope="axis2"/>                  
            <payloadFactory media-type="xml">
                <format>
                        <Customer>
                            <address>
                                <street>NANTERRE CT</street>
                                <postcode>77471</postcode>
                            </address>
                            <name>Mary</name>
                            <age>37</age>
                        </Customer>                  
                </format>             
                <args/>
            </payloadFactory>
            <send/>
        </outSequence>
        <faultSequence>
            <log level="custom">
                <property name="text" value="Error occurred while sending message"/>
                <property expression="get-property('ERROR_CODE')" name="error code"/>
                <property expression="get-property('ERROR_MESSAGE')" name="message"/>
            </log>
            <makefault version="soap11">
                <code value="soap11Env:Server" xmlns:soap11Env="http://schemas.xmlsoap.org/soap/envelope/"/>
                <reason value="Error general en la mediacion"/>
                <detail>Algun error ha ocurrido en la mediacion del mensaje</detail>
            </makefault>
            <send/>
        </faultSequence>
    </target>
    <parameter name="transport.jms.ContentType">
        <rules>
            <jmsProperty>contentType</jmsProperty>
            <default>application/json</default>
        </rules>
    </parameter>
</proxy>

This is the proxy, and this is the message that comes to my app spring boot

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rcd="http://rcd.softel.cu">
<soapenv:Body>
<Customer xmlns="http://ws.apache.org/ns/synapse">
<address>
<street>NANTERRE CT</street>
<postcode>77471</postcode>
</address>
<name>Mary</name>
<age>37</age>
</Customer>
</soapenv:Body>
</soapenv:Envelope>
    
asked by Julio César Paredes Rodriguez 04.05.2018 в 16:48
source

0 answers