camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chaituu <>
Subject how to get the value from cxf request payload
Date Wed, 08 Apr 2015 01:13:30 GMT
        <to uri="bean:enrichBean"/>
I am hitting below SOAP request in SOAP UI and in the enrich bean I need to
get the orderId value?If I do doc.getElementsByTagName("v1:orderId") then
the value
will come but I cannot hardcoded the prefix before the name("v1:orderId")
because namespace prefix can be cannot be always v1.I need the
orderId value from the payload?


public class EnrichBean {

    public Document enrich(Document doc) {
        Node node = doc.getElementsByTagName("orderId").item(0);
        String orderId = node.getTextContent();

        System.out.println("orderId was " + orderId );

        return doc;

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message