Encoding from

HI am converting data to
<?xml version='1.0' encoding='UTF-8'?><ns1:OFACCheck xmlns:ns1="http://massmutual.com/webservices"><ns1:XMLRequest>&lt;OFACRequests&gt;&lt;requestcount&gt;1&lt;/requestcount&gt;&lt;/OFACRequests&gt;</ns1:XMLRequest> </ns1:OFACCheck>
but when message goes to wbeservice it is converted to
#60;OFACRequests&#62;&#60;requestcount&#62;1&#60;/requestcount&#62;
#60;/OFACRequests&#62;
But i want to send it in the same way.
Please advise
Thanks
Sebin

Hi,
It might not be taking the namespace ns1 correctly. try manually adding the ns1: to all your nodes and check if that solves the problem.
If not try removing the ns1: from the node <XMLRequest>.
The reason it might be occuring is the web service is not able to determine from which namespace are the node associated to. It might be understand them as individual nodes. Also check the settings on your web service for any encoding. In most of the cases, there might be a problem at the webservice also.
Award if helpful,
Sarath.

Similar Messages

  • Media Encoder From AP-Pro not working

    Hi,
    I'm trying to export a premiere pro file, I go through the "export settings" like normal and then "ok", it goes to "exporting data" but then doesn't go anywhere.
    Normally it should access the "Adobe Media Encoder" but it does nothing. When I try to access "Adobe media encoder from the programs it comes up with the error message:
    "Adobe Media Encoder.exe - Entry Point Not Found" - "The procedure entry point ??0NewHandlerInitializer@ErrorManager@config@@QAE@XZ could not be located in the dynamic link library dvacore.dll".
    So I'm guessing it needs reinstalling but where do I get it from? It is not in the Premiere setup files and it's not on the adobe website, only the updates are.
    I'm using Windows XP and AP-Pro CS4
    Regards,

    Just had the same problem. I have had cs2 cs3 and cs4 on the same PC Windows XP Pro.
    The exact error message as the o.p. was appearing during export from Premier and when opening Encore.
    I was able to resolve this issue after weeks by simply ...
    Close all Adobe programs and restart computer.
    Go to Windows>Control Panel>Adobe Version Cue CS4
    Adobe Version Cue Server window will appear.
    Make sure your firewall is not blocking Version Cue or Adobe Updater.
    Click Updates tab.
    Click "Check for Updates" button.
    Adobe Updater will connect with the update server. Click Details.
    Checkmark Media Encoder and Photoshop Media Encoder.
    Download the latest Adobe Media Encoder updates.
    Im finally encoding right now so Im not stopping to look at the update version, lol. but my current version of Media Encoder is now 4.2.0.006
    [email protected] wrote:
    Hi,
    I'm trying to export a premiere pro file, I go through the "export settings" like normal and then "ok", it goes to "exporting data" but then doesn't go anywhere.
    Normally it should access the "Adobe Media Encoder" but it does nothing. When I try to access "Adobe media encoder from the programs it comes up with the error message:
    "Adobe Media Encoder.exe - Entry Point Not Found" - "The procedure entry point ??0NewHandlerInitializer@ErrorManager@config@@QAE@XZ could not be located in the dynamic link library dvacore.dll".
    So I'm guessing it needs reinstalling but where do I get it from? It is not in the Premiere setup files and it's not on the adobe website, only the updates are.
    I'm using Windows XP and AP-Pro CS4
    Regards,

  • Detecting character encoding from BLOB stream... (PLSQL)

    I'am looking for a procedure/function which can return me the character encoding of a "text/xml/csv/slk" file stored in BLOB..
    For example...
    I have 4 files in different encodings (UTF8, Utf8BOM, ISO8859_2, Windows1252)...
    With java I'can simply detect the character encoding with JuniversalCharDet (http://code.google.com/p/juniversalchardet/)...
    thank you

    Solved...
    On my local PC I have installed Java 1.5.0_00 (because on DB is 1.5.0_10)...
    With Jdeveloper I have recompiled source code from:
    http://juniversalchardet.googlecode.com/svn/trunk/src/org/mozilla/universalchardet
    http://code.google.com/p/juniversalchardet/
    After that I have made a JAR file and uploaded it with loadjava to my database...
    C:\>loadjava -grant r_inis_prod -force -schema insurance2 -verbose -thin -user username/password@ip:port:sid chardet.jarAfter that I have done a java procedure and PLSQL wrapper example below:
       public static String verifyEncoding(BLOB p_blob) {
           if (p_blob == null) return "-1";
           try
            InputStream is = new BufferedInputStream(p_blob.getBinaryStream());
            UniversalDetector detector = new UniversalDetector(null);
            byte[] buf = new byte[p_blob.getChunkSize()];
            int nread;
            while ((nread = is.read(buf)) > 0 && !detector.isDone()) {
                detector.handleData(buf, 0, nread);
            detector.dataEnd();
            is.close();
           return detector.getDetectedCharset();
           catch(Exception ex) {
               return "-2";
       }as you can see I used -2 for exception and -1 if input blob is null.
    then i have made a PLSQL procedure:
    function f_preveri_encoding(p_blob in blob) return varchar2 is
    language Java name 'Zip.Zip.verifyEncoding(oracle.sql.BLOB) return java.lang.String';After that I have uploaded 2 different txt files in my blob field.. (first one is encoded with UTF-8, second one with WINDOWS-1252)..
    example how to call:
    declare
       l_blob blob;
       l_encoding varchar2(100);
    begin
    select vsebina into l_blob from dok_vsebina_dokumenta_blob where id = 401587359 ;
    l_encoding := zip_util.f_preveri_encoding(l_blob);
    if l_encoding = 'UTF-8' then
       dbms_output.put_line('file is encoded with UTF-8');
    elsif l_encoding = 'WINDOWS-1252' then
       dbms_output.put_line('file is encoded with WINDOWS-1252');
    else
        dbms_output.put_line('other enc...');
    end if;
    end;Now I can get encoding from blob and convert it to database encoding and store datas in CLOB field..
    Here you have a chardet.jar file if you need this functionality..
    https://docs.google.com/open?id=0B6Z9wNTXyUEeVEk3VGh2cDRYTzg
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:34 PM
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:34 PM
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:38 PM

  • Encoded "From" header issue

    Hi,
    I would like to know if there is any method in the JavaMail API to retrieve the only email address from an encoded "From" header without using, splits, regexs, etc.
    Example:
    Using aMimeMessage.getFrom()[0].toString() the output is +=?iso-8859-1?Q?Andr=E9_Silva?=<[email protected]>+;
    using MimeUtility.decode(aMimeMessage.getFrom()[0].toString()); the output is Andr&eacute; Silva<[email protected]>
    Wanted output: [email protected]

    Hi!
    Create a new instance of object InternetAddress :
    System.out.println("\tFrom : " + new InternetAddress(mime_mess.getFrom()[0].toString()).getAddress());
    System.out.println("\tPersonnal : " + new InternetAddress(mime_mess.getFrom()[0].toString()).getPersonal());
    regards,
    this code is patented... :)

  • Faster method of encoding from FCP

    I posted this in compressor forum as well.
    I've been encoding from FCP 5.0.2 by exporting to compressor. Using my G5 dual 2.7 - my 3 minute credits sequence took approx. 35 minutes to encode.
    For other reasons, I exported the sequence to a self-contained QT movie at current settings. Then dragged it into compressor...the same sequence then encoded in approx 4 minutes.
    4 vs. 35? Why is this. I'm burning a DVD of both right now to see if there is a quality difference. Is this documented else where? Have others done this with similar results?

    I always export a QT movie (usually not self contained unless I also need to render it all) then import that file into Compressor for the speed difference, and encoding isn't using much RAM at all... check out the Activity monitor... it's using CPU cycles though big time. And the slowness is most likely the feeding from FCP to Compressor. Quality difference is null as far as I've seen.... exporting a movie using current settings, self contained or not is the cleanest export, because it doesn't recompress the media at all, it's a perfect copy... Animation is lossless but it's sure is a big file for no gain in this scenario...
    Non self contained movies use the actual media files created by or captured by FCP so there's no loss whatsoever... The only media they actually contain is the audio and any unrendered effects full res RT or not... it will render them all...
    Jerry

  • Does encoding from a Quicktime movie reduce PC compatibility?

    I'm wondering if encoding from a Quicktime file as opposed to
    say, a WMV file, reduces compatibility of the final Flash Video
    product with PC's? Does the PC need anything special to view a
    Flash movie embeded with a video originally compressed with a
    Quicktime codec or once it goes through the Flash Media Encoder is
    the original form the video was in irrelevant?
    Thanks.

    nope, it doesn't matter from which source you encoded your
    flv file (at least not for the end user) as soon as the flv has
    been encoded everyone with a flash player can watch the video.
    Keep in mind that if you targeting a flash player lower then
    7 you need to use the sorenson codec, otherwise go for VP6 and you
    are good to go
    btw, the source can be whatever you want, but keep in mind
    that it's not a good practice re-compressing videos

  • Can encode form Premiere directly, but cannot encode in Media Encoder from Premiere Pro

    I can encode form Premiere directly, but cannot encode in Media Encoder from Prem.

    We need to know a lot more to help you.
    Please provide answers to the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"

  • Long load times normal for Adobe Media Encoder from Premiere CS5?

    When I export a sequence from Adobe Premiere CS5 using Adobe Media Encoder, the system freezes for several minutes before giving me the exporter screen.  Then, when I've loaded my settings and clicked "export," the system again freezes for several minutes before beginning to encode.    I'm using a system with an Intel I7 CPU 930 @ 2.80Ghz 2.80 Ghz., 24 GB of ram, Windows 7 Ultimate 64 bit operating system and an Nvidia quadro FX4800 graphics card..  Everything else is fast, but AME is slow.  Is this normal? Should I reinstall AME?

    Not sure what you mean about the process.  From Premiere CS5, I click on "export" which brings up a menu. I select "media" from the menu which brings up the Adobe Media Encoder.  I adjust my settings and click "export" from the bottom of the screen to immediately render the Premiere file.  Clicking "Queue" would put the program into the AME Queue.  Am I missing something?  On the slowness issue, looks like I need to reinstall AME. I've been reluctant to do that, partially because I'm using some Matrox hardware and I'll have to reinstall the Matrox softare to populate the matrox settings into the media encoder. Looks like it may be worth it.
    Thanks.

  • Message encode from mobile device

    Message received encoded koi8-r was forwarded from a mobile device connected to Exchange 2010 with the header was encoded in windows-1251 and the message body in koi8-r and accordingly the recipient(user) could not read it. How can I fix these errors?

    I am still waiting for anybody that can help me with this problem. I have uninstalled and reinstalled many time without success.

  • Best way to encode from mini dvd's for FCP

    My mom has a few mini DVD's that she wants me to edit for her. The DVD's are from the Sony DCR-DVD610. So my question is, what is the best way to bring the footage into FCP? Should I use Handbrake, or the MPEG Streamclip, or another program? Also, what settings should I use to encode them for use in FCP?

    The "make dv" option in Streamclip works reasonably well for me.
    --Bob

  • When I add my composition to the Adobe Media Encoder from After Effects, it renders out incorrectly?

    Why is it that when I add my composition directly from after effects to the adobe media encoder, it renders out of the adobe media encoder incorrectly? By that I mean the video comes out a little scrambled- parts of it overlap other parts. Is this an issue with 'dynamic link'? Did I do something wrong? I'm working in CC.

    I also don't understand what you are saying. What do you mean by "parts of it overlap other parts"? A screen shot might help.
    What were your render settings in AME? (Format, Codec, data rate, etc.)
    What is in your AE comp? If footage, tell us what format, codec, etc. Tell us what effects were used too.
    What exact version number of AE CC are you using?

  • Xml payload encoding from utf to iso

    Hi Experts,
    Could you please let me know how can I encode he xml payload from utf-8 to ISO-8859-1.
    its bit urgent any help is appreciated.
    Thanks & Regards,
    Ranganath.

    Hi Ranganath,
    Here is the java mapping for PI 7.1 and above which will transform encoding type from utf-8 to ISO-8859-1.
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class addAttributeToTag2 extends AbstractTransformation {
          * @param args
         public void execute(InputStream in, OutputStream out)
                   throws StreamTransformationException {
              // TODO Auto-generated method stub
              try
                   int c;
                   int count=0;
                   String s="";
                   while(1>0)
                        c=in.read();
                        if(c<0)
                             break;
                        if(count<=2 && (char)c=='?')
                             count++;
                        if(count<=2)
                             s=s+(char)c;
                             if(count==2)
                                  s=s.replaceAll("utf-8","ISO-8859-1");
                                  s=s.replaceAll("UTF-8","ISO-8859-1");
                                  count=3;
                                  out.write(s.getBytes());
                             continue;
                        out.write(c);
                        //System.out.print((char)c);
                   in.close();
                   out.close();
              catch(Exception e)
         public void setParameter(Map arg0) {
              // TODO Auto-generated method stub
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              try{
                   addAttributeToTag2 genFormat=new addAttributeToTag2();
                   FileInputStream in=new FileInputStream("C:\\Apps\\my folder\\sdn\\copy.xml");
                   FileOutputStream out=new FileOutputStream("C:\\Apps\\my folder\\sdn\\copy1.xml");
                   genFormat.execute(in,out);
                   catch(Exception e)
                   e.printStackTrace();
         public void transform(TransformationInput arg0, TransformationOutput arg1)
                   throws StreamTransformationException {
              this.execute(arg0.getInputPayload().getInputStream(), arg1.getOutputPayload().getOutputStream());
    if you are working in PI 7.0 the you need following code
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class addAttributeToTag2 implements StreamTransformation {
          * @param args
         public void execute(InputStream in, OutputStream out)
                   throws StreamTransformationException {
              // TODO Auto-generated method stub
              try
                   int c;
                   int count=0;
                   String s="";
                   while(1>0)
                        c=in.read();
                        if(c<0)
                             break;
                        if(count<=2 && (char)c=='?')
                             count++;
                        if(count<=2)
                             s=s+(char)c;
                             if(count==2)
                                  s=s.replaceAll("utf-8","ISO-8859-1");
                                  s=s.replaceAll("UTF-8","ISO-8859-1");
                                  count=3;
                                  out.write(s.getBytes());
                             continue;
                        out.write(c);
                        //System.out.print((char)c);
                   in.close();
                   out.close();
              catch(Exception e)
         public void setParameter(Map arg0) {
              // TODO Auto-generated method stub
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              try{
                   addAttributeToTag2 genFormat=new addAttributeToTag2();
                   FileInputStream in=new FileInputStream("C:\\Apps\\my folder\\sdn\\copy.xml");
                   FileOutputStream out=new FileOutputStream("C:\\Apps\\my folder\\sdn\\copy1.xml");
                   genFormat.execute(in,out);
                   catch(Exception e)
                   e.printStackTrace();
    However as Krish has pointedf out file adapter has option to set encoding type, you can try that option first.
    regards
    Anupam

  • 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

  • Change Encoding from PCM to GSM

    i want to send sound over the network. i have already an application, which captures sound from a microphone, sends raw sound data(byte array) over the network and plays this sound on an other computer.
    how can i change the encoding? from pcm to gsm.
    i have read that i must use an audioInputStream to do this, but i dont know how.
    can anybody please help me.

    I believe JMF can do it. Otherwise, googling for "GSM 6.10" should reveal plenty of implementations in a variety of languages - maybe even some in Java. But do you really need to use GSM? There are probably better choices for most applications.

  • Oracle 9i +Java: Change string encoding from UTF-16 to Windows-1251

    Dear colleagues,
    I have a very urgent case: need to change encoding of the string retrieved from the file (with encoding UTF-16) to Windows-1251 and put it to db table, to CLOB field.
    Code of the Java function
    +public static void file2table(String sql, String fileName, String characterSet, int asByteArray) throws SQLException, IOException {+
    Connection con = null;
    Writer writer = null;
    Reader reader = null;
    +try {+
    con = getConnection();
    PreparedStatement ps=con.prepareStatement(sql);
    reader = new InputStreamReader(new BufferedInputStream(new FileInputStream(new File(fileName))), characterSet);
    BufferedReader br = new BufferedReader(reader);
    String s;
    +while ((s = br.readLine()) != null) {+
    byte[] defaultBytes=s.getBytes(characterSet);
    String win1251str=new String(defaultBytes, "windows-1251");
    +if(asByteArray>0) {+
    ps.setBytes(1, defaultBytes);
    +//ps.setBytes(1, win1251str.getBytes("windows-1251"));+
    +} else {+
    ps.setString(1, s);
    +}+
    ps.executeUpdate();
    +}+
    con.commit();
    +} finally {+
    +if (reader != null) {reader.close();}+
    +if (con != null) {con.close();}+
    +}+
    +}+
    I was check, all bytes from the file received correctly. But if I put readed bytes to database table, result text in table is broken.

    >
    Yes, currently I already have filled table with all file lines in result table but with incorrect encoding
    >
    No you haven't - not using the code you posted. You can't save LOB data using only the BLOB or CLOB.
    That isn't data that you strored - it is garbage that is being stored as the LOB locator.
    I ask you why you were trying to store the data that way instead of the way the doc shows you and you said
    >
    Because var. s is type of Java String.
    For method setClob must be use type of CLOB
    >
    You are teriibly confused about LOBs. A BLOB or CLOB Java datatype is the LOB LOCATOR and doesn't contain any data.
    Yes - it is true that method setClob must be of type CLOB but that CLOB instance HAS TO BE THE LOB LOCATOR - not the data.
    You access LOB data using streams. To store LOB data you have to RETRIEVE (not send) a LOB locator from the database and then use the locator's stream to send the actual data.
    So if you are creating a new record in the table you typically do an INSERT that includes an EMPTY_LOB() and have the newly created LOB locator returned to you. Then you use that locators stream to send the actual data.
    Since you are not doing that your approach will not work.
    Here is a link to the 9i JDBC Dev Guide
    http://docs.oracle.com/cd/B10501_01/java.920/a96654.pdf
    See page 8-2 to start with
    >
    BLOB and CLOB data is
    accessed and referenced by using a locator, which is stored in the database table and
    points to the BLOB or CLOB data, which is outside the table.
    To work with LOB data, you must first obtain a LOB locator. Then you can read or
    write LOB data and perform data manipulation. The following sections also
    describe how to create and populate a LOB column in a table.
    The oracle.sql.BLOB and CLOB classes implement the java.sql.Blob and
    Clob interfaces, respectively (oracle.jdbc2.Blob and Clob interfaces under
    JDK 1.1.x). By contrast, BFILE is an Oracle extension, without a corresponding
    java.sql (or oracle.jdbc2) interface.
    Instances of these classes contain only the locators for these datatypes, not the data.
    After accessing the locators, you must perform some additional steps to access the
    data. These steps are described in "Reading and Writing BLOB and CLOB Data" on
    page 8-6 and "Reading BFILE Data" on page 8-22.
    Note: You cannot construct BLOB, CLOB, or BFILE objects in your
    JDBC application—you can only retrieve existing BLOBs, CLOBs,
    or BFILEs from the database or create them using the
    createTemporary() and empty_lob() methods.
    >
    Read the above quotes several times until you understand what they are telling you. These are the two main concepts you need to accept:
    >
    To work with LOB data, you must first obtain a LOB locator.
    You cannot construct BLOB, CLOB, or BFILE objects in your JDBC application
    >
    See the example code and description starting on page 8-11 for how to populate a LOB column in a table
    >
    Create a BLOB or CLOB column in a table with the SQL CREATE TABLE statement,
    then populate the LOB. This includes creating the LOB entry in the table, obtaining
    the LOB locator, creating a file handler for the data (if you are reading the data from
    a file), and then copying the data into the LOB.
    >
    Until you start using the proper methodology you are just wasting you time and will not be successful.

  • Encoding from UTF-16 to UTF-8

    Hi,
    I need to convert from UTF-16 to UTF-8 encoding.
    I receive an CSV file in encoding UTF-16 for our backend system. but our external partner needs the encoding to be UTF-8
    How can I change the encoding ?

    Hello Frank,
    We have used TextCodePageConversionBean to meet such a requirement in one of our scenarios using CSV files.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/da2deb47812e98e10000000a155369/content.htm
    Can you please try this and let us know if this helps?
    Thanks.
    Best Regards,
    Shweta

Maybe you are looking for

  • How to merge two Apple accounts by migration

    Hello to you all My question relates about merging two apple accounts. Having two accounts is an issue (for instance when you start setting up Family sharing, or trying to get phone calls on your Mac) As we know, merging two accounts is alas (still ?

  • Unable to preview existing SSRS reports in VS2010 x64

    I cannot preview any SSRS reports in VS2010, there are no errors, warnings or messages.  Output window says "Build: 1 succeeded or up-to-date, 0 failed, 0 skipped." The preview window reads: An error occurred during local report processing. An error

  • Use the Transit Times of route stages ?

    Hello. I would like to now if I somehow can use the transit time of the route stages instead of the header route transit time to reflect correct ATP. Current SAP is 4.7. Business Scenario behind my request is mainly for Ocean Liner Shipments: For Lin

  • How to change language?e

    Hi I have danish language in my photoshop cs6, but i want to have english. Anyone know how to change?

  • Trying to Upgrade iLife 5 to iLife 6 - Elusive Error

    Hi, Searching the Apple website was unproductive. I'm a paid user of iLife 5.0 with master installer CD. I have the receipt on file. I downloaded the various iLife 6 applications, ran the Apple installer to perform the iLife 5.0 to iLife 6.0 upgrade.