Hi,
Suppose I have the following incoming message to an ESB proxy.
<parent abc="123" xyz="789" xmlns:m0="https://sample/namespace1">
<m0:child1>333</m0:child1>
<m0:child2>444</m0:child2>
</parent>
And I want to do separate actions depending on the namespace. (i.e. one
action if the namespace is "https://sample/*namespace1*" and a different
action if the namespace is "https://sample/*namespace2*").
Is it possible to achieve $subject in such a situation? (so that I can
filter/switch)?
Seems it is not possible to access the namespace in the same way normal xml
attributes are accessed. Tried logging *expression="$body/parent/@*"*,
which printed only 123 and 789, but not the namespace. Any other possible
workarounds?
Thanks,
Supun
--
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev