Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
package beans;
import org.apache.camel.language.NamespacePrefix;
import org.apache.camel.language.XPath;
import org.apache.commons.codec.binary.Base64;
public class Decode64XmlIn {
public String process(@XPath(
value = "//bus:xmlIn",
namespaces = @NamespacePrefix(
prefix = "bus",
uri = "http://business")) String body) throws Exception {
return ( new String(Base64.decodeBase64(body.getBytes())));
}
}