Topic
  • 2 replies
  • Latest Post - ‏2013-05-22T22:09:28Z by chandra-X
arun_tcs
arun_tcs
144 Posts

Pinned topic Calling a named Rule using Call action.

‏2007-12-12T20:22:03Z |
Hi,

Can we call a named rule from another rule using Call action?

I have created an XML firewall with two rules.

Rule 1 calls Rule2 and Rule 2 sets service variable routing-url to dynamically route the request to the backend.

Well, iam able to see that Rule 2 is being called by Rule 1 , but the input request is not available in multi step probe after the route action in Rule 2.

I see the below error in the response....

soapenv:Fault>
<faultcode>Server.generalException</faultcode>
<faultstring>org.xml.sax.SAXParseException: The root element is required in a well-formed document. To see the message containing the parsing error in the log, either enable web service engine tracing or set MessageContext.setHighFidelity(true).</faultstring>

Also , i see the service variable are set properly to hit the target.

Thanks in Advance,
Arun
Updated on 2007-12-13T02:26:49Z at 2007-12-13T02:26:49Z by arun_tcs
  • arun_tcs
    arun_tcs
    144 Posts

    Re: Calling a named Rule using Call action.

    ‏2007-12-13T02:26:49Z  
    i got the answer to the above problem.

    I missed a result action in rule 2, due to which an empty request was send to destination server.

    Thanks.
  • chandra-X
    chandra-X
    2 Posts

    Re: Calling a named Rule using Call action.

    ‏2013-05-22T22:09:28Z  
    • arun_tcs
    • ‏2007-12-13T02:26:49Z
    i got the answer to the above problem.

    I missed a result action in rule 2, due to which an empty request was send to destination server.

    Thanks.

    dont think we can miss a result action ! even if we miss dp will add it by default, when u apply/save changes. something else might have fixed the issue.