Layer7 API Management

Expand all | Collapse all

XML CDATA message showing problem after decryption in format.

Jump to Best Answer
  • 1.  XML CDATA message showing problem after decryption in format.

    Posted 07-21-2015 11:56 AM

    hello

     

    I have A CDATA XML Message showing in below image.

    xmlerror.JPG

    I have encrypted it and while i m decrypting the message it Showing Some ASCII Code instead of proper format. See below image .
    xmlerror2.JPG

    kindly tell me how i can resolve it.

     

    Note: please note that it a simple scenario no backend is included, all request and response are in gateway only.

     

    Message was edited by: Leif Bildoy Removing Categories for OTK and MAG



  • 2.  Re: XML CDATA message showing problem after decryption in format.

    Posted 07-22-2015 11:14 AM

    Hi

     

    What assertions are you using to encypt/decrypt it?

     

    What version of the Gateway are you using?

     

    Regards

    Christopher Clark

    CA Support



  • 3.  Re: XML CDATA message showing problem after decryption in format.

    Posted 07-23-2015 06:18 AM

    The assertions used for encryption is - Encrypt element

    Assertions used for decryption - Require encrypted element

    Gateway version : 8.2



  • 4.  Re: XML CDATA message showing problem after decryption in format.
    Best Answer

    Posted 07-23-2015 08:10 AM

    The encoding you are seeing is URL- or Percent-encoding. If the issue is just the URL encoding of the variables then you can remediate this using the Encode/Decode Data assertion. The assertion has the option to perform a URL Decode which will re-encode data such as > into >



  • 5.  Re: XML CDATA message showing problem after decryption in format.

    Posted 08-03-2015 02:34 AM

    hello

     

    I tried Your solution But it did't work. Look at the snapshot of assertion i applied .

    encoding error.PNG

     

    It is Still giving the encoded output rather than the original one.



  • 6.  Re: XML CDATA message showing problem after decryption in format.

    Posted 07-21-2017 11:07 AM

    Hi Apoorvkapil,

    We have cdata in the request can you please elaborate in detail how you have encrypted and decrypted.

    It would be helpful if you explain it assertion by assertion.

     

    Thanks.

    raj