DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Response rule does not appear

  • 1.  Response rule does not appear

    Posted Wed June 24, 2020 06:55 AM
    Does anyone know why for some service the response rule does not appear, see screenshots below.
    The service is responding correctly but I tried to add an action in the response rule and I don´t see in the probe, and of course, the rule I added is not being executed.
    I see some services which is implemented on the same way which contain it
    I´m wondering if this is something the backend sent different between the two services

    Without response rule:

    With response rule:

    Even with the probe with no response rule, I receive a HTTP200 from the backend:

    SOAPUI:


    ------------------------------
    Leandro Takeda
    ------------------------------


  • 2.  RE: Response rule does not appear

    Posted Wed June 24, 2020 07:35 AM
    What does the log say?... turn up to debug and look at each log entry for this transaction.​

    ------------------------------
    Charlie Sumner
    ------------------------------



  • 3.  RE: Response rule does not appear

    Posted Wed June 24, 2020 09:01 AM
    Edited by Leandro Takeda Wed June 24, 2020 09:01 AM

    I tried but there is no much info, I see also the response rule being selected:

     

    20200624T125730.585Z [0x80e000b4][ws-proxy][info] wsgw(OLMCSwitchingGas_WSP): tid(2879997597)[response][10.136.241.100] gtid(f0ac879d5ef34db8aba9468d): rule (OLMCSwitchingGas_WSP_default_response-rule): selected via match '__default-accept-service-providers__' from processing policy 'OLMCSwitchingGas_WSP'

     

    I may not even know what to look at...

     

    Thanks!



  • 4.  RE: Response rule does not appear

    Posted Wed June 24, 2020 09:08 AM
    Please post a screen shot of the entire processing policy dialog showing your request and response rule.​

    ------------------------------
    Charlie Sumner
    ------------------------------



  • 5.  RE: Response rule does not appear

    Posted Wed June 24, 2020 09:23 AM
    There you go...



    ------------------------------
    Leandro Takeda
    ------------------------------



  • 6.  RE: Response rule does not appear

    Posted Wed June 24, 2020 11:04 AM
    I'm not sure this will fix it but create a match rule policy of your own and call it 'matchAll' and use that in the matching rule. It is a bad practice to use __* or default policies in your actions as IBM may change them from time to time. Please create your own policy and see if that helps the situation.​

    ------------------------------
    Charlie Sumner
    ------------------------------



  • 7.  RE: Response rule does not appear

    Posted Wed June 24, 2020 11:18 AM
    Yes, did not work:

    Will try to open a case with IBM
    Thanks!


    ------------------------------
    Leandro Takeda
    ------------------------------



  • 8.  RE: Response rule does not appear

    Posted Wed June 24, 2020 12:49 PM
    Please check the type of request you are doing on the 'Main' screen of your service and make sure it is not loop-back.​

    ------------------------------
    Charlie Sumner
    ------------------------------



  • 9.  RE: Response rule does not appear

    Posted Thu June 25, 2020 03:34 AM
    Hi Leandro,

    a bit same question than Charlie had. If you open the WSP through Objects -> Service Configuration -> Web Service Proxy and check from Proxy Settings tab that you don't have Response Type = Pass through or Non-XML. And if you increase log level, check that DataPower is not skipping the response rule even though it seems to select i correctly.

    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 10.  RE: Response rule does not appear

    Posted Fri June 26, 2020 04:43 AM
    In this case, it´s a WSP, so I guess you are talking about the "XML Threat Protection tab"
    In this case, both are SOAP.

    Characterize client traffic type: SOAP
    Characterize server traffic type: SOAP

    ------------------------------
    Leandro Takeda
    ------------------------------



  • 11.  RE: Response rule does not appear

    Posted Fri June 26, 2020 05:22 AM
    Yes, you can see the values from there also, but it wasn't the tab I was referring into. You have a lot more configuration possibilities if you navigate through Objects -> Service Configuration. If you go through Services -> Web Service Proxy -> Edit Web Service Proxy (same what you have through Control Panel) you have a bit different tools in your disposal. And I'm now talking about the "old" WebGui. 
    But anyway, you have SOAP in both so that is not the issue. If you change probe settings to unbounded, does it help or did you get anything more meaningful out from the event log?

    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 12.  RE: Response rule does not appear

    Posted Fri June 26, 2020 06:59 AM
    Hum... I´m not sure how to do that...

    "If you change probe settings to unbounded, does it help or did you get anything more meaningful out from the event log?"

    Would you give me some guidance...?


    ------------------------------
    Leandro Takeda
    ------------------------------



  • 13.  RE: Response rule does not appear

    Posted Sat June 27, 2020 03:26 AM
    Using WebGui, go to Objects -> Service Configuration -> Web Service Proxy -> Probe Settings and set to Unbounded.

    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 14.  RE: Response rule does not appear

    Posted Sat June 27, 2020 02:01 PM
    Go to Control panel --> Troubleshooting --> select your service --> click on the service( not on the glass) --> click on the "probe settings" --> the make it "unbounded".

    ------------------------------
    sky
    ------------------------------



  • 15.  RE: Response rule does not appear

    Posted Fri June 26, 2020 03:09 PM
    Leandro, please check the matching rule of the request/response rule. they should match or match what's coming from backend service, and additionally check uri propagation config on mpgw service.

    ------------------------------
    sky
    ------------------------------



  • 16.  RE: Response rule does not appear

    Posted Fri June 26, 2020 03:11 PM
    Leandro, please note , sometimes you don't see the response rule in probe if there is lot of traffic that flows through that service. otherwise , set probe-settings to "unbounded". it should work.

    ------------------------------
    sky
    ------------------------------



  • 17.  RE: Response rule does not appear

    Posted Sat June 27, 2020 05:36 PM
    Thanks for your help, but that´s not the case, this is a web service proxy created for test

    ------------------------------
    Leandro Takeda
    ------------------------------



  • 18.  RE: Response rule does not appear

    Posted Sun June 28, 2020 01:52 PM
    even if it's a web service proxy , you should be able to set it to - unbounded.
     or you can set it through WebGUI - go to Objects -> Service Configuration -> Web Service Proxy -> Probe Settings and set to Unbounded.  Like others suggested in this thread.

    ------------------------------
    sky
    ------------------------------