Management of Web services in ADF (correctly)

Hi all

I have a confusion on the management of Web services in the ADF. Please help me get clarity on that. I'm working on JDeveloper 11.1.1.7.0.

In my implementation of project, we have three layers of database-> BPM (webservices)-> ADF UI. Here, the BPM layer interacts with the database and provides data to appear on ADF UI. We have made the use of customer Web and Proxy Services for the creation of the service proxy and calling Web services BPM of the user interface layer.

However, the Webservice experience input not direct and simple answers. We had to create several Variables of classes, ArrayList, POJO to prepare the application. Also after getting the answer, we must go through every files, extract data, make some custom manipulation and prepare the result set. So transmit us data to the DC class file and make it available in the palette of the DataControl.

My question here is, is the right way to manage the webservices implementation in ADF? Is there another way to implement the case what I mentioned above? How to address the case where I need to enrich the request before calling service Web and then extract data from response structure?

I don't know about the Web service data control, but it gives no flexibility to enrich the request and response (please, correct me if I'm wrong).

Thanks in advance,

RM

In your version, it is the way to go.

Datacontrols WS can be used only for simple services.

Timo

Tags: Java

Similar Questions

  • Access a secure web service of ADF Mobile Application

    Hello

    We try to create an ADF Mobile application that uses a secure web service located in Oracle EBS (with SOA Suite).

    We use JDeveloper 11 g 11.1.2.4.0

    Initially, create usd a Control(SOAP/REST) Gallery Web Service data and provided the WSDL document. We tried to run on a simulator, but not did not do anything. We have also found a way to provide the user name and password. So we left it there.

    Then we tried to create a Java desktop app to check if it was a problem with our server. In the desktop application, we created a "Web Service Client and Proxy" new gallery followed the steps and used oracle/wss_username_token_client_policy, added the code below to put the username and password and was able to call the service and retrieve data.

    (reqContext.put (BindingProvider.USERNAME_PROPERTY, "DBAKER");

    reqContext.put (BindingProvider.PASSWORD_PROPERTY, "xxxxx");

    So we thought to return to the application the ADF Mobile and creating a "Web Service Client and Proxy" it, but when we built this project, we had the ' annotations are not supported in - source 1.4 "&" generics are not supported in - source 1.4 "errors and found that ADF Mobile does not support beyond Java 1.4" "» (Is that right?)

    We then found the video "to access the secure Services of ADF Mobile Web" by Shay (https://www.youtube.com/watch?v=rk5om3o3Pas) and saw that he was using a login server.

    We wanted to confirm if you use a login server is the right path to access a secure web service of an Oracle ADF Mobile application?

    Are there other ways to do it?

    If we need to create a login server, can provide you links that will put us on the right track in establishing a connection server that can connect to the EBS?

    Thank you.

    The URL must point to a protected page that prompts the user for basic authentication.

    See an example here:

    https://blogs.Oracle.com/Shay/entry/accessing_secure_web_services_from

    As well as the blogs linked at the bottom of this entry.

  • Web services and ADF 11 g - get result from backing bean

    I will carry out a backup action bean (Web service call that returns complex data types)

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("unesiPonudu");
    Object result = operationBinding.execute ();

    instance of oracle.adf.model.adapter.dataformat.XMLHandler$ DataCollection result but DataCollection is not accessible.

    How to get the results of the method?

    TNX,

    Andreja

    Hello

    There should be a result iterator in the executable files of the article that cotnains the result. If this isn't the case, create from the result WS entry in the palette of DC. Once this iterator is updated, you get this iterator data as is the case of a table goes backwards

    Frank

  • vCenter 4 management of Web services: 503 Service unavailable

    I did a clean install of vCenter 4 on a Windows 2003 VM, everything works well except the web administration. I want to display frontpage where you can download vSphere Client etc. but when I go to "Log in to Web Access" (http://my_vcenter_url/ui), I get the error: 503 Service unavailable.

    After some research it appears as ' VMware VirtualCenter Management Webservices ' ('... \VMware\Infrastructure\tomcat\bin\Tomcat6.exe ' //RS//vctomcat) service does not start (which is weird cause displays the first page). Dig deeper into the tomcat logs, I have to:

    Info Procrun (2.0.3.0) started

    Info Service running...

    service info check out...

    Info error occurred during initialization of VM

    info could not reserve enough space for lots of things

    Info

    395 javajni.c error CreateJavaVM failed

    992 prunsrv.c error failed to initialize the java...\VMware\Infrastructure\tomcat\bin\bootstrap.jar

    1260 prunsrv.c error ServiceStart returned 2

    service info race completed.

    Info Procrun finished.

    I tried to experiment with some settings of java with "Configure Tomcat" tool with no luck. ".

    I would appreciate ideas

    Try to remove the Windows 956572 fix.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • How can we use Primavera portfolio management of Web services in Java?

    I tried to send the SOAP request as:

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

    " < = xmlns:soapenv soapenv:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:psp =" " http://ProSight.com/WSDL/5.0/psPortfoliosSecurity/ ">

    < soapenv:Header / >

    < soapenv:Body >

    < psp:Login >

    Admin of < psp:sUser > < / psp:sUser >

    Admin of < psp:sPassword > < / psp:sPassword >

    < psp:lTimeOut > 100 < / psp:lTimeOut >

    < / psp:Login >

    < / soapenv:Body >

    < / soapenv:Envelope >

    I get the response as:

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

    " < envelope soap: xmlns:soap = ' http://schemas.xmlsoap.org/SOAP/envelope/ "container =" " http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">

    < soap: Body >

    " < LoginResponse xmlns =" http://ProSight.com/WSDL/5.0/psPortfoliosSecurity/ "/>

    < / soap: Body >

    < / envelope soap: >

    Post edited by: 0c81719e-48f8-48a9-abd3-c9dbb717b338 solved the problem of soap action valid, but do not have the token that will be required for access to other services.

    It should look like this:

    try {}

    //
    Configure the PsPortfoliosSecurity Service and activate cookies
    //
    PsPortfoliosSecurityUrl URL = new URL ("http://najad/prosightws/psPortfoliosSecurity.asmx?wsdl");

    PsPortfoliosSecurity psPortfoliosSecurity = new PsPortfoliosSecurity (psPortfoliosSecurityUrl);

    PsPortfoliosSecuritySoap psPortfoliosSecuritySoap = psPortfoliosSecurity.getPsPortfoliosSecuritySoap ();

    BindingProvider psPortfoliosSecuritySoapBindingProvider = (BindingProvider) psPortfoliosSecuritySoap;

    psPortfoliosSecuritySoapBindingProvider.getRequestContext () .put (BindingProvider.SESSION_MAINTAIN_PROPERTY, Boolean.TRUE);

    //
    Connect to Madaboutangling and remove the response cookies.
    //
    psPortfoliosSecuritySoap.login ("admin", "password", 1000);

    Card> responseHeaders = (map>) psPortfoliosSecuritySoapBindingProvider.getResponseContext () .get ("javax.xml.ws.http.response.headers");

    List cookieHeaders = responseHeaders.get("Set-Cookie");

    //
    Setup of the Service of PsPortfolioCategory
    //
    PsPortfoliosCategoryUrl URL = new URL ("http://najad/prosightws/psPortfoliosCategory.asmx?wsdl");

    PsPortfoliosCategory psPortfoliosCategory = new PsPortfoliosCategory (psPortfoliosCategoryUrl);

    PsPortfoliosCategorySoap psPortfoliosCategorySoap = psPortfoliosCategory.getPsPortfoliosCategorySoap ();

    BindingProvider psPortfoliosCategorySoapBindingProvider = (BindingProvider) psPortfoliosCategorySoap;

    //
    Add our "cookies" of the PsPortfoliosSecurity response to our request to PsPortfolioCategory.
    //
    Card> requestHeaders = (map>) psPortfoliosCategorySoapBindingProvider.getRequestContext () .get ("javax.xml.ws.http.request.headers");

    If (requestHeaders == null) {}

    requestHeaders = new HashMap> ();

    psPortfoliosSecuritySoapBindingProvider.getRequestContext () .put ("javax.xml.ws.http.request.headers", requestHeaders);

    }

    requestHeaders .put ("Cookie", cookieHeaders);

    psPortfoliosCategorySoapBindingProvider.getRequestContext () .put (MessageContext.HTTP_REQUEST_HEADERS, requestHeaders);

    //
    Download the CategoryInfo for the class of the field.
    //
    PsPortfoliosCategoryInfo categoryInfo = psPortfoliosCategorySoap.getCategoryInfo ("Domain");

    System.out.println (categoryInfo.GetName ());

    }

    catch (Exception ex) {}

    System.out.println (ex.getMessage ());

    }

    V/r,

    Gene

  • A web service for windows authentication

    Hello
    I have a number of web services on a windows server.
    These web services are for a program client (in vb.net), access and retrieve data.
    This client program are launching for the PC of the individual user.
    The above configuration is in a windows domain.
    Currently, web services allow anonymous access. This means that anyone in the Organization, with the correct URL is able to trigger the web service.
    We are asked to remove anonymous access and all forms authentication configuration.
    Questions

    1. What is the best practice for configuration for a web service for windows authentication.

    2. We also have a couple of unix servers. They are required to access the web services (with the correct authentication). How can I get a cross-environment configuration?
    Thanks in advance.

    Hey Wee Hoe Chiang,

    The question you have posted is related to Windows Server and would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the support you want.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    I hope this helps.

  • Find / create / update using the Web service data command.

    Hello

    I'm working on PS2 (JDEV 11.1.1.3). One of the requirements is to build Web services from ADF pages. Initially the user connection is looking for items. The results would then be displayed as a read-only table. The user will select line clicks on the button "edit / update" then I need see the second page with the details of record selected as a form. Then he can add / edit the page. The same page is also used to 'create '. I am facing issue while the user selects the record in the table Details the research and passing the Id on the second page of the update of the. Can someone help / guide me.

    I went through the blog of Shay. http://blogs.Oracle.com/Shay/2010/05/updateinsert_with_adf_web_serv.html
    But it's different compared to my needs.

    Enjoy your entries.

    Thank you
    Mahesh

    I don't see exactly how have more fields influence the approach.
    If you are looking for a shortcut, you can try to drag the operation of fusion, as a form of parameter ADF - this will create all the fields for you. And then you will need to go in and change their value to point to the pageFlowScope object.

  • 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.

  • Management component of the ADF based on Web Service

    Hi Experts,

    Jdev 11.1.1.7

    How to create a from ADF BC of web service proxy.  Long time back I saw a post that shows step by step implementation on even use cases. I guess it was Frank Nimphius post.

    I googled a lot, but not found. Looking for simillar post.

    Thank you

    Nitesh

    In this case: http://www.oracle.com/technetwork/issue-archive/2012/12-jul/o42adf-1653060.html

    Dario

  • 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

  • vCenter 5.5: Web services management service could be started or ended unexpectedly

    Hello

    in our vcenter costs installed 5.5 (on Windows 2012r2), we are not able to start VMware VirtualCenter Management Web services, we have a lot of messages in the system log:

    "The service of VMware VirtualCenter Management Webservices ended unexpectedly.  He did this 874 times.  The following corrective action will be taken in 60000 milliseconds: restart the service. »

    We only found KB articles for vcenter 4.x or 5.1, many said look if any other process is using port 8080, we checked it... no other process using this port

    Any suggestions?

    OK, found the problem: it isn't Port 8080, it is the port 8009 that causes the problem. We had installed qlogic HBA Software (QConvergeConsole), which has installed its own tomcat server. It blocks the port 8009.

    found in wrapper.log

  • Changing the settings of data control for the Web Service with the company Manager

    We have different environments for the development, test, acceptance and Production. In the environment, we use different instances of the BSSV server so we have several points of endpoints for Web Services. When we move at the request of the ADF from one environment to another, we do not want to change the source code, but we want to change endpoints using configuration. We have seen that store them in Enterprise Manager, we can change endpoints and that this configuration will be saved in a MDS. But what precisely needs to be configured on the application to get this working? Now, we can change endpoints, but they are not saved.

    I found the information in this blog but it doesn´t work: http://blogs.oracle.com/adf/2011/02/changing_endpoint_url_for_a_web_service_data_control.html

    Joost

    Hello

    If you want to configure deployment position of connections, it is necessary for your application to be configured with a Repository.As of MDS in writing I'd mentioned in the blog too, for that you need an entry in the adf - config.xml and that your server must have a registered MDS store. Unless you are going to do this, the connection endpoint changes you make will not be saved.
    For example, at the end of the application, adf-config.xml file, you need an entry like this:
    .










    .
    When you deploy this application a server with a registered MDS, the deployment repository will bring up a dialog box where you can set(select/create) a partition for this app in the mds repository. Once your deployment is done, now if you change the endpoint using EM, it will save your changes.

    Vishal-

  • Web services - role management connector

    Hello

    do you have experience with Webservices IOM connector? I am incorporating a TS via this connector and need to resolve the roles of commissioning for accounts. The child table (contains the roles of account) changes generate messages UpdateAddAttributeValues/UpdateRemoveAttrbuteValues - I managed them in the BPEL (SOA of the connector part) code, but it seems to me that these messages are generated by a record change - so when you add three roles, three UpdateAddAttributeValues messages are generated - one per record in the roles table (at least it seems to be the case because the only role is on TS after the delivery of IOM). I'd rather supply the final set of roles in a single call, because the TS webservice expects a final list of roles as an input to the updateUser method parameter.

    Can you recommend a solution in the Web services connector to supply the final set of roles in the call for an update?

    Peter

    This is the expected behavior of any OOB/Custom connector and connector webservice is no different from that.

    When there is an addition / deletion of data of the child, by the corresponding transaction process task is triggered. However, it doesnot limit allows you to add multiple child records at once. IOM will trigger several instance of the task to process in-house.

    So if you add child data 3-4 at once, you can do by editing the process shape and add several records it or make the request through catalog if you have denounced as right.

    However, if you want a single adapter to treat all newly added entries, you need to improve the connector. You can do this:

    1 > turn off the OOB tasks for the data of the child, to create the task with a custom adapter that put the data into a temporary table.

    2 > write a personalized planning work to treat all child data entered based on the date of creation and operation of the indicator (Add/Remove).

    3 > job should clear the folder after the successful operation.

    .

  • [ADF, JDev 12.1.3] Pop-up window to see the or download a PDF file that is returned by a Web service method

    Hallo,

    in a page of my web application, I need to add a button that when clicked shows a PDF in a pop-up window which enables the user to download on the PC.

    To get the file PDF, the application must call a Web service method that returns the contents of the file encoded in base64 in the body of the response. If the request does not get the file, but a stream that must be dealt with to get the file.

    Could you kindly advice me a good approach/tutorial to create this feature?

    Thank you and best regards,

    Federico

    Call your servlet ws, then convert bytes of payload in base64 and returns this as a binary stream.

    Client side, you can use af:inlineFrame component inside the af: popup to call your servlet.

    Here is example of servlet/inlineFrame part: https://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/

    Dario

  • ADF Web Service call

    I try to call a Web ADF SOAPUI or browser Service.

    There are two URLS but one of them is accessible and others it does not. We need to put in place something on cloud of Fusion so that we can access the service?

    https://ebxg-test.fs.em2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?WSDL -does not work

    https://ebcy-test.fin.US2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?WSDL -I could call it from SOAPUI

    All directions?

    Kind regards

    SID

    To elaborate a little more on what Jani said, ". end.«» segment in the second URL means that demand will the field of finance, which is the right place for a web service of financial data.  The '.fs.' in the first URL means "Functional Setup" and is another server (domain) that doesn't have the expanded financial services web service, so it won't work.

    Hope this helps,

    Mr Oliver Steinmeier

    Fusion applications Developer Relations

    https://blogs.Oracle.com/fadevrel

Maybe you are looking for