A problem about incorrect return value

Hi,expert:
   we have a scenario ECC(Proxy)->PI->P6(soap),  request and response message use the xslt mapping.
   The response message contains chinese characters,but when the message come to PI,the chinese charater is garble.
   The xml encoding is UTF-8.
   I have tested this interface by soapui,and it can return the correct character.
   How can i solve this problem?

Try to change the XML encoding by using XMLAnonymizerBean adapter module.
http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm
Chinese Simplified (GB18030) GB18030
Chinese Simplified (GB2312) GB2312
Chinese Simplified (HZ) HZ
Chinese Traditional (Big5) Big5
Japanese (Shift-JIS) Shift_JIS
Japanese (EUC) EUC-JP
Korean EUC-KR
Unicode (UTF-8) UTF-8
refer this
http://htmlpurifier.org/docs/enduser-utf8.html

Similar Messages

  • Webservice : problem with Base64 returned value

    Hello all,
    We are calling a webservice from a Flex2 application.
    When the returned value does not contain accentuated letters,
    we receive the value "as-is", everything is OK.
    When there is at least one accent, the result is
    automatically Base64 encoded by the server, and the
    xsi:type="n2:base64 is specified in the XML answer.
    The problem is that Flex2 does not Base64 decode the returned
    string, ans we cannot get the right value.
    We do not think that the problem is on the server, because we
    tryied to use 2 other webservice clients, and they worked well.
    We wonder if Flex2 can handle Base64 encoding on Webservice
    results or not.
    We thought abut using the Base64 decoder class, but it won't
    work because the result if not *always* Base64 encoded (depending
    if it contains some chars or not).
    Is there any solution to this issue ? If it can help, I paste
    the XML returned by the server at the end of this message.
    Thank you for your help.
    MiF
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:env="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:GetArticleResponse xmlns:n1="urn:ActionWebService"
    env:encodingStyle="
    http://schemas.xmlsoap.org/soap/encoding/">
    <return xmlns:n2="
    http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="n2:base64">PD94bWwgdmVyc2lvbj0iMS4xIiBlbmNvZGluZz0iSVNPLTg4NTktMSI/Pgo8
    YXJ0aWNsZXM+CiAgPGFydGljbGU+CiAgICA8aWQ+MTwvaWQ+CiAgICA8Y29k
    ZT5NaXRjaDwvY29kZT4KICA8L2FydGljbGU+CiAgPGFydGljbGU+CiAgICA8
    aWQ+MjwvaWQ+CiAgICA8Y29kZT5Qb2xvPC9jb2RlPgogIDwvYXJ0aWNsZT4K
    ICA8YXJ0aWNsZT4KICAgIDxpZD4zPC9pZD4KICAgIDxjb2RlPkvpa+k8L2Nv
    ZGU+CiAgPC9hcnRpY2xlPgo8L2FydGljbGVzPgo=</return>
    </n1:GetArticleResponse>
    </env:Body>
    </env:Envelope>

    You should use cast_to_varchar2 regardless what is source of base64_encode.
    Because base64-value consists of single byte ASCII-characters.

  • Problem to trace return value of malloc provided by libmtmalloc.so

    When using libc, dtrace is able to trace the return value of malloc by following script
    #!/usr/sbin/dtrace -s
    pid$1::malloc:entry
        self->trace = 1;
        self->size = arg0;
    pid$1::malloc:return
    /self->trace == 1/
        printf("Ptr=0x%p Size=%d", arg1, self->size);
        ustack();
        self->trace = 0;
        self->size = 0;
    }While exchange to use libmtmalloc.so(set env LD_PRELOAD=libmtmalloc.so), the script is failed to trace the return value of malloc. the arg1 always stores the memory's size that allocated by malloc, but not the memory's address.
    Do I make some mistakes?

    Problem found,
    http://www.opensolaris.org/jive/thread.jspa?threadID=41902&tstart=0
    But any walk-around or fix?

  • Problem with the return value from a tablemodel after filtering

    I have a form (consult that return a value) with a jtextfield and a jtable. when the user types in the textfield, the textfield call a method to filter the tablemodel.
    everything works fine, but after filtering the model, the references are lost and the return value does not match with the selected row.
    I read that convertColumnIndexToView, convertRowIndexToView, vertColumnIndexToModel and convertRowIndexToModel, solve the problem, but I used all and nothing.
    **** This is the code to fill the jtable
    DefaultTableModel modelo=(DefaultTableModel)this.jTable1.getModel();
    while(rs.next()){
    Object[] fila= new Object[2];
    fila[0]=rs.getObject("id_categoria");
    fila[1]=rs.getObject("nombre");
    modelo.addRow(fila);
    this.jTable1.getColumnModel().removeColumn(this.jTable1.getColumnModel().getColumn(0));
    // I delete the first column because is a ID, I dont want that the user see it. the value is only for me**** this is the method to filter from the jtextfield
    private void FiltrarJtable1() {
    TableRowSorter sorter = new TableRowSorter(this.jTable1.getModel());
    sorter.setRowFilter(RowFilter.regexFilter("^"+this.jTextField1.getText().toUpperCase(), 1));
    this.jTable1.setRowSorter(sorter);
    this.jTable1.convertRowIndexToModel(0);
    }*** this is the method that return the ID (id_categoria) from the tablemodel
    private void SeleccionarRegistro(){
    if(this.jTable1.getSelectedRow()>-1){
    String str_id =this.jTable1.getModel().getValueAt(this.jTable1.getSelectedRow(),0).toString();
    int_idtoreturn=Integer.parseInt(str_id);
    this.dispose();
    }else{
    JOptionPane.showMessageDialog(this,"there are no records selected","Warning!",1);
    }Who I can solve this problem?

    m_ilio wrote:
    I have a form (consult that return a value) with a jtextfield and a jtable. when the user types in the textfield, the textfield call a method to filter the tablemodel.
    everything works fine, but after filtering the model, the references are lost and the return value does not match with the selected row.
    I read that convertColumnIndexToView, convertRowIndexToView, vertColumnIndexToModel and convertRowIndexToModel, solve the problem, but I used all and nothing.
    You're right in that you have to use convertRowIndexToModel(), but you are using it wrong. That method takes as input the index of a row in the view, i.e. the table, and returns the corresponding row in the underlying TableModel. No data is changed by the call, so this:
    this.jTable1.convertRowIndexToModel(0);is meaningless by itself.
    What you need to do is the following:
    int selectedRow = this.jTable1.getSelectedRow(); // This is the selected row in the view
    if (selectedRow >= 0) {
        int modelRow = this.jTable1.convertRowIndexToModel(selectedRow); // This is the corresponding row in the model
        String str_id =this.jTable1.getModel().getValueAt(modelRow, 0).toString();
    }Hope this helps.

  • Problem with Bapi_po_Getdetail return values

    We have developed a web service in asp.net to get the details of a particular purchase order number calling Bapi_po_Getdetail. The input parameters that we pass are:
    string  ITEMS = “X”
    string PURCHASEORDER= “<purchase order number>”
    But when we debug and check the return values from the bapi, BAPIEKPO Table doesn’t have any data, it is null.
    Could someone help us, please?

    Please initialize the BAPIEKPOTable bedore call. Passing null allways returns null.
    NCo:
    string ITEMS = “X”
    string PURCHASEORDER= “<purchase order number>”
    BAPIEKPOTable result = new BAPIEKPOTable();
    proxy.Bapi_po_Getdetail(ITEMS, PURCHASEORDER, ref result);
    Soap Processor / Web Service Wizard
    string ITEMS = “X”
    string PURCHASEORDER= “<purchase order number>”
    BAPIEKPO[] result = new BAPIEKPO[0];
    proxy.Bapi_po_Getdetail(ITEMS, PURCHASEORDER, ref result);

  • LOV problem with multiple return values.

    I created a ViewObject and in it a transient attribute.
    I create a ViewAccessor for another field and a LOV for it (default InputText with Lov Value).
    In List Return Values I added also my tranient attribute in order to receive another attribute from the accesor VO.
    When I run it from the Application browser I see my transient attribute emtpty even if the "source" attribute is not empty.
    If I change the value from the LOV the source value changes bit the transient is still empty.
    What's wrong ?
    Tks
    Tullio

    Repost.

  • PROBLEM IN GIVING RETURN VALUES IN SECOND PROGRAM GROUPING IN BENEFITS MODU

    HI EXPERTS..
    what could be the return values for the  bstat if we define 2 nd progarm grouping as different geographical locations?
    Is it possible to use geographical locations in defining first program grouping or second program grouping?
    Please give u r valiuable advice..
    thanks in advance.
    sairam

    HI EXPERTS..
    what could be the return values for the  bstat if we define 2 nd progarm grouping as different geographical locations?
    Is it possible to use geographical locations in defining first program grouping or second program grouping?
    Please give u r valiuable advice..
    thanks in advance.
    sairam

  • Load excel file value to graph problem(about x-axis value)

    Hello,everyone,I have this problem.
    When I load the excel file which I saved before,the waveform came out normally,but the x-axis of graph waveform was not shown the number I want,it shown the number based on the no.of samples.
    What I want is plot the x-axis value based on the rate(pts/s).For this case,rate is 50prs/s,so after calculation...0.02s per reading.totally is 20 seconds.I tried to use XY-Graph,but didn't solve out.
    Jerry
    LV 7.1
    Attachments:
    delete 0 array.vi ‏14 KB
    test3.txt ‏20 KB
    Create Waveform Graph1.vi ‏275 KB

    is it always 0.02s per reading or did you get this figure from some calculation?? in anyway, you just connect that value (the constant 0.02 or calculated amount) to a Property Node... you link the Property Node to Waveform Graph 2... under property choose X-Scale -> Offset and Multiplier -> Multiplier...
    i'm not sure if this is the best method but hope it helps... i've tried it on your code and it works...
    Best Regards,
    JQ
    LV 8.0 user...

  • Asset Transfer - problems with incorrect depreciation values/period

    Hi,
    I'm trying to do an asset transfer between two company codes with transaction ABT1N using the gross method.
    My problem is that when the asset is transferred the number of depreciation periods restart in the receiving company but with the net value from the sending company.
    Example:
    Company 1100:
    Asset 1:
    Aquired: january 2005
    Value: 10 000 $
    Depreciation time: 5 year x 12 months = 60 periods
    Transfer to company 1200 on july 2007...
    Depreciation in 1100 so far = 5 000 $
    Net value to be transferred to CoCode 1200: 5 000 $
    Here comes the problem, when I look at the depreciation time in company 1200 after the transfer, I see that the system now wants to depreciate the net value of 5 000 $ on another 60 periods period. This means that the asset will have a lifetime of 7,5 years in total instead of 5 years.
    What I want to do is that after the transfer the depreciation should only by the the number of periods that is left from the original depreciation start in company 1100. This means that after the transfer there should only be 30 depreciation periods left in company 1200 on the transferred asset.
    Thanks for response! I will add a lot of points to thoose that provides me with solution solving info.
    Best regards
    Carl-Johan

    Carl,
    This is where you can influence the fileds to be transfered in the transfer variant [1-Gross in your case].
    Asset Accounting>Transactions>Intercompany Asset Transfers>Automatic Intercompany Asset Transfers>Define Transfer Variants-->Specify Transfer of Fields (for New Asset in Target CoCd)
    Select the variant 1-Gross method and then click on the Depreciation area on the left bar. The system will display the all the Depreciation area for the Chart of Depr in question. Here for each depreciation area you can dictate what values from the old asset need to be trf to the new asset.
    In your case, the system is not transfering the remaining useful life. Precisely you need to transfer the field group 19-Expired useful life and 20-Expired life in periods.
    That should do the needful for you.
    Have a nice day.
    Vishal Thakur.

  • ODBC SQLRemoveDriver: Incorrect return value?

    (Not sure if this is the right forum, suggestions welcome.)
    SQLRemoveDriver appears to be returning TRUE even if there are no drivers installed. This contradicts the documentation (https://msdn.microsoft.com/en-us/library/ms713723.aspx):
    Returns
    The function returns TRUE if it is successful, FALSE if it fails. If no entry exists in the system information when this function is called, the function returns FALSE.
    Known issue? Or am I misunderstanding the doc? Thanks for any insights.
    Repro:
    DWORD usage_count;
    while (SQLRemoveDriver((LPCSTR)driver->name, FALSE, &usage_count) == TRUE) {
        printf("Driver unregistered successful: usage count is %d\n", usage_count);
    Output:
    1>------ Build started: Project: win_driver, Configuration: Debug Win32 ------
    1> driver.vcxproj -> E:\odbc\driver\output\Debug\driver.dll
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1> Driver unregistered successful: usage count is 0
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5):
    warning MSB5021: "cmd" and its child processes are being terminated in order to cancel the build.
    1>A task was canceled.
    1>A task was canceled.
    Build has been canceled.

    p.s. Appears to be an issue only on Win8. On Win7 it behaves as expected.

  • ADF Code Corner 069 : problem with returned value

    Hello,
    I use jdeveloper 11.1.2.2.0 and am trying to follow the sample 69 from ADF Code Croner : how-to create a custom LOV using bounded task flows. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf
    I have a problem with the returned value. The correct value is returned in the inputText but it seems that it is just at UI level and that binding layer is not impacted. If user click on next button, all others rows show the same value in the inputText (the value chosen before in the lov), and not the correct value which must be value from db.
    How can I solve this problem?
    note : opening the 69-sample, jdeveloper ask me to migrate some files (jpr/jws) from previous version of jdeveloper.
    Edited by: h0s on 8 oct. 2012 06:14

    Yes It happens with the downloaded sample. You can do this test :
    Launch EmployeesForm activity -> Open the LOV and select a department -> click next and see that the department id is the same for all rows.
    jdeveloper 11.1.2.2.0

  • MOD() return value

    Dear Friends,
    Select MOD(200,0) from dual ;
    what is the result of this query? 200 or 0. Please let me know your answer. I tried but it returns 200. I am confused about this return value.
    Bye for now
    sat

    this is correct behaviour.
    Seems to match exactly with the documentation.
    here is the extract for your reference.
    "MOD returns the remainder of m divided by n. Returns m if n is 0."

  • Custom method return value will not pass to form

    I have created a custom method in my application module that returns a integer value. I am trying to use this value to fetch a row to populate a form. I cannot seem to get the value returned to populate the methodAction binding for the form.
    I have no problem displaying the returned value and have no problem populating the form if I hard code a value into the methodAction binding.
    I am trying to determine if this is a timing issue on page load, or some other issue with the returned integer.

    Hi,
    sounds like a lifecycle problem because the method call and execution of the VO iterator happen in the same phase. You can try setting the refresh conditions of the method to prepareModel and the iterator to prepareRender, but I doubt that this will solve the issue.
    What is the usecase ? And can the integer be handled within the AM to restrict the query (e.g. to set a ViewCriteria or bind variable)
    Frank

  • Problem with return value of stored function

    Hi,
    I've made a stored function that insert a new row in a table and return the primary key (see at the end of the message the function script).
    In VS 2005 with Visual basic, using the designer, I've created a dataset containing a tableAdapter to be able to use the Pl/SQL function.
    My problem is I can't get the proper return value. The VB code below works without error except that I get 0 as value.
    What's wrong?
    Cheers,
    Sebastien
    VB code
    Dim myAddSession As New ICISDataSetTableAdapters.AddSessionTableAdapter
    Dim intSessionId As Integer
    intSessionId = myAddSession.ADD_SESSION(tbxUsername.Text, _
    tempFolder.Substring(tempFolder.LastIndexOf("\") + 1), _
    "toto", Environment.GetEnvironmentVariable("COMPUTERNAME"), _
    myLevelAccess.icisUserId, myLevelAccess.levelId)
    The debugger tells me that the ADD_SESSION function return value is Object.
    add_session PL/SQL script:
    CREATE OR REPLACE FUNCTION ICISSEC.add_session (
    orausername IN icis_session.ora_user_name%TYPE,
    ctxsessionid IN icis_session.ctx_session_id%TYPE,
    ctxsessionname IN icis_session.ctx_session_name%TYPE,
    ctxservername IN icis_session.ctx_server_name%TYPE,
    icisuserid IN icis_session.icis_user_id%TYPE,
    startlevelid IN icis_session.start_lvl_id%TYPE
    RETURN icis_session.ICIS_SESSION_ID%TYPE
    IS
    tmpvar icis_session.ICIS_SESSION_ID%TYPE;
    BEGIN
    INSERT INTO icis_session
    (ora_user_name, ctx_session_id, ctx_server_name,
    icis_user_id, start_lvl_id, ctx_session_name
    VALUES (orausername, ctxsessionid, ctxservername,
    icisuserid, startlevelid, ctxsessionname
    RETURNING icis_session_id
    INTO tmpvar;
    COMMIT;
    RETURN tmpvar;
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END add_session;

    naama wrote:
    that if a value is null to convert it to 0 ? . i mean in the part of the declaration of parameter
    Nope, can't do that in the signature. You'll need to handle that by validating the passed parameters at the start of the function.
    It's simple enough. In your case you might just as well test for NULL and fail the function like this:
        FUNCTION date_post_message(
                user_lock_in IN NUMBER,
                form_type_in IN NUMBER DEFAULT 0 ,
                date_in      IN DATE)
            RETURN BOOLEAN
        IS
            v_num NUMBER(1);
        BEGIN
            dbms_output.put_line('Value of parameters : user_lock_in : '||user_lock_in || ' : form_type_in : '||form_type_in||' : date_in : '||date_in );
            IF user_lock_in = 1 THEN
                RETURN FALSE;
            END IF;
            IF form_type_in IS NULL THEN
                RETURN FALSE;
            ELSIF form_type_in NOT IN (1,2) THEN
                RETURN FALSE;
            END IF;
            RETURN TRUE;
        EXCEPTION
        WHEN NO_DATA_FOUND THEN
            RETURN FALSE;
        END;In other use cases I would declare a local variable and process it like this:
            IF form_type_in IS NULL THEN
                l_form_type := 0;
            ELSE
                 l_form_type := form_type_in;
            END IF;Obviously the code should use the local variable rather than the parameter.
    Validating the values passed in parameters at the start of a function is good practice. If you really want to go to town, read about Design By Contract.
    Cheers, APC
    Edited by: APC on Nov 9, 2011 1:36 PM
    Added example, as requested by OP

  • Problem getting pl/sql return value

    Hi,
    I'm using JDeveloper 10.1.2 to generate web service from pl/sql package. But the return value is always zero.
    The function is as follows:-
    FUNCTION GET_LIMIT ( v1 IN NUMBER, v2 IN NUMBER)
    RETURN NUMBER IS
    v_result_nr NUMBER;
    BEGIN
    v_result_nr := v1 * v2;
    END;
    RETURN v_result_nr;
    END GET_LIMIT;
    The result on webservices endpoint page:
    .. - <ns1:getLimitResponse xmlns:ns1="http://com/test/webservices/LimitCheckWS.wsdl" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:decimal" xsi:nil="true" />
    </ns1:getLimitResponse>
    If i change the "RETURN v_result_nr" to "RETURN '1000.00'" and regenerate the web service, the return value as string is ok. The response is 1000.00 xsd:string.
    Any idea why? Thx.

    Ok. problem solved. Setup 10g server using loadjava as per document "1.2.4.4 Verifying or Loading the dbwsclient.jar File". Thanks.

Maybe you are looking for

  • Windows Vista - iTunes not recognising iPod!

    iTunes is not recognising my iPod and the iPod Setup Assistant isn't showing automatically. Can anyone help. I have a new laptop with Window Vista is this operating system the problem? Can help would be appreciated. I can import music into iTunes OK

  • [solved]Catalyst + xorg 1.6 = Has anyone gotten it to work?

    After going over the wiki for ATI and installing the catalyst+catalyst utils (9.4) from AUR using yaourt, the device refused to load. Now, I don't have the error on file as I'm not at home. But the question remains: Has anyone gotten this to work? (*

  • Error synchronizing subscribed folders in MS Outlook 2010

    I get this error message when I open MS Outlook 2010 in Windows 7 after creating a new email profile  !  Task 'Synchronizing subscribed folders for ( my email address )'  reported error (0x800CCC0F) : 'Outlook cannot synchronize subscribed folders fo

  • F-32 Transaction BDC Problem

    Hi All,        I am following the below procedure to populate the transaction F-32 using BDC but I have a small doubt: 1) I go to F-32 Transaction code populate the required fields on that and press F5 2) It takes to second screen which has three fie

  • From LV 10 to labview 2009

    How you guys doing ? can you please do the conversion for me to version 2009 ? Thank you guys   Bill David Solved! Go to Solution. Attachments: Read raw data mod_HR_detrend_denoise(5).vi ‏98 KB