on 05-12-2009 7:09 AM
Hi Experts,
We have a scenario Synch HTTP to RFC, where in the response message we have a requirement to encode some of the fields using encoding: ISO-8859-1
for eg:
ITEMS ITEMS
! !
VTEXT------------encoding: ISO-8859-1---------->VTEXT
Please suggest the way to accomplish this requirement.
Thanks in advance,
MK
You can use the SOAP adapter in no-soap mode. There you can specify the encoding of the response as URL parameter.
See note 856597 for details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi refer this thread may get some help
also refer this PDf
Regards
Abhishek
Edited by: Abhishek Agrahari on May 12, 2009 8:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can also write a UDF for the encoding. PFB the example for the base64 encoding in PI.
public static String Encode(String strDecoded)
{
String sOut="";
try
{
sOut = Base64.encode(strDecoded.getBytes("UTF-16BE"));
} catch (UnsupportedEncodingException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
return sOut;
}
Thanks and regards
Hemant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.