I have a problem with a compressed message that I receive from a client and have not been able to resolve this, neither have a few resources I asked to help out.
I receive an XML message from a client that is Compressed(gzip), Encrypted and Signed using C#.
I am able to Verify the signature and decrypt the message successfully, the problem occurs once I try to decompress the message content.
What the client has done is to only compress the soap:Body content of the message and place it in a <CompressedBody> element.
Once I try to decompress this body content I end up with an empty string. The xpath is correct and working 100% as I have a message that I have compressed on DataPower itself using the gzip compression algorithm and decompressing this works great, however I am unable to decompress the client's data even when trying to use different compression algorithms.
The client has provided me with the C# code they use to compress the message. In this code it is specified that the message gets encoded with base-64 after the compression, however taking a look at the string that needs to be decompressed it contains the signs of a normally gzip compressed message:
Also when trying to decode this string with base-64 I receive the following error on DataPower:
Valid base64 passed to dp:decode resulted in non UTF8:
When I try to decode my compressed message - for debugging purposes - I receive the same error, which proves to me that this string is nor encoded.
Any help or suggestions would be much appreciated.