SOA 12.1.3: REST adapter generates or execution "" unknown media type "Exception"

Hi all

We are working with a client looking to migrate from BPEL 10 g to Oracle 12 c. The current implementation incorporates a number of RESTFUL services through JAVA components that are called via BPEL. We seek, as part of the migration to migrate and simplify these with the use of new adapters REST. The use cases and the question is this:

We have a customer who exposes a REST service via the usual principles. This service is provided by a 3rd independent provider such as an external service for 3rd part of customer applications. The REST service provides a number of resources and operations (GET, PUT, DELETE) to manipluate and retrieve data as directed by the interface that is provided.

Based on one of these to MAKE Simple, we tried to create a new adapter IS based on the interface. The provider does not offer a w, so the REST adapter has been generated using the adapter REST within JDeveloper and configuration of the resources, operations, and application / types of responses as required. This generates the required w (see table).

When you test the w via JDeveloper, the response is returned as expected. However when you deploy this SOA Suite 12.1.3, errors in the adapter a runtime. The error encountered is this:

< Summary >oracle.fabric.common.FabricInvocationException: java.lang.RuntimeException: unknown media type: application/atom + xml; charset = utf-8; type = food< / summary >

When you look at the response HTTP service through SOAP Ui I see the content type is set to application/atom + xml.

After reviewing the Oracle Documentation, it doesn't seem to provide any indication on this issue or any possible reasons for its occurrence.

Anyone had similar problems or shed some light on this issue? It appears on face value, that the adapters are not compatiable with this type of support, which can prove to be a big limitation

What about Dave

All,

For any future reference is others get a similar question:

I have been in contact with Oracle Support via a request of Service Oracle (SR). Development have provided a single patch to solve our problem. The patch number is 19580101 (Patch 19580101: cannot call REST services for mediatypes unsupported) and can be obtained via the Support of Oracle (metalink)

We are in the early days of tests; However, this seems to be addressed to our problem.

Concerning
Dave

Tags: Fusion Middleware

