Skip to Content
avatar image
Former Member

Problem with MLS

Hi All,

My scenario is Java Proxy to JDBC. I need to send a encrypted message to XI and XI has to decrypt it. I have set the key store and key entry in Sender Agreement. I encrypted the message in proxy using RSA algorithm and public key (cert) generated in XI.

The problem is decryption in XI. The decrypted message has some invalid characters and so the mapping throws parser Exception.

Please help me to get out of these bugs!

(All helpful answers will be appreciated ).

Thanks and Regards,

Uma

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    May 30, 2006 at 11:47 AM

    When some characters are invalid, I assume that the code pages of sender and receiver do not match.

    Transform the data to UTF-8 inside the Java proxy, that should help.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 31, 2006 at 08:23 AM

    Hi Uma,

    As Bhavesh had suggested, try using a different encoding technique . If UTF-8 doesn't work, try ISO-8859-1 or ISO-8859-16

    cheers,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 31, 2006 at 03:45 AM

    Thanks for your reply Stefan.

    Its already in UTF-8 format in java proxy.

    Thanks,

    Uma

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 31, 2006 at 08:55 AM

    Thanks guys for all the replies.

    I dont think the problem will be solved by changing the encoding format. (In fact, i am not able to set the xml format in java proxy !)

    The adapter is not decrypting the message correctly. that's y invalid characters are shown in Integration engine. Please help me out to solve the problem at adapter level.

    Also, am not sure about the encryption logic i have used in proxy. right now i am using Cipher to encrypt with RSA algol. It will be better if i get any other encryption API. (encrypt with public key).

    Kindly let me know if my approach to this issue is wrong.

    Thanks,

    Uma

    Add comment
    10|10000 characters needed characters exceeded

    • You should explain your scenario more detailled:

      - where do your data come from

      - which application calls the Java proxy,

      - how do you encrypt: single values or whole payload

      - how do you decrypt

      Stefan