on 12-24-2012 11:57 AM
Dear Experts,
I am working on Payload Encryption & decryption using adapter module by willam li.approach.
We installed NWDS7.3 & my PI version is 7.3 dual stack.
My scenario is SOAP to RFC (Synchronous)
i'll explain my scenario in brief---> user will login to ECC in response he will get log on suceessfull message.
i am facing some problem. When i am using adapter module my interface is not working fine.
i am getting log on unsucessfull message.
Without adapter module it is forking fine , i am getting correct output.
I don't find any errors in communication channel when i use adapter module.
Please find the screen shots
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
I developed Adapter Module for Encryption only
we used abap code to decrypt the encode value which coming from PI
using below this code
&---------------------------------------------------------------------*
*& Report ZTEST_DECODE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZTEST_DECODE.
DATA : lv_intial TYPE string,
lv_encoded TYPE string,
lv_final TYPE string,
lv_tmp1 TYPE xstring,
lv_tmp2 TYPE xstring.
parameters p_input type char64 lower case.
**lv_intial = p_input."'u65E5u672Cu30C6u30B9u30C8u65E5u672Cu30C6u30B9u30C8'.
**
**** convert string to xstring for use with base64 call
***lv_tmp1 = cl_openxml_helper=>string_to_xstring( lv_intial ).
***
***** convert temporary xstring to base64 encoded string
***lv_encoded = cl_http_utility=>encode_x_base64( lv_tmp1 ).
**
*** decode encoded string into xstring
**lv_tmp2 = cl_http_utility=>decode_x_base64( lv_intial ).
**
**
*** convert xtring back to UTF-8
**lv_final = cl_openxml_helper=>xstring_to_string( lv_tmp2 ).
**
**WRITE:/ 'Initial :', lv_intial,
** / 'Encoded :', lv_encoded,
** / 'Decoded :', lv_final.
lv_intial = p_input."'u65E5u672Cu30C6u30B9u30C8u65E5u672Cu30C6u30B9u30C8'.
* convert string to xstring for use with base64 call
lv_tmp1 = cl_openxml_helper=>string_to_xstring( lv_intial ).
** convert temporary xstring to base64 encoded string
lv_encoded = cl_http_utility=>encode_x_base64( lv_tmp1 ).
lv_encoded = p_input.
* decode encoded string into xstring
lv_tmp2 = cl_http_utility=>decode_x_base64( lv_encoded ).
* convert xtring back to UTF-8
lv_final = cl_openxml_helper=>xstring_to_string( lv_tmp2 ).
Now My interface is woking fine
Hi Pavan,
I have similar kind of Encryption requirement.
PI has to encrypt the Credit Card and should send it to ECC in an IDoc. The function module that processes the IDoc should have the capability to decrypt the Credit Card.
I have 2 issues -
1. I followed William Li's document and developed adapter module but got Server Deployment Exception Error Code "DPL.DS.5029" Exception in Operation [ StartApp ] with application. In your other thread you mentioned you got similar kind of exception. Could you please let me know what you did to resolve this issue.
2. How did you decrypt in ECC the encrypted message coming from PI?
Thanks,
Sarat
Hi All,
My 2 Issues have been resolved.
Posting the solutions here so that it will be helpful -
Solution for Issue 1 - Go to Build path of the project and make sure the Java Compiler version is in sync with Window->Preferences->Java-> Compiler and Window->Preference->Java->Installed JRE's
Solution for Issue 2 - I wrote an adapter module that is deployed on PI that does a JCo call to ECC and executes the Function Module that decrypts the message.
Thanks,
Sarat
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.