Similar Questions

  • Expose as statements of rest pipeline option "Usupported media Type' OSB-380000"

    12.1.3 JDEV

    SOA SUITE 12.1.3

    I have a proxy work SOAP, the pipeline business.  I click with the right button on the pipeline and choose the option 'expose' that remains magical.  Although the help doc seems to suggest that I can expose a proxy like the rest, I don't have this option when right clicking the proxy - only pipeline.  When I send a get or post request via the proxy rest I get "Usupported media Type' OSB-380000?"

    I figured this out from another post on Google. I'll post the answer here, because frankly there is not much help on the web for the OSB with the exception of this forum and the Oracle documentation.

    I put a newspaper action on the demand of the pipeline side and noticed the difference in Content-Type when run from SOAP or Rest proxy servers by using XPATH below

    • {$entrants / ctx:transport / ctx:request / tp:headers}

    Although the proxy pipeline SOAP from JDev automagically, the REST proxy wanted to send this file xml Content-Type.

    • http://www.BEA.com/WLI/SB/transports/http "> application/xml;" charset = utf-8

    The pipeline is limited to SOAP and disliked this XML Content Type where the media not supported error.

    So, I put an action to replace the first thing on the side of demand of pipeline and replaced $entrants / ctx:transport / ctx:request / tp:headers / http:Content-Type xml mime type of a mime type of SOAP - view text/xml not application/xml.

    • http://www.BEA.com/WLI/SB/transports/http "> text/xml;" charset = utf-8
  • C#, UCCX, Rest API, PUT (update a resource) and not taken media Type supported

    Hi, I'm developing an application to update the skills of resources with the REST API.

    I can get all the values I want to (GET), but when I try to update a resource using PUT, and then I get a "415 Unsupported Media Type" webException.

    I discovered that c# / UCCX works with demand. MediaType (instead of request. ContentType).

    I got this error when I tried to GET the data. He now works for the GET.

    But to PUT it, I got the error. Method is defined as SAID, MediaType = "application/xml".

    I tried to empty, ' text/xml '...

    Looked on the internet, Web sites, saying always specify ContentType/MediaType = "application/xml", I have already done.

    I also got the same error if I try an application COULD and without sending data.

    Thanks for your help!

    public string MakeRequest()
    {
    var request = (HttpWebRequest) WebRequest.Create (EndPoint);
    request. Credentials = new System.Net.NetworkCredential (login, password);
    request. Method = Method.ToString ();
    request. ContentLength = 0;
    request. Accept = ContentType;
    request. MediaType = ContentType;
                
    #region so PUT
    If (! string.) IsNullOrEmpty (PostData) & method == HttpVerb.PUT)
    {
    encoding of var = new UTF8Encoding();
    PostData = PostData.Replace ("\n", "");
    var bytes = Encoding.UTF8.GetBytes (PostData);
    request. ContentLength = bytes. Length;
                    
    using (var writeStream = request. GetRequestStream())
    {
    writeStream.Write (bytes, 0, bytes.) (Length);
    }
    }
    #endregion

    Try
    {
    assistance (response var = (HttpWebResponse) request. GetResponse())
    {
    var responseValue = string. Empty;

    If (answer. StatusCode! = HttpStatusCode.OK)
    {
    var message = String.Format ("request failed. Received HTTP {0}", response. StatusCode);
    throw new ApplicationException (message);
    }

    Enter the answer
    using (var responseStream = response. GetResponseStream())
    {
    If (responseStream! = null)
    using (var = new StreamReader (responseStream) Player)
    {
    responseValue = reader. ReadToEnd();
    }
    }

    Return responseValue;
    }
    }
    catch (WebException wex)
    {
    error string = wex. Message;
    Return ' ';
    }

    OK you got, in this case, post your request in the Sub forum as well which is sought after by developers and you can you expect a concrete answer/explanation on the same

    https://communities.Cisco.com/community/Developer/Express-configuration-API

    Concerning

    Deepak

  • Database adapter &amp; mediator, called by the Service causes exception?

    Hello

    I have a database adapter, a mediator plugged in my composite.xml. In my BPMN process, I have a service that uses the Ombudsman as its implementation (?). He was able to build and deploy great of JDeveloper. But now that I am trying to execute the process of the workspace, I get this error:

    < 13 may 2014 12:58:13 PM PDT > < WARNING > < oracle.soa.adapter > < BEA-000000 > < JCABinding = > JCABinding = > search for DBTestComposer2:DBAdapter [DBAdapter_ptt::DBAdapterSelect(DBAdapterSelect_inputParameters,TestTableObpmCollection)] "ÉI/DB/cpdev_users" failure due to JNDI: unable to resolve ' ist. DB.cpdev_users'. Solved ' ist. DB' >

    < 13 may 2014 12:58:13 PM PDT > < error > < oracle.soa.adapter > < BEA-000000 > < JCABinding = > DBTestComposer2:DBAdapter [DBAdapter_ptt::DBAdapterSelect(DBAdapterSelect_inputParameters,TestTableObpmCollection)] could not invoke "DBAdapterSelect" against the "null" operation due to:

    LIAISON. JCA-12511

    JCA Binding Component connection problem.

    JCA Binding component is unable to create an outgoing connection of JCA (CCI).

    DBTestComposer2:DBAdapter [DBAdapter_ptt::DBAdapterSelect (DBAdapterSelect_inputParameters, TestTableObpmCollection)]: The JCA Binding component could not establish an outbound connection of JCA CCI due to the following problem: BINDING. JCA-12510

    Location of JCA resource adapter error.

    Cannot find the adapter in JCA resources via the element of the binding .jca file <-factory connections / >

    The Binding of JCA component is unable to startup of the resource adapter that is specified in the <-factory connections / > element: location = ' EI/DB/cpdev_users.

    The reason is most likely to be

    (1) the resource adapter RAR file has not been deployed successfully to the WebLogic application server or

    (2) the "< jndi name >" element in weblogic - ra.xml has not been defined in eis/DB/cpdev_users. In the latter case, you need to add a new factory of connections from WebLogic JCA (deploy a RAR).

    Please fix this and then restart the application server

    Please ensure that the JCA connection factory and dependent connection factories have been set up with a sufficient limit for maximum connections Please also make sure that the physical connection to the EIS server is available and the backend itself accepts connections.

    Could someone explain what this means? (Sorry, we're new on Oracle technology and a lot of this terminology). What resource adapter RAR files is this allusion? We would really appreciate solutions on how to fix or solve this problem!

    I think this might solve your problem: https://community.oracle.com/message/10235476#10235476

    Dan

  • Write to spread generates file of journal of type unknown file in windows 7.

    Hi all, I use the Vi 'Write in a spreadsheet file' for writing data in text files. These data can be read by any text editor, such as Notepad in MS, or excel. The problem is that

    Windows detects these files as being of an unknown type, and I have to explicitly tell windows what program to use to open these files. In addition, for some reason any the

    Box "Always use the selected program to open this kind of file" is grayed out. So I can't assign a file type to these files.

    Has anyone else encountered this problem? Do you know how to fix it? And what type of files 'Write in a spreadsheet file' generates?

    Thanks for your help,

    What extension do you use to create your files?  I agree that it seems that you do not provide a file extension.  Add a ".txt" to your file names before writing and Windows will play more nicely with you.  Or if you use a comma as separator, use ".csv".

  • Why sql_trace sometimes generate an execution plan

    I use "alter session set sql_trace = true;" to trace a package.

    I use the tkprof to format the raw trace with no options.

    But there's one thing confuses me.

    In the trace of any statement have plans of execution as below.

    SELECT BATCH_ID
    FROM
    OPS_DW_BUSINESS_DT WHERE CURRENT_I = 'Y' AND OPS_NAME = :B1
    
    
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          1          2          0           2
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total        5      0.00       0.00          1          2          0           2
    
    
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 61     (recursive depth: 1)
    
    
    Rows     Row Source Operation
    -------  ---------------------------------------------------
          2  INDEX RANGE SCAN OPS_DW_BUSINESS_DT_IDX1 (cr=2 pr=1 pw=0 time=350 us)(object id 135871)
    

    Any statement have no implementation plan

    ********************************************************************************
    
    
    SELECT ACTIVITY_CODE,TRIP,EQUIPMENT_N,LOCATION,DISC_VSL_NAME,DISC_VOY,
      LOAD_VSL_NAME,LOAD_VOY,MOVE_OPS, ACTIVITY_DT, ACT_SEQ, LAG(TRIP, 1)
      OVER(ORDER BY TRIP, ACTIVITY_DT, ACT_SEQ) AS PREV_TRIP, LEAD(TRIP, 1)
      OVER(ORDER BY TRIP, ACTIVITY_DT, ACT_SEQ) AS NEXT_TRIP
    FROM
    OIS_HRLY_PMOPS B WHERE ( BATCH_ID = :B3 AND (INSTR(:B2 , ACTIVITY_CODE) <> 0
      OR INSTR(:B1 , ACTIVITY_CODE) <> 0) ) OR ( BATCH_ID < :B3 AND (INSTR(:B2 ,
      ACTIVITY_CODE) <> 0 OR INSTR(:B1 , ACTIVITY_CODE) <> 0) AND EXISTS (SELECT
      1 FROM OIS_HRLY_PMOPS C WHERE C.BATCH_ID = :B3 AND C.TRIP=B.TRIP) ) ORDER
      BY TRIP, ACTIVITY_DT, ACT_SEQ
    
    
    
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.02       0.01          0          0          0           0
    Fetch     2246     25.77      24.87          0      46319          0      224517
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total     2248     25.79      24.88          0      46319          0      224517
    
    
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 61     (recursive depth: 1)
    ********************************************************************************
    

    I know that I can use the tkprof explain = name of user and password to force generate a. But for the time being. Why some statement make execution plan while others have not?

    Concerning

    Monique

    > Source line operation lines

    What you have is Source line operations - the * real * execution plan.

    The EXPLAIN command option gives you the estimated execution plan.

    Why didn't you not operations Source online for all SQLs?  Row Source operations are printed only if the cursor is closed.  Usually in pure SQL sessions, SQL cursor is closed when the following SQL is running.  However, with PLSQL and stored procedures, the procedure cannot close the cursor for the SQL statement, it calls (closing is made when the session is closed).  In such a case, the operations line Source not to print.

    Hemant K Collette

  • [8i] Case statement generates ORA-00932: inconsistent data types

    Note: I work with a 8i database (Yes, he's old enough) and in this case, I have to deal with the types of data (e.g. TANK), I gives me to work with.

    I am trying to calculate the amount of time product expected between manufacturing steps. As I found out though, sometimes I get a negative value then subtract the date the previous step ends the date of that ongoing stage begins. Since it is generally impossible to start a later stage before a previous step (imagine trying to screw a cap on a bottle that has no son Cup yet - it just may not happen), what I found is that sometimes two steps are started the same day and finished the same day (although not necessarily the day they started). This situation CAN occur when a person is two steps and connected to two steps at the same time, rather than log on to one, then the other. So what I need to do in these situations, is to replace the negative number by zero (I'll treat the stage as having no time-out).

    Some examples of data:
    (Note: the data set real is the result of a query and has about 200 K lines and columns more, but this should be representative enough to find a solution that works on my real application.)
    CREATE TABLE     steps
    (     item_id          CHAR(25)
    ,     ord_nbr          CHAR(10)
    ,     sub_nbr          CHAR(3)
    ,     step_nbr     CHAR(4)
    ,     start_date     DATE
    ,     finish_date     DATE
    );
    
    INSERT INTO steps
    VALUES ('A','0000000001','001','0010',TO_DATE('01/01/2011','mm/dd/yyyy'),TO_DATE('01/02/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('A','0000000001','001','0020',TO_DATE('01/01/2011','mm/dd/yyyy'),TO_DATE('01/02/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('A','0000000001','001','0030',TO_DATE('01/05/2011','mm/dd/yyyy'),TO_DATE('01/06/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('A','0000000001','002','0010',TO_DATE('01/01/2011','mm/dd/yyyy'),TO_DATE('01/02/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('A','0000000001','002','0020',TO_DATE('01/04/2011','mm/dd/yyyy'),TO_DATE('01/04/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('A','0000000001','002','0030',TO_DATE('01/06/2011','mm/dd/yyyy'),TO_DATE('01/07/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('B','0000000002','001','0005',TO_DATE('01/10/2011','mm/dd/yyyy'),TO_DATE('01/12/2011','mm/dd/yyyy'));
    INSERT INTO steps
    VALUES ('B','0000000002','001','0025',TO_DATE('01/10/2011','mm/dd/yyyy'),TO_DATE('01/12/2011','mm/dd/yyyy'));
    Here's the query I use that sometimes returns negative values:
    SELECT     item_id
    ,     ord_nbr
    ,     sub_nbr
    ,     step_nbr
    ,     start_date - last_step_finished
    FROM     (
         SELECT     s.*
         ,     LAG (s.finish_date)     OVER     (
                                  PARTITION BY     s.item_id
                                  ,          s.ord_nbr
                                  ,          s.sub_nbr
                                  ORDER BY     s.step_nbr
                                  )     AS last_step_finished
         FROM     steps s
         );
    
    Returns:
    
    ITEM_ID                   ORD_NBR    SUB STEP START_DATE-LAST_STEP_FINISHED
    ------------------------- ---------- --- ---- -----------------------------
    A                         0000000001 001 0010
    A                         0000000001 001 0020                        -1.000
    A                         0000000001 001 0030                         3.000
    A                         0000000001 002 0010
    A                         0000000001 002 0020                         2.000
    A                         0000000001 002 0030                         2.000
    B                         0000000002 001 0005
    B                         0000000002 001 0025                        -2.000
    These are the results I want to see:
    ITEM_ID                   ORD_NBR    SUB STEP START_DATE-LAST_STEP_FINISHED
    ------------------------- ---------- --- ---- -----------------------------
    A                         0000000001 001 0010
    A                         0000000001 001 0020                         0.000
    A                         0000000001 001 0030                         3.000
    A                         0000000001 002 0010
    A                         0000000001 002 0020                         2.000
    A                         0000000001 002 0030                         2.000
    B                         0000000002 001 0005
    B                         0000000002 001 0025                         0.000
    And that's what I tried to do to get these results (comment pointed out which line has generated the error):
    SELECT     item_id
    ,     ord_nbr
    ,     sub_nbr
    ,     step_nbr
    ,     CASE
              WHEN     start_dt - last_step_finished     < 0
              THEN     0
              ELSE     start_dt - last_step_finished  -- THIS LINE GENERATES THE ORA-00932 ERROR
         END                         AS days_in_queue
    FROM     (
         SELECT     s.*
         ,     LAG (s.finish_date)     OVER     ( PARTITION BY  s.item_id
                                    ,          s.ord_nbr
                                    ,          s.sub_nbr
                                    ORDER BY     s.step_nbr
                                  )     AS last_step_finished
         FROM     steps s
         );
    I know that I had errors in data type incompatible before with case statements in this particular 8i database, but I can't seem to understand why I'm getting one this time. I think it has something to do with the NULL value which may occur for last_step_finished. Also, if I change the case statement to:
    ,     CASE
              WHEN     start_dt - last_step_finished     < 0
              THEN     NULL
              ELSE     start_dt - last_step_finished  -- THIS LINE GENERATES THE ORA-00932 ERROR
         END     
    the query works fine. But, I'm not NULL, I 0. In the level of this request, I'll take the averages by item_id/step_nbr, and I want that 0 s to be included in the average. (NULL values, as far as I know, would be excluded. AVG(null,_1,_2) = AVG (1,2) = 1.5 NOT AVG (0,1,2) = 1).

    Thanks in advance!

    CASE requires that all expressions to be of the same type. Numeric data type code is 2, then that date produced different internal datatype 14:

    SQL> select dump(1) a,dump(sysdate) b,dump(sysdate - (sysdate - 1)) c from dual;
    
    A                  B                                   C
    ------------------ ----------------------------------- ------------------------------
    Typ=2 Len=2: 193,2 Typ=13 Len=8: 219,7,6,27,13,7,50,0  Typ=14 Len=8: 1,0,0,0,0,0,0,0
    
    SQL> 
    

    Case is supposed to process until the number, but it does not--a bug in some versions. Use explicit to_number:

    ,     CASE
              WHEN     start_dt - last_step_finished     < 0
              THEN     0
              ELSE     to_number(start_dt - last_step_finished)
         END                         AS days_in_queue
    

    SY.

  • Generate data with WSDLC serializable types

    Hi all
    I'll was pretending to send one through a JMS ObjectMessage a type generated from WSDL with wsdlc Ant task. Unfortunately, the generated types are not serializable and so I am unable to send the message. It's really annoying to manually change each of them, so I would like to know if it is possible to ask wsdlc generate serializable data types. I use Weblogic 11gR1PS1. If it is not possible that you recommend?

    Currently, the tasks are configured as follows:

    "< name taskdef ="wsdlc"classpathref ="weblogic.classpath"classname =" weblogic.wsee.tools.anttasks.WsdlcTask "/ >
    "< wsdlc srcWsdl="ejbModule/META-INF/wsdl/DataCatalog.wsdl ' destJwsDir = 'gen' destImplDir = 'gen' packageName = "br.com.allwayx.schema" type = "JAXWS" > "


    OBS: I noticed that if I use a binding inside the task element in any what the task wsdlc xjb file generates a pair of entity - class implementation of EntityImpl interface. There is code like this:

    "< wsdlc srcWsdl="ejbModule/META-INF/wsdl/DataCatalog.wsdl ' destJwsDir = 'gen' destImplDir = 'gen' packageName = "br.com.allwayx.schema" type = "JAXWS" > "
    "< lie dir =" ${binding.declaration.dir} ' includes = "${binding.declaration.file}" / >
    < / wsdlc >

    Always I want to keep the old way, without the connecting element that generates just a concrete class for each item. Maybe it's a bug?


    Thank you!

    Published by: Lupan on 28/04/2010 13:13

    Hi Lupan,

    Currently, I believe that there is no way to load the WSDLC task to generate serializable data types.

    There was already a BUG opened with BEA for WLS - 9.0 next are the BUG details:

    http://download.Oracle.com/docs/CD/E13222_01/WLS/docs100/issues/known_resolved.html
    CR228385

    Description:
    The Web Service Description Language (WSDL) compiler generates not serializable data types, so data can be transmitted to remote EJB or stored in a JMS destination.

    You must contact the Support of Oracle Weblogic to get the current state of the BUG.

    Thank you
    Sandeep

  • Force the Jena adapter to generate SQL and not SEM_MATCH calls

    Hello

    I have the following query in which I bind ? o and? s values (using the ORACLE_SEM_UEAP_NS namespace)

    SELECT * WHERE 
    {
        ?s    vcard:postal-code    ?o
    }
    

    I have two environments on which I run this query with adapter Jena; with JDeveloper and Oracle database JVM remotely.

    When run remotely, I can see that SQL is always generated for this query; regardless of the connection that I use.

    When running on the Oracle JAVA virtual machine, the first execution in the current session gets generated SQL. All subsequent queries with a modified Binder (for example: initial request, only ? o is linked, the second query, ? s is linked), Jena Adapater generates calls SEM_MATCH. If I run again the initial query, SQL is generated.

    Is there a way to force the Jena adapter stick to SQL rather than SEM_MATCH, in this case?

    Thank you.

    Hello

    Thanks for your reply. I reassembled the problem to this line.

    OracleConnection conn = (OracleConnection) ods.getConnection();
    ...
    conn.close();
    

    It seems that if I close the connection when running on Oracle, Jena adapter generates a SEM_MATCH call for the following requests, which have a different syntax than the first. I'm curious to know what it does.

    Kind regards.

  • Generator doesn't include no audio

    Created a short Motion project which included an audio track.

    Save as template and registered as a generator. And, it is displayed as expected in FCP generators

    When I add it to a project, it does not appear that audio has made the transition to FCP - how to save a generator with an audio element or how they have to play in the generator in a project of FCP?

    It must be something simple, but what I see in the help files, it must just come with the rest of the material.

    The audio file has no DRM or any project on this subject.

    See you soon,.

    Fred

    It was ever thus. In FCPX, in an event, an import media. Navigate to the folder of the generator. Open the Media folder and import the audio into FCPX.

    Why is it so? My * guess * is that generators (titles and Transitions) can be "stretched" by the user in the plot. How FCPX know where the sync point is once everything is shifted? And for effects, clip lengths can be anything, why the same applies.

    It would be nice to have the audio markers and have audio imported with the effects generator. Perhaps, which might be a good topic for Motion Feedback? In the meantime, look for your audio in the Media of the model folder. It should always be available here.

  • How to generate a pulse with the signal generator?

    Hello

    I would like to ask if anyone knows how to use the Elvis platform to generate a regulated pulse wave?

    It should look roughly like the picture above. A sine wave with the regulation.

    Anyone who can answer my question please respond to my post.

    Thank you.

    You are using LabVIEW to generate the waveform or using the Soft front panels? In LabVIEW, you can use the express VI generator function and specify the Type as "Sine". Then, simply change the amplitude of the sine wave. During the actual pulse, the amplitude would be what you want (i.e. 1 V) and while the pulse is idle, set the amplitude to 0.

    If you use the soft front panels, you can use the Waveform Editor to create a waveform that includes a sine wave for the length of your pulse and then the values of '0' for the rest of the time. Then use this waveform in the flexible front of the arbitrary signal generator. Simply create a component of sine as the first part of the wave and then add another element to a level DC '0' for the rest.

  • Consume the Rest Service

    Hello

    JDeveloper Version 11.1.2.4.0.

    What is the best way to consume the REST API of JDeveloper. Found a note for mobile

    Java / Oracle SOA blog: use JSON-REST in ADF Mobile

    for example.

    Best way to consume REST below

    https://maps.googleapis.com/maps/API/geocode/JSON?address=1600+Amphitheatre+Parkway, mountain view +, + CA & key = API_KEY

    Thank you

    JIT


    Hello

    If you want to consume it from a mobile phone or a web application. For mobile, you have found a trick for web applications, you can use

    1 REST control based XML data REST (11 g R2 starting) services

    2 Jersey client API REMAINS in a JavaBean (which then you can expose as a POJO data control)

    Frank

  • Using fault-political with the Ombudsman and db adapter does not work

    Help, please! I am stuck on this during 2 days...

    Hi friends.

    In my project I am trying to give a treatment with the exception of a db adapter executes a pl/sql procedure.

    I'm forcing a raise_application_error in the procedure to handle the exception, and I would fault the police to treat it as "action man".

    The db adapter is wired to a mediator:

    JMS-service-> Ombudsman-> db Jca adapter

    When I'm with the exception of the log says:

    9d8bff56a1 due to: LINK. JCA-12563 []

    Exception occurred when the link was invoked.

    Exception occurred during invocation of the JCA binding: "JCA binding run operations reference 'PersistirODS' has no reason to: stored procedure call error.»

    Error trying to prepare and execute the FORNECEDOR. UPSERTFORNECEDOR API.

    There is an error occurred so that the preparation and execution of the FORNECEDOR. UPSERTFORNECEDOR API. Cause: java.sql.SQLException: ORA-20101: Deu Merda

    ORA-06512: at the 'FORNECEDOR. UPSERTFORNECEDOR', line 405

    ORA-06512: at line 1

    Make sure that the API is defined in the database and that the settings match the signature of the API.  This exception is considered non reproducible, probably due to an error of modeling.  To be classified as reproducible to the contrary to add property nonRetriableErrorCodes with the value "-20101" to your deployment descriptor (i.e. weblogic - RA.Xml).  Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff.  All properties are integers.

    ".

    The called JCA adapter threw an exception of resource.

    Please review the error message above carefully to determine a resolution.

    ]]

    and then it looks like it tries to run police of fault, but it says:

    [2014 04-10 T 20: 01:39.667 - 03:00] [AdminServer] [WARNING] [] [oracle.integration.platform.faulthandling] [tid: Workmanager:, Version: 0, scheduled = false, started = false, queue time: 0 ms\n] [userId: weblogic] [ecid: 11d1def534ea1be0:-1fa77a00:145468d59e7: - 8000 - 000000000002801 a, 0] [APP: soa-infra] [RejectedMsgHandling] Impossible to enforce policies on the message rejected with id - 60046 []

    oracle.fabric.common.FabricException: cannot resolve the link to a fault policy [blamed the activity details:]

    Name of activity = null

    The activity Id = null

    Activity lineNumber = null

    Reference name = null

    WsdlLocation = null

    ActivityType = null

    ]

    Here are my files fault-policies and fault-links:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < faultPolicyBindings xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" " http://schemas.Oracle.com/BPEL/faultpolicy .. / xsd/FaultBindings.xsd '

                         xmlns=" http://schemas.Oracle.com/BPEL/faultpolicy "> "

    < faultPolicy composite = "political malpractice" / >

    < / faultPolicyBindings >

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < faultPolicies xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" " http://schemas.Oracle.com/BPEL/faultpolicy .. / xsd/FaultPolicies.xsd '

                   xmlns=" http://schemas.Oracle.com/BPEL/faultpolicy "> "

    < faultPolicy id = "political malpractice" >

    < condition >

    " < faultName = xmlns:medns ' http://schemas.Oracle.com/mediator/faults "" "

    name = "medns:mediatorFault" >

    < condition >

    < Ref action = "by default-human-intervention" / >

    < / condition >

    < / faultName >

    " < faultName = xmlns:rjm ' http://schemas.Oracle.com/SCA/rejectedmessages "name ="rjm:PersistirODS"> "

    < condition >

    < Ref action = "by default-human-intervention" / >

    < / condition >

    < / faultName >

    < faultName >

    < condition >

    < Ref action = "by default-human-intervention" / >

    < / condition >

    < / faultName >

    < / conditions >

    < action >

    < Code action = "by default-human-intervention" >

    < humanIntervention / >

    < / action >

    < / actions >

    < / faultPolicy >

    < / faultPolicies >

    Once again

    Help, please! I am stuck on this during 2 days...

    Guys... My fault...

    Just changed from parallel sequencial and it worked...

  • Generate random numbers in BPEL

    I have a use case that requires I generate a random number of 2 digits, something similar to "math: random * 100. I noticed that this feature is not readily available in the SOA Composite Editor. Can anyone suggest how this can be done?

    [code]

    "targetNamespace ="http://xmlns.oracle.com/KIMServices/embedded_java/BPELProcess1"

    "xmlns ="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

    "xmlns:client ="http://xmlns.oracle.com/KIMServices/embedded_java/BPELProcess1"

    "xmlns:ORA ="http://schemas.oracle.com/xpath/extension"

    "xmlns:bpelx ="http://schemas.oracle.com/bpel/extension"

    "xmlns:bpws ="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

    "xmlns:bpel2 ="http://docs.oasis-open.org/wsbpel/2.0/process/executable"

    "container ="http://www.w3.org/2001/XMLSchema"

    "xmlns:XP20 ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"

    "xmlns:oraext ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"

    "xmlns:kimbpel ="http://xml.ibridge.nl/nl/rsg/kim/bpel"

    "xmlns:DVM ="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"

    "xmlns:HWF ="http://xmlns.oracle.com/bpel/workflow/xpath"

    "xmlns:IDS ="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"

    "xmlns:BPM ="http://xmlns.oracle.com/bpmn20/extensions"

    "xmlns:XDK ="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"

    "xmlns:XREF ="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"

    xmlns:LDAP ="http://schemas.oracle.com/xpath/extension/ldap" >. "

    Language = "java" >

    try {}

    Random random = new Random();

    int abc = random.nextInt (100);

    setVariableData ("NombrAl", abc);

    }

    end generate random number java

    [[catch (Exception e) {}]] >

    Query = "" / client: processResponse / client: result "/ >"

    [/ code]

    That should do it

  • Error, while trying to deploy an application using the DB adapter

    Hello

    I am getting error while deploying the SOA application using the DB adapter below

    [11:46] send (archive) - sca_DataBAdapter_rev2.jar
    [11: 46:12] Server, the response code = 500 HTTP response was received
    [11: 46:12] error in deployment of archives sca_DataBAdapter_rev2.jar to partition 'default' server soa_server1 [http://computer:8001]
    [11: 46:12] HTTP error Code returned [500]
    [11: 46:12] Error Message from the server:
    * There is a deployment of the composite on soa_server1 error: [JCABinding] [DataBAdapter.DBAdapter/2] Unable to complete unloading due to: cannot find Java class oracle.tip.adapter.db.DBWriteInteractionSpec: could not find oracle.tip.adapter.db.DBWriteInteractionSpec. * of Java class

    [11: 46:12] check the log of the server for more details.
    [11: 46:12] error in deployment of archives sca_DataBAdapter_rev2.jar to partition 'default' server soa_server1 [http://computer:8001]
    [11: 46:12] # incomplete deployment. ####
    [11: 46:12] error deployment archive file:/C:/JDeveloper/mywork/DataBAdapter/DataBAdapter/deploy/sca_DataBAdapter_rev2.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

    Pls know me if someone has already faced the same thing!

    Published by: 934914 on June 19, 2012 05:45

    Have you tried restaring the server and deploy again.
    Before deploying again, make sure that your application of DBAdapter, database is running.

    Thank you
    Vijay

    Published by: veejai24 on June 18, 2012 07:44

Maybe you are looking for