Error object VO when calling Web Service.

Hello
I created a page with 5 field lookup with three buttons and text.

The features are:

1. as the page loads I call Web Service to set the values in the fields.
2. when the user is entering new values or changed the old values and click on the 'save' button, new web service is called for that store values.

Problem is when changing the value of choice of message. For the choice of the message that I created a VO lookup_code and sense.

When I click on 'save' button it shows me error
Attribute set for LookupCode in view object EncryptionModeVO1 failed
 
Kind regards
Ajay

Well, you use certain methods (like setattributevalue, setrendered etc.) in processformrequest that goes against the standards. You must use SPEL approach wherever possible.

You can hide the exception of developer mode. See thread Re: OAF: masking errors and Exceptions at the top of page OFA for details, but keep in mind that these errors may be valid in some cases.

Thank you
Shree

Tags: Oracle Applications

Similar Questions

  • German characters problem when calling Web Services via UTL_HTTP

    Dear members,

    I try to call the services of SAP CRM Web of Oracle PL/SQL. I used following code which works very well.
    -- call web service using Oracle UTIL_HTTP packages
    DECLARE
      http_req utl_http.req;
         http_resp utl_http.resp;
         lv_request VARCHAR2(32767);
         lc_response CLOB;
         lv_buffer VARCHAR2(32000);
         lv_name          VARCHAR2(256);
         lv_hdr_value     VARCHAR2(1024);     
         l_xml XMLType;          
    BEGIN     
         utl_http.set_persistent_conn_support(true);
         utl_http.set_transfer_timeout(600);
         
         http_req:= utl_http.begin_request
                                       ( url => 'http://xyz3ni92.server.xyz.com:8045/sap/bc/srt/xip/sap/crm_bupa_custid_qr/011/customersbycrmid/http_binding'
                                       , method => 'POST'                              
                                       );
         lv_request := '<?xml version="1.0" encoding="UTF-8"?>'
         ||'<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/CRM/Global2">'
       ||'<soap:Header/>'
       ||'<soap:Body>'
          ||'<glob:CustomerCRMByIDQuery>'
             ||'<MessageHeader>'
                ||'<ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ID>'
                ||'<UUID></UUID>'
                ||'<ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?"></ReferenceID>'
                ||'<ReferenceUUID></ReferenceUUID>'
             ||'</MessageHeader>'
             ||'<BusinessPartnerSelectionByBusinessPartner>'
                ||'<UUID schemeID="?" schemeAgencyID="?"></UUID>'
                ||'<InternalID>2200117598</InternalID>'
             ||'</BusinessPartnerSelectionByBusinessPartner>'
          ||'</glob:CustomerCRMByIDQuery>'
               ||'</soap:Body>'
         ||'</soap:Envelope>';     
         /*set username and password*/
         utl_http.set_authentication (
                   r => http_req,
                   username => 'WS_USER',
                   password => 'WS_PASSWORD',
                   scheme => 'Basic',
                   for_proxy => false);     
                   
         utl_http.set_header(http_req, 'Content-Type', 'application/soap+xml;charset=UTF-8'); 
         utl_http.set_header(http_req, 'Content-Length', LENGTHB(lv_request));
         utl_http.write_text(http_req, lv_request);
         /*Make HTTP call*/
         http_resp:= utl_http.get_response(http_req);
         
         /*read response text from response*/
         BEGIN
                   LOOP
                             utl_http.read_text(http_resp, lv_buffer);
                             lc_response := lc_response || TO_CLOB(lv_buffer);
                   END LOOP;
         EXCEPTION
                   WHEN OTHERS THEN
                        -- ora-29266 end-of-body reached
                        IF SQLCODE <> -29266 THEN
                                  RAISE;
                        END IF;
         END;
         utl_http.end_response(http_resp);     
         l_xml := XMLType(lc_response);
         /*Log response for testing*/
         DELETE FROM webservice_log;
         INSERT INTO webservice_log (seq_id,xml_response) VALUES (sqe_Webservice_Log.NEXTVAL,l_xml);
    EXCEPTION WHEN OTHERS THEN
              RAISE;
    END;
    However, if there are any German character in SAP, then they are replaced by UNWANTED data when they come to Oracle.

    If I invoke continues the same web service tools like SOAP-UI, then German characters do very well. I've also drawn web service queries and answers of the side SAP, and there response shows fine. When it comes to Oracle, they are themselves corrupt.

    I'm sure it's something to do with the character, but I am not able to find where and what should I fix/change.

    Thank you for your help in advance.

    DB: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    NLS_DATABASE_PARAMETERS
    PARAMETER                      VALUE                                  
    ------------------------------ ----------------------------------------
    NLS_LANGUAGE                   AMERICAN                                 
    NLS_TERRITORY                  AMERICA                                  
    NLS_CURRENCY                   $                                        
    NLS_ISO_CURRENCY               AMERICA                                  
    NLS_NUMERIC_CHARACTERS         .,                                       
    NLS_CHARACTERSET               AL32UTF8                                 
    NLS_CALENDAR                   GREGORIAN                                
    NLS_DATE_FORMAT                DD-MON-RR                                
    NLS_DATE_LANGUAGE              AMERICAN                                 
    NLS_SORT                       BINARY                                   
    NLS_TIME_FORMAT                HH.MI.SSXFF AM                           
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM                 
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR                       
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR             
    NLS_DUAL_CURRENCY              $                                        
    NLS_COMP                       BINARY                                   
    NLS_LENGTH_SEMANTICS           BYTE                                     
    NLS_NCHAR_CONV_EXCP            FALSE                                    
    NLS_NCHAR_CHARACTERSET         AL16UTF16                                
    NLS_RDBMS_VERSION              11.2.0.1.0   
    Kind regards
    Hari

    added other details by: Hari_639 on April 24, 2013 18:45

    I'm not really experienced with utl_http, but maybe you'll read on SET_BODY_CHARSET in the documentation.
    ISO-8859-1 is the default characterset, until you specify the characters in the attribute content_type and text media.
    But your media type is not text, then perhaps affecting the body charset UTF - 8 can help.

    concerning

  • Time-out period of application that is often when calling web services

    My request of phonegap webworks get transaction timeout error often. I create a cross-domain application that invokes the webservice to different places through soap and rest services. I assign the 60000ms as a transaction timeout period. Same application I use in the iPhone and android, I get no transaction timeout instead, I get correct answer. What happens when I load the app into the unit. Even it is not reproducible.

    It happened due to

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
        function() {
            page_back();
            return false;
        });
    

    I was controlling the back through the above code while connection, this memory leak cause. I just removed from the function of connection and stored in the document.ready. Now timeout is not the case but I am facing app closes at the launch of the application.

  • How to retrieve error messages after failed call Web service or pl/sql

    Hi all

    The EBS version: 12.1.1 on windows 2008 server.

    I'm calling pl/sqls via the ISG (process_item, process_eco...). If a call fails due to wrong input parameters, it returns an 'E' to me according to the Statute, a count of the number of error messages were collected, but no message itself? Is there an extra function call to get the error messages? I found FND_MESSAGE-GET but it does not return me anything!

    Thank you
    Konrad

    Hi Konrad,.

    As we found out, search the repository for internal name ERROR_HANDLER integration and use. Informing the public the answer for this one!

    Kind regards
    Gareth
    http://garethroberts.blogspot.com

  • ADF Mobile | call web service from Java. non-reflecting values in the AMX page

    Hi all

    I am using JDEv11124 with ADF Mobile extensions39.62.64.

    My use case is as follows.

    1. my application has 2 Pages a. Login home b.

    2. in the user login Page between user name and click on the "submit" button.

    3. on the homepage I displayed the company they joined.

    4. in the "submit" button is clicked, action defined in the support bean method will be called.

    5. by supporting the action bean method, I'll call the method of the Web Service to validate the entered user name, if the entered user name is valid, that I have to post its company name in the home page.

    6. I am moving back from the web service of datacontrol in Home.amx page

    7. calling web services from Java as follows:

    GenericType = result

    (GenericType) AdfmfJavaUtilities.invokeDataControlMethod ("Comp", null, "getCompany",

    pNames, params,

    PTypes);

    System.out.println ("after the call to the service" + result.getAttributeCount ());

    8. in the Java class, I get the response correctly (as the company designating the username entered as 'SOCIETY'), where when I navigate to the home page, I don't see any results for the method return (name of the company that dropped like OutputText in Home.amx)

    Did I miss something for this. or something more that I need to do to make it work?

    Please suggest.

    Thank you

    Vieira

    Hi all

    I was able to achieve this by executing my method in bean support.

    This code is as follows:

    AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext ();

    MethodExpression me =.

    () AdfmfJavaUtilities.getMethodExpression

    "#{bindings.retreiveLocationInformation.execute}".

    (, Object.class, Class [] {}) new;

    me. Invoke (adfELContext, new Object [] {});

    Thanks to Luc Bors WebLog Luc Bors Weblog: ADF Mobile: implementation of "Pull to refresh" model

    Kind regards

    Vieira

  • getting an error code: 8024002d when you install service pack 3 to the top of a tower of Vista

    getting an error code: 8024002d when you install service pack 3 to the top of a tower of Vista

    Hello

    There is no Vista Service pack 3; He stopped to Service Pack 2.

    «Error message when you try to install updates on the Microsoft Update or Windows Update Web site: «0x8024002D "»

    https://support.Microsoft.com/en-us/KB/958041

    See you soon.

  • Calling Web services

    Please give me exactly code snippet for calling Web services.

    Welcome on the support forums.

    You can find some samples using the search tool.
    There is no 'exact snippet", just a few general samples using ksoap2 or heels.

  • Call Web Services leave Jdev 11.1.1.5

    Hi experts,


    I followed this tutorial

    https://blogs.Oracle.com/middleware/entry/calling_web_services_using_adf_11g

    To create a Web Service data control and test a simple call to a find method, which returns records in N. My problem is that no data is returned even when the service is in place and a test using Weblogic test Client.

    I get no error message or exception, just 'No Data to display"in the table that needs to print the results.


    Am I missing a step?


    Best regards

    Jose.

    Hello

    Forget about it. The problem has been generated by an error in the web service definition.

    Best regards

    Jose.

  • Calling Web service to orchestration by reader

    Hello

    I have a form where I want to do a search for values that are outputs on a given orchestration.  When I drive extend the form to web service calls, it works fine of Reader 9, but does not work when the player is opened in a browser window.  Is there anything else you need to submit a web request to the browser based player?

    Also - I thought it was possible to make the web service calls of a form without drive to extend too long that your form has been made via the reader in a browser window?

    Thank you

    Jigster

    There is nothing "special" you need to do to make it work from a browser... .it should work. You get errors? Your browser may block the WS call?

    For your second question... You'll always need to drive range for Web Service calls in the player or a browser.

    Paul

  • BlackBerry, call web services via the SSL protocol

    Hi guys,.

    We are developing an application BlackBerry to OS 4.1 and we test it on the 8330.  This application calls several web services on a remote server via the SSL Protocol (side).  There is a valid certificate from Entrust installed on the remote server - it works properly with all major desktop browsers.  The certificate has not been installed on the BES - is it necessary?  Some BlackBerry devices will be linked to a company BES, others not.

    When the application calls the web service, a window opens with the following message: "you try to open a secure connection, but the server certificate is not approved."  Continue to push works fine, but the window opens again a few moments later.  Pushing view certificate indicates that the certificate is considered invalid ('unverifiable Cert chain').  The same information is given when you navigate to the certificates of the aircraft.  Certificate trust pushing watch a 2nd window asking you the key Store password, which we are not aware of.

    You guys can help us with this?

    Thank you!

    We have solved the problem.  It seems that the BlackBerry device is having a hard time with a certificate signed by the Entrust 2048 bit root certificate.  Give us a new intermediate certificate signed by their 1024-bit root certificate, which we have installed on our Apache server.  While the window 'certificate is not approved' arises at once, pushing "Continue" worked and it never came up again.  To do this, it will probably install the certificate on the BES, something we don't have yet.

    Thank you for taking the time to answer!

  • ADF page call Web Service with several params the right way

    Hello

    I use JDev 11.1.1.4.0.

    I have a web of e-mail notification service which takes 4 parameters, to, subject and body. What I need to do, it's at the end of each "commit", calling this web service to send a notification to a group of viewers telling them a new record has been created. Here are the steps of my work to make it work:

    1. creates a data control of web service using WSDL email notification.
    2 drag - move the control of data on page jspx as a parameter in the ADF.
    3 set the Visible of the presentation of the Panel shape to "False" so that the control does not appear.
    4. in a backingbean where is the 'onSave()' method, I put the code to call the web service.
    // in onSave() method after successful commit
          ValueExpression veFrom =
              efactory.createValueExpression(elctx, "#{bindings.from.inputValue}", Object.class);
          veFrom.setValue(elctx, "[email protected]");
    
          ValueExpression veTo =
              efactory.createValueExpression(elctx, "#{bindings.to.inputValue}", Object.class);
          veTo.setValue(elctx, "[email protected]");
    
    // omitted rest of the params for brevity
    
          OperationBinding method = bindings.getOperationBinding("process");
          method.execute();
    This code works, but I don't know if I'm doing things. For some reason, there is a better way to achieve what I need.

    Thank you very much in advance for your comments francs and suggestions.

    Bones Jones

    Published by: Bones Jones on April 29, 2011 06:44

    Check out this blog of Shay - which describes exactly the same scenario:
    http://blogs.Oracle.com/Shay/2009/07/java_class_data_control_and_ad.html

    Instead of setting the visible property of panelFormLayout to false, the author removes the user interface components unwanted on the page in step 7)

    7. deletion of a component of a page JSF without deleting is mandatory

    Thank you
    Nini

  • Problem with creating object entity based on web service

    Hi all

    AM trying more than 100 times to test how can I build an entity object based on web services, when I give the link of wsdl (which I already working when I use it as data for the web service control) in the wizard, I got the same message
    "' Field to read the WSDL URL service file: /... wsdl" "
    is it a find out what the problem is

    Thanks in advance

    It's pretty simple:

    Web service data control - gives you the best way to interact with a web service in your ADF UI
    Proxy for the Web service - allow manipulations on the interaction with the web service, for example restructuring results or settings - you can then expose this as a Javabean data control to bind to the user interface
    ADF BC basic web service - for integration with other applications of ADF BC that only allow you to access through web services.
    ADF BC stripped VO/EO Web service - based when you want to get features such as LOVs, will fetch, etc., which provides ADF BC. It will take you some good coding.

  • Call web service from DB - multi language

    Hello

    DB version: 11.2.0.1

    I want to call the web database service, this web service includes several languages, in the case below the web service called successful but not English seem as well, the language is there any property must be added to it?

    DECLARE
          service_                UTL_DBWS.service;
          call_                   UTL_DBWS.call;
          service_qname           UTL_DBWS.qname;
          port_qname              UTL_DBWS.qname;
          xoperation_qname        UTL_DBWS.qname;
          xstring_type_qname      UTL_DBWS.qname;
          response                SYS.XMLTYPE;
          request                 SYS.XMLTYPE;
          code                    VARCHAR2 (1000);
          name                    VARCHAR2 (1000);
        l_str                     LONG;
       
    BEGIN
          service_qname := UTL_DBWS.to_qname (NULL, 'AdhaCpcWsService');
          service_ := UTL_DBWS.create_service (service_qname);
          --
          call_ := UTL_DBWS.create_call (service_);
          --
          UTL_DBWS.set_target_endpoint_address (call_,'http://aaaaa.com/WebServices-ADHA/AdhaCpcWsPort?wsdl');
             
          UTL_DBWS.set_property (call_, 'SOAPACTION_USE', 'TRUE');
          UTL_DBWS.set_property (call_, 'SOAPACTION_URI', 'process');
          UTL_DBWS.set_property (call_, 'OPERATION_STYLE', 'document');
    
          request :=
                sys.xmltype (
                      '<adhaSearch xmlns="http://aaaaa.com/">
                      <cbaNumber>29291619</cbaNumber>
                      </adhaSearch>');    
    
          response := SYS.UTL_DBWS.invoke (call_, request);
       
          DBMS_OUTPUT.put_line (response.getstringval ());
    
    
    End;
    
    
    
    

    He solved by adding this after response

    answer: = XMLType (response.getBlobVal (NLS_CHARSET_ID('CHAR_CS')), NLS_CHARSET_ID ('UTF8'));

  • How to fire a manager class when consuming web service in java - weblogic

    With the help of Axis 1.4 I created client application that consumes the external server services.

    The response of the application server with the soap message that include tags header as well as the body tag.

    My problem with the header tag, I'm trying to find away to get the header element.

    What happened so far:

    I found that I need to use a handler that extends BasicHandler using this class, I can get the header tag. source: dealing with SOAP in the axis headers

    But how this handler to operate during the use of web services? I mean how to call this handler whenever I received the response from the server to get his header .

    Some articles suggest I should use .wsdd file. I use 11.1.1.7 with weblogic 10.3.6 Jdeveloper environment where I don't know web.xml configuration file.

    Question: How to bind this information (Manager class, .wsdd file and web.xml ) to collect and the Manager works for the heading tags?

    The best start was to check the Axis guide on: Apache-Axis reference Guide where you will have an overview of the workflow. (Thanks to Timo)

    To configure the handlers be trigger on the client side you need to do the following:

    1- Create class Manager basically something similar to the following:

    package mypackge; 
     import javax.xml.soap.SOAPException;
     import org.apache.axis.AxisFault;
     import org.apache.axis.MessageContext;
     import org.apache.axis.handlers.BasicHandler;
     import org.apache.axis.message.SOAPHeader;
     import org.apache.axis.message.SOAPHeaderElement; 
    
     public class SoapHeaderConsumerHandler extends BasicHandler
     { 
         public void invoke(MessageContext messageContext) throws AxisFault 
         { // Your logic for request or response handling goes here. 
          // Basically you need to make use of the parameter 
         // messageContext where you can access the soap header and body tags. 
         } 
    }
    

    2- Create the client-config.wsdd file. It will look like the following:

    http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      
           
               
          
      
     
    
    
    

    You can see that I only use handlers for incoming response side server. So whenever the client application receives a response from the server the class Manager SoapHeaderConsumerHandler is triggered and the method invoke will be called by default.

    Note: if you want to access the outgoing request before sending to the server you need to add an additional label for to add the request handler.

    Check the Reference Deployment (WSDD) of the guide of the axis:

    3- Where to place the client-config.wsdd file?

    You will need to place the .wsdd file in the working directory. You can easily find the location of the working directory using:

    System.out.println("Working Directory = " + System.getProperty("user.dir"));
    

    Source: Get the Current Working Directory in Java

    You just place the .wsdd file here.

    Useful links:

    Where to place the file client - config.wsdd in Railo

    Handler axis V It is an example to managers of the side server.

    Dealing with SOAP headers in the axis

  • How to call web services from other applications of E9?

    We have an obligation to look to the top of the account ID of a master data management application (no SFDC). The purpose of doing so is to find the account associated with a perspective on the basis of the corporate name, address, city, State, country... The application can expose a web service in search of account. I can call the web service of E9?

    Not directly.  A solution using Eloqua would create a cloud connector, but the code that connects to Eloqua and other web service live outside these two systems.

    Another approach, I recommend if you use Salesforce and the lead will do, there would be screaming to the webservice from Salesforce and have the info power back to Eloqua through integration of eloqua/crm normal.

Maybe you are looking for

  • Table write2D LabVIEW 2011 to the spreadsheet file

    Today, I tried to write 2D array in a file with the 'writing on a spreadsheet file' function with the new 2011 (f2) of LabVIEW. But it generates the following results - all the data in a column (supposed to be column 2). LV2011 WT

  • I'm trying to burn a cd. the burner cannot read blank cd. all ideas

    I have burned several cds before.  now all of a sudden it has just stopped working.  Everything he says is "insert a blank cd" I'm with windows media player.

  • four edition dv6t-7300 CTO: is my CTO 7300 dv6t quad edition mSATA III and SATA III compatible?

    Hello!  I was wondering if my laptop is mSATA compatible III for my slot of the WSSD and also if it is SATA III for my regular SSD. I am in the process of upgrading a disk HARD 1 TB to an SSD of 500 GB for the primary and the replacement of the WSSD

  • How to remove the password at startup?

    When I start my computer, I want to go on the desktop without a password.  How remove the password AND how can I get rid of the password screen asking for the password?

  • Why PC waste time

    Why my PC waste date and time always after power failure? Im trying to figure out a strange question after the power failure, it has always defined on way back 2010 time (when my pc was created or manufactured). Can someone help me solve this problem