I am invoking Parse XML rule from a Service JMS rule. I have configured the Service JMS Request Tab as follows:
- Map To: XML ParseRule
- Map To Key: Namespace of Parse XML Rule
When I invoke the Service JMS by posting an XML message to a JMS queue, I get the following error:
Attempting to access a rule with a bad defined-on class: Trying to open rule "xxx!yyy" of class "Rule-Parse-XML", but no defined-on class (pyClassName) was specified". Here xxx refers to Namespace of Parse XML rule and yyy refers to root element name. Initially I specified the Map to Key as <Namespace.Root Element Name> but it throws an error "Failed to open rule: Namespace.Root Element Name.Root Element Name> so looks for Root Element Name twice, I resolved it by specifying just the Namespace in the Map To Key, but on execution it throws an error regarding pyClassName.
What is the issue regarding pyClassName and how can I resolve calling this Parse XML rule from Service JMS?
Hi, depend onb my understanding of ur issue, i can suggest that parse rule defind not on root element class. So if ur root alement is "Deal" and u try parse xml in page with class Data-Deal, the parse rule "xxx!Deal" must be apply to Data-Deal.
If it doesnot help, provide screenshots of settings and error.