Layer7 API Management

Expand all | Collapse all

Is there an assertion to change the case of a strong context variable?

Jump to Best Answer
  • 1.  Is there an assertion to change the case of a strong context variable?

    Posted 04-16-2015 01:27 AM

    I'm using the Signing assertion to generate a hash, which results in upper-cased letters in the hash. The downstream service compares the hash to its store, which has them all in lowercase. Is there a way to change the case of a string? Attempts using regular expressions were unsuccessful.



  • 2.  Re: Is there an assertion to change the case of a strong context variable?
    Best Answer

    Posted 04-16-2015 03:33 PM

    The "Apply XSL Transformation" assertion can do this.  If you have access to the API Gateway support portal, there are examples here:

     

    https://na3.salesforce.com/kA000000000021F?kavVersion=3&popup=true

    https://na3.salesforce.com/kA050000000LQCw?kavVersion=1&popup=true



  • 3.  Re: Is there an assertion to change the case of a strong context variable?

    Posted 04-19-2015 07:48 PM

    Thanks Gary. I was able to use the second of the links to achieve what I needed to. Much appreciated.



  • 4.  Re: Is there an assertion to change the case of a strong context variable?

    Posted 08-08-2016 12:11 PM

    Hi Gary,

     

    I'm trying to download this but couldn't get access to the salesforce site. I have access to the new support site and I'm hoping I could download it there.

     

    Thanks,

    Gian