Hi, I am trying to convert an xml message to plain text and post it into a queue in activemq. However the xml node gets added to the message. I would like to know how i can extract just the text nodes from the xml and post to the queue.
Sample proxy xml: <?xml version="1.0" encoding="UTF-8"?> <proxy name="MessageRecieve" startOnLoad="true" transports="jms" xmlns="http://ws.apache.org/ns/synapse"> <target> <inSequence> <iterate expression="//m0:node/m0:MessageNode/m0:Value" id="ENTRY_ITERATOR1" xmlns:m0="http://services.samples/"> <target> <sequence> <class name="com.ibsplc.MessageTransformation"/> <payloadFactory description="Payload" > <format> <message>$1</message> </format> <args> <arg expression="$ctx:message"/> </args> </payloadFactory> <property name="messageType" scope="axis2-client" type="STRING" value="text/plain"/> <send> <endpoint name="QueueEP"> <address uri="jms:/Consumer.PostToQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61617&transport.jms.DestinationType=queue"/> <property name="OUT_ONLY" value="true"/> </endpoint> </send> </sequence> </target> </iterate> </inSequence> <outSequence> <send/> </outSequence> <faultSequence> <send/> </faultSequence> </target> <parameter name="transport.jms.DestinationType">queue</parameter> <parameter name="transport.jms.Destination">Consumer.Recieve.VirtualTopic.Publish</parameter> <parameter name="redeliveryPolicy.maximumRedeliveries">3</parameter> <parameter name="transport.jms.ContentType"> <rules> <jmsProperty>contentType</jmsProperty> <default>text/plain</default> </rules> </parameter> <parameter name="redeliveryPolicy.redeliveryDelay">2000</parameter> <parameter name="transport.jms.SessionTransacted">true</parameter> <parameter name="transport.jms.CacheLevel">consumer</parameter> </proxy> Sample Response posted to queue: <node xmlns="http://ws.apache.org/ns/synapse">Sample Response</node> Expected response: Sample Response How do i recieve only the text of the message as indicated above? Thanks and regards, Dhanya -- Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html _______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev