UTF-8 encoding problem in HTTP adapter

Hi Guys,
I am facing problem in the UTF-8 multi-byte character conversion.
Problem:
I am posting data from SAP CRM to third party system using XI as middle ware. I am using HTTP adapter to communicate XI to third party system.
in HTTP configuration i have given XML code as UT-8 in the XI payload manipulation block.
I am trying to post Chines characters from SAP CRM to third party system. junk characters are going to third party system. my assumption is it is double encoding.
I have checked the Xml messages in the Message monitoring in XI, i can able to see the chines charaters in XML files. But in the third party system it is showing as junk characters.
Can you please any one help me regarding this issue.
Please let me know if you need more info.
Regards,
Srini

Srinivas
Can you please go through the SAP Notes 856597 Question No.3 which may resolve your issue? Also have you checked SAP Notes 761608,639882, 666574, 913116, 779981 which might help you.
---Satish

Similar Messages

  • Multi-byte character encoding issue in HTTP adapter

    Hi Guys,
    I am facing problem in the multi-byte character conversion.
    Problem:
    I am posting data from SAP CRM to third party system using XI as middle ware. I am using HTTP adapter to communicate XI to third party system.
    I have given XML code as UT-8 in the XI payload manipulation block.
    I am trying to post Chines characters from SAP CRM to third party system. junk characters are going to third party system. my assumption is it is double encoding.
    Can you please guide me how to proceed further.
    Please let me know if you need more info.
    Regards,
    Srini

    Srinivas,
    Can you go through the url:
    UTF-8 encoding problem in HTTP adapter
    ---Satish

  • Namespace prefix problem in http adapter response

    Hi All;
    I use http adapter to call a third party service. I  post a XML request and it responses me as XML again..
    But when I call the proxy, it gives mapping error in response. because it expects namespace prefix in the first tag of the response xml.
    How can I get this xml back without any namespace?
    My response xml likefollowing  
    <?xml version="1.0" encoding="UTF-8" ?>
        <OrderLines>
           <item>
               <DocumentNo>99000140</DocumentNoitem>
        </item> 
    </OrderLines>
    but the adapter expects as
    <?xml version="1.0" encoding="UTF-8" ?>
        <ns0:OrderLines xmlns:ns0="http://company.com">
           <item>
               <DocumentNo>99000140</DocumentNoitem>
        </item> 
    </ns0:OrderLines>

    You can use the XMLAnonymizer module with your adapter (if you are using SOAP adapter for the call as HTTP adapter does not support modules) to remove the namespaces. Kindly check the following blogs for modules:
    Gabriel Sagaya Selvam - Standard Adapter Framework modules in PI 7.1 u2013Part 1
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-1
    Gabriel Sagaya Selvam - Standard Adapter Framework modules in PI 7.1 u2013Part 2
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-2
    Regards,
    Gökhan

  • Encoding problem with Application adapter for OEBS

    Hello All!
    We going to pass value via app adapter from EBS Forms to Content Server page. Link to documentation Configuring the Managed Attachments Solution - 11g Release 1 (11.1.1)
    We have done all setting, and this function is working now .
    It is good working with English letters and numbers, but when we try to use Cyrillic we have a problem with Encoding in Content server page.
    Data on Oebs table use ''CL8ISO8859P5'', but service xml for adapter has allays a title with  charset=utf-8
    System are:
    OEBS 12.1.3
    Webcenter Content 11.1.1.6
    Adapter 11.1.1.6 + patch 16463891
    Could you help us?

    Hi Denis ,
    Try this solution :
    1) Log on to the APPS EBS schema and re-create the AXF_SOAPCall function using the following SQL:
    create or replace
    function AXF_SOAPCall (url varchar2, soapmsg varchar2, secure varchar2, walletid varchar2, walletpass varchar2) return varchar2 as
    http_req utl_http.req;
    http_resp utl_http.resp;
    response_env varchar2(32767);
    v_newcharset VARCHAR2(40 BYTE) :='UTF8';
    v_Dbcharset VARCHAR2(40 BYTE);
    v_Raw1 RAW(32767);
    v_Stmt1 VARCHAR2(6000 BYTE);
    begin
    v_newcharset := 'AMERICAN_AMERICA.'|| v_newcharset ;
    v_Dbcharset := 'AMERICAN_AMERICA.'||utl_i18n.map_charset(fnd_profile.value('ICX_CLIENT_IANA_ENCODING'),0,1);
    v_Raw1 := UTL_RAW.CAST_TO_RAW (soapmsg);
    v_Raw1 := UTL_RAW.CONVERT (v_Raw1,v_newcharset,v_Dbcharset);
    if ( secure = 'true' or secure = 'TRUE' ) then
    utl_http.set_wallet (walletid, walletpass);
    end if;
    http_req := utl_http.begin_request(url , 'POST', utl_http.HTTP_VERSION_1_1);
    utl_http.set_header(http_req, 'Content-Type', 'text/xml; charset=utf-8');
    utl_http.set_header(http_req, 'Content-Length', utl_raw.length(v_Raw1));
    utl_http.write_raw(http_req, v_Raw1);
    http_resp := utl_http.get_response(http_req);
    utl_http.read_text(http_resp, response_env);
    dbms_output.put_line('Response: ');
    dbms_output.put_line(response_env);
    utl_http.end_response(http_resp);
    return response_env;
    end;
    2) Log on to the EBS and confirm that you can now open the Managed Attachments window for all records & forms, regardless of the use (& length) of multibyte string values.
    This was caused by multibyte characters used with non UTF-8 language strings .
    I presumed that you are seeing that when "Managed Attachments" option through the ZOOM button from an E-Business Suite (EBS) forms, nothing happens.If you have a support id then check the following note : 1409703.1 from MyOracleSupport portal.
    Hope this helps.
    Thanks,
    Srinath

  • Utf-8 encoding problem on solaris

    Hello all.
    I am using weblogic 9.2 and I am facing a very weird problem regarding the encoding. I fetch data from the db (informix btw) and I forward data as utf-8 to jsps. I have set up everything succesfully on my web.xml, weblogic.xml and all jsps include the page directive for utf-8. When I deploy my application on windows 2k machine everything goes smooth. But when the deployment happens on a solaris machine my jsps show "?" instead of letters. Has anyone faced this problem before? Could you plz direct me towards a solution because this thing has taken me days and days and I still haven't managed to find a solution
    Thanx in advance
    axel

    Hi,
    Start the app, and hook an Eclipse debug project to it. Check if the enconding problem is while retrieving from the DB or while generating the response. If the issue is on the DB, you may need to define the enconding on the connection (I am not sure what driver you are using, but should be able to check this out.) If the issue is while generating the response, just XML escape every character.
    Regards,
    LG

  • HTTP adapter - change encoding from UTF-8 to ISO-8859-1

    Hi,
    I am trying to change the encoding used by the HTTP sender adapter in a scenario.
    However, when I enter ISO-8859-1 in the XML Code under XI Payload Manipulation on the comms channel it has no effect - the paylad still shows as UTF-8 in SXI_MONITOR.
    Am I missing a step or entering the field incorrectly ??
    Thanks
    Colin.

    Hi,
    From help
    Enhancing the Payload
    Some external systems, for example, Web servers in marketplaces, can only process data if it is sent as an HTML form using HTTP.
    A typical HTML form comprises named fields. When transferring a completed form to the server or a CGI program, the data must be transferred in such a way that the CGI script can recognize the fields that make up the form, and which data was entered in which field.
    The plain HTTP adapter constructs this format using a prolog and an epilog. Therefore, there is a particular code method that separates form fields and their data from each other. This code method uses the following rules:
         Individual form elements, including their data, are separated from each other by the character &.
         The name and data of a form element are separated from each other by an equals sign (=).
         Blanks in the entered data (for example, in multiple words) are replaced by a plus sign (+).
        All characters with the (enhanced) ASCII values 128 to 255 (hexadecimal 80 to FF) are transcribed using a hexadecimal sequence, beginning with a percentage sign (%) followed by the hexadecimal value of the character (for example, the German umlaut ö in the character set ISO-8859-1 is transcribed as %F6).
       All characters that occur in these rules as control characters (&, +, =, and %) are also transcribed hexadecimally in the same way as high value ASCII characters
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Regards
    Chilla

  • Problem of encoding for mail sender adapter

    Hello, everyone.
    I have faced the problem of mail sender adapter.
    When someone send message with any content encoding (even UTF-8) and 8bit content type encoding the XI mail adapter corrupt special and foreign symbols. I checked the message for correct structure and encoding with tpcgw utility and it was fine. For example (this is what I can see in tcpgw)
    ==== Response ====
    +OK
    +OK Password required for user itra_xi
    +OK XXXXX maildrop has 1 messages (2048 octets)
    +OK 1 2048
    +OK
    +OK 1459 octets
    Return-path:
    Received: from (port=20091 helo=XXXX)
         by mx76.mail.ru with psmtp
         id 1O7UoW-0003I4-00
         for XXXXXX; Thu, 29 Apr 2010 18:34:04 +0400
    Message-ID:
    Subject: Message 29 4
    Date: Thu, 29 Apr 2010 17:33:43 +0300
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
         boundary="----=_NextPart_000_0018_01CAE7C2.1D0BBA60"
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 6.00.2900.5843
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
    X-Spam: Not detected
    X-Mras: Ok
    This is a multi-part message in MIME format.
    =_NextPart_000_0018_01CAE7C2.1D0BBA60
    Content-Type: text/plain;
         charset="utf-8"
    Content-Transfer-Encoding: 8bit
    Test
    Тест
    And after processing by XI mail adapter  I have this payload (XIPAYLOAD mode using mail package)
    Test
    Тест
    The same situation with using mail package in xml document.
    Any suggestions how this can be corrected?

    I switched UTF-8 encoding during displaying of http content in tcpgw utility and all other mail clients detect it as UTF-8 and work fine. Also this problem occurs with different mail clients that are senders of the message. So it seems adapter takes each byte of cyrillic symbol (each from two) and represents it as individual symbol.
    Correct me if I'm wrong. Maybe there is some configuration somewhere allowing to correct or maybe it's possible to write module to correct.. but it's quite complicated to split correct and incorrect symbols.

  • UTF-8 encoded JSPs compilation problem

    Hi,
              I'm using Weblogic 9.0 Beta. I have an XML-format UTF-8 encoded JSP (with the proper encoding declarations). I can see that this is compiled into a UTF-8 Java servlet by WebLogic.
              At the compilation to a class file though, the encoding is corrupted. I guess that the Java compiler is assuming a system-encoded (which would be ISO-8859-1) Java file instead of the actual UTF-8 encoding.
              This problem did not occur with WebLogic 8.1.
              I have tried to explicitly tell the Java compiler to treat the source files as UTF-8 in weblogic.xml, i.e.
              <jsp-param>
              <param-name>compileFlags</param-name>
              <param-value>-encoding UTF8</param-value>
              </jsp-param>
              but that had no effect.
              Anyone else noticed this?
              I assume that correct behaviour is for WebLogic to preserve encoding from JSP to servlet to class file, rather than for me to set encoding in weblogic.xml. Is that correct?
              Is there a workaround?
              Thanks for any help you can offer!

    Solved
    It is about Tomcat's character encoding not about the codes..
    For more info:
    [http://wiki.apache.org/tomcat/Tomcat/UTF-8]

  • Logon Problem in to third party HTTP Server using HTTP Adapter

    Hi All,
    I am trying to use a receiver HTTP Adapter to communicate to third party asp based Webserver.
    The Server expects the content type as application/x-www-form-urlencoded.
    So, in the HTTP receiver communication channel I gave content type as application/x-www-form-urlencoded. The Problem is that now we are getting logon error message from the application though we use the correct user and password provided by them.
    They have given us a HTTP test tool which is perfectly working with the user ad password used in PI HTTP Adapter receiver channel.
    kindly share your thoughts on this issue.
    Thanks in advance.
    Regards,
    Sudharshan N A

    Satish,
    I have used Non-SAP logon only..
    I doubt that the problem may be due to some encoding issue.. since the webserver expects a different Content type (application/x-www-form-urlencoded).
    I donno if my doubt is logical
    thanks.
    Regards,
    Sudharshan N A

  • HTTP Adapter - Problem sending message to XI.

    Hi,
      We have configured a scenario in IR and ID for the HTTP -> XI -> RFC message flow. We have created all the configuration objects (Receiver determination, receiver agreement, interface determination) in ID except the Sender Agreement (There is no Sender HTTP Adapter). So to trigger this interface we are sending the message to the following URL using a client HTML page.
    http://IPAddr:8000/sap/xi/adapter_plain?namespace=http://sap.com/xi/XI/TestPOC/r3&interface=MI_File_RFC_WeyPOC&service=SourceBS_XI&QOS=BE&sap-user=J2EE_GUEST&sap-password=JGUEST&sap-client=001&sap-language=EN
    After submitting the contents in HTML page, it is asking us SAP Web Application Server user id and password. Which user id shall we give here. We have tried giving the J2EE_ADMINISTRATOR user id and it's password but it gives "the requested resource does not exist" error messgage.
    How to resolve this problem ?
    Thanks and Regards,
    Lalit.

    Hi Lalit,
    try the xiappluser or a copy of it, like Sudhir said.
    But there is something else...
    You must code special characters such as forward slash (/), hyphen , period (.), or colon ( with escape characters (for example, %2F for /, %2D for -, %2E for .,and %3A for :).
    ( http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm )
    Yours,
    Thomas

  • Problem with plain http adapter on XI 2.0

    Hi all,
    i have a problem setting up proper communication between XI 2.0 and PI 7.0 system using plain http adapter.
    Regardless of what i pass as url argument, i always receive the following error message:
    HTTP-Server Code 500 Reason Internal Server Error Explanation URL-Parameter namespace (Sender Interface-namespace) is missing (see first link)
    SXMB_MONI Trace:
    [http://image-upload.de/image/Rv3NeE/77c11c84fc.jpeg]
    Configuration:
    [http://image-upload.de/image/5Z2Gwr/90c19f2074.jpeg]
    [http://image-upload.de/image/hGrzQL/559bf5e566.jpeg]
    [http://image-upload.de/image/2WqCqz/7513a1a366.jpeg]

    Hi,
    the namespace of the inbound interface in the interface determination was missing. So now it kind of works. But we still have the problem, that we are not able to pass parameters via URL, the XI 2.0 just ignores them.
    Is there a way to enhance the url by using the Header Fields tab. Can you give me an example for the valid params?
    Best Regards
    Sven

  • Mail adapter and UTF-7 encoded messages

    Hi,
    a customer of us wants to know if it is possible to receive UTF-7 encoded messages using the Mail adapter.
    Is there a configurable parameter to do this? Or is the only solution to change the Mail adapter code. If so are there examples available?
    Thanks!

    Tamil,
    The best thing would be create alerts for both the mapping and adapter alerts. If there is any mapping failure then an email will be send to you. With adapter alerts if there any errors on adapters it will send you a mail. You dont need a fault message for it.
    Check this weblogs for creating alerts:
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    ---Satish

  • Gzip encoded XML data in HTTP adapter

    Hi,
    I'm involved in building an synchronous interface to an external credit agency. According to their documentation their XML response is encoded as a
    gzip XML-data stream. As I understand this it implies that the XML data stream is compressed. Does the XI HTTP adapter (Web-As ICM/ICF framework) support this encoding? 
    Johan Göthberg

    From Adobe Support...
    "When you use an XML-based data provider with a tree you must
    specify the label field, even if it is "label". The XML object
    includes the root, so you must set showRoot="false". Remember that
    the Tree will not, by default, reflect dynamic changes to the XML
    object."
    So all I had to do was change the component tag from this:
    <mx:Tree id="checkTree"
    itemRenderer="util.CheckTreeRenderer" labelField="label"
    width="100%" height="100%" />
    to this:
    <mx:Tree id="checkTree"
    itemRenderer="util.CheckTreeRenderer" showRoot="false"
    labelField="@label" width="100%" height="100%" />
    Just as an FYI... The Adobe support is worth the cost if you
    are fairly new to Flex. I have been flexing for about 9 months now
    and find their service invaluable!!!
    Have an Ordinary Day...
    KomputerMan ~|:-)

  • Problems with Http-servlet : UTF-8

    I am having some difficulty with UTF-8 encoded
    chracaters in a Java servlet.
    My servlet accepts an XML file conteining a question and returns an HTM page. The XML has cyrillic characters encoded as utf-8.. The rendering
    servelt copes with this fine, and the HTML produced
    displays OK in the browser (the response type on the
    Java servelet has to be set to "text/html;
    charset=UTF-8" for this to work).
    I have to send cyrillic characters back in the
    response to the question in a text field in the HTML form.The browser is
    correctly sending back the byte stream (which I am
    printing here as hex): d0b3d0bed180d0bed0b4 (this is a
    cyrillic word correctly coded as utf-8).
    However, on collecting the response (using
    request.getParameterValues(fieldname)) the servlet
    returns the byte stream: d0b3d0bed13fd0bed0b4.
    A mistake in the fifth byte.
    Can anyone help with this problem? Is there a known problem with the JAVA UTF-8 converter?
    Regards
    Graham

    I now know the answer to this problem thanks to Bruno Van Haetsdaele .
    Before calling request.getParameterValues(fieldname));
    one should call request.setCharacterEncoding("UTF-8");
    Hope that helps somebody else!

  • Need help for UTF-8 Encoding comparison problem

    Hi, all
    I'm doing some unit testing for comparing two xml results. The problem is they are using "UTF-8" encoding. After I grab them out, I don't know how to compare them in order to get expected result. I have tried IOUtils and set the system properties by System.setProperty( "file.encoding", "UTF-8" ); None of them works. Anyone can give me a hand? Thanks
    Edited by: AllenZhao on Nov 12, 2007 1:38 PM

    rayon.m wrote:
    hunter9000 wrote:
    What exactly are you trying to compare? Are they files, Strings in memory, streams? Remember that encodings only come into play when you convert text from Strings in memory to bytes on disk (or some other external source, like an output stream).eh?
    Encodings are rather important when you read a file.Yes, you're right, thanks. I got lazy and assumed the OP knew I was only talking about outputting Strings, without actually stating that, so I forgot to describe the other half of the process. Posting this close to quitting time is a bad idea ;)

Maybe you are looking for

  • Best approach to add Z custom field to IC Agent Inbox search and results view

    Hi Experts, We are having a requirement to add a Z custom field to IC Agent Inbox search and results view. I got multiple forums and ideas, but looking for the best approach for handling this. I am sure, you experts, would have already done this. Tha

  • Processing multiple files in a directory and merging them with sample text

    Hi, I'm trying to use automator (or applescript, or cmd line) to perform a repetitive action on around 5,000 html files. Here's the problem, can anyone help with the solution. Sample text is in a file called sample.txt I want to add the sample txt co

  • Mac to pc

    is there a way to network a mac and a pc though my mac airport card?

  • Inability to confirm messages in Solution manager

    Hi, We have implemented service desk. and for testing purposes, we entered some messages. Now some of these message cannot be confirmed, an error is received stating, "Document being distributed-changes are not possible" when we go on Edit mode. The

  • Solution to detect and discard duplicate JMS messages

    Hi All,           I have a scenario where in I require this scenario:           Even though JMS messages are sent twice OR multiple times from JMS producer,as for as consumers are concerned,the JMS consumer should be able to detect and discard the me