-
1. Re: CBR using SOAP with Namespaces
tfennelly Nov 13, 2007 6:01 AM (in response to tobysaville)Kurt will be better able to answer this when he comes online, but my guess would be that the xpathMatch part of the DSL needs to support namespaces i.e. binding "om" to it's namespace etc. Not sure if it does that, but Kurt will know for sure.
-
2. Re: CBR using SOAP with Namespaces
tobysaville Nov 13, 2007 6:09 AM (in response to tobysaville)thanks Tom.
-
3. Re: CBR using SOAP with Namespaces
tobysaville Nov 14, 2007 6:49 AM (in response to tobysaville)Hello,
Any updates on why this might be happening or how to configure namespaces in my CBR action?
cheers,
toby -
4. Re: CBR using SOAP with Namespaces
kurtstam Nov 14, 2007 9:47 AM (in response to tobysaville)Yep the XPath is takes into the account the namespace which is why your XPath doesn't match anything. So you either write that such that is accounts for the namespace, or and this is probably nice we should have an option to ignore namespaces. You can take a look at the
org.jboss.internal.soa.esb.services.routing.cbr.DslHelper
class where the XPath is executed. It should not too terribly hard to figure out how to make it ignore the namespace, so if you please send us a patch if you figure it out.
Thx!
--Kurt -
5. Re: CBR using SOAP with Namespaces
tobysaville Nov 14, 2007 10:17 AM (in response to tobysaville)I know how to do it with Jaxen, but is there a preferred method of getting the namespace from a String representing XML (remembering the org.w3c.dom.Document doesnt give access to the namespace prefix).
-
6. Re: CBR using SOAP with Namespaces
jaigates Apr 11, 2013 11:33 AM (in response to tobysaville)this should work
rule "dslchecker"
use namespaces "
when
xpathMatch "/om:dslCheck"om=http://com.easynet/om"
then
Log : "DSLChecker";
Destination : "om:dslchecker";
end