Remote service using ADF Mobile call

Hello

I'm new to ADF/ADF Mobile. I have a web service - http://www.webservicex.com/globalweather.asmx and I have an application that looks at-http://docs.oracle.com/cd/E18941_01/tutorials/BuildingMobileApps/ADFMobileTutorial_1.html. Using the webservice, I'll enter a city name and it will bring me to a new page with the results.

I tried to create a web service by using this url data control - http://www.webservicex.com/globalweather.asmx?WSDL and it gives me the two data control.
1 GetCitiesByCountry (String)
2 GetWeather(String,String)

From there, I tried many ways to drag the control from the facet data. All advice/instructions on how to do it? Especially on data links and view the results.

Hello

What does not work?
By dragging from the datacontrol to the facet?

That only works when you drop in the other 'source' tab or in the pane "structure."
It does not work in the 'Sample' tab

The Web service call does not work?
Not sure why it does not work. Could be many reasons...

Try to be more specific in your question.
An example of a service of wheater / ADF Mobile application is available here: https://blogs.oracle.com/mobile/entry/web_services_example_part_1

Luke

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.

  • Email with multiple attachments using ADF Mobile

    Hello

    I want to send multiple attachments using ADF Mobile, using Jdeveloper version 11.1.2.3.0

    looking at the signature of the method below sendEmail(), attachments param looks as String

    DeviceManagerFactory.getDeviceManager (.sendEmail)
    java.lang.String to
    java.lang.String cc
    java.lang.String subject
    java.lang.String body
    java.lang.String bcc
    spare java.lang.String
    java.lang.String mimeTypes)

    Is multiple attachments supported in the ADF Mobile? If so, please suggest how to achieve this scenario.

    -Deepak

    Deepak,

    You can attach multiple files as string separated by commas (paths).

    Ex: http://technology.amis.nl/2012/12/27/adf-mobile-device-interaction-api-pictures-gps-and-email-with-attachments/

    Ref: http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/amxbinding.htm

    Arun-

  • 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

  • ADF Mobile - XML parsing

    Previously, I posted on the call of a remote webservice - call remote using ADF Mobile service and I get my weather app already working.

    WebService returns me a string which is a XML form. I want to parse the XML to make it easy to read.

    The current output of webservice (http://www.webservicex.com/globalweather.asmx) as is below.

    * < string > < NewDataSet > *.
    * < table > *.
    * < country > Singapore < / country > *.
    * < City > Singapore / Paya Lebar < / City > *.
    * < /table > *.
    * < table > *.
    * < country > Singapore < / country > *.
    * < City > Singapore / Changi Airport < / City > *.
    * < /table > *.
    * < / NewDataSet > < / string > *.

    How to analyze this output so I can correctly display the string in the mobile?

    Singapore / Paya Lebar
    Singapore / Changi Airport

    Any direction on how to do it? Or is there a built-in inside JDeveloper?

    As mentioned earlier - your service returns XML code - so either you write Java code that performs the extraction of data.
    Or if you want to use declaratively using the data URL control option
    as explained here:
    http://Rohith-Oracle.blogspot.com/2012/12/ADF-mobile-consuming-RESTful-service.html
    Your service will accept this type of URL:
    http://www.webservicex.com/globalweather.asmx/GetCitiesByCountry?CountryName=Singapore

  • ADF Mobile: give application to another person for iOS

    I am building an iOS application using ADF Mobile. My friend another is in a remote location.
    For android, I can easily create an apk and send it for him but for iOS while creating a configuration profile it ask for the device id. So, looks like I can't do the same in the case of iOS for him to see and test on his device.
    is that correct or I missed something?

    Please notify

    Vik2 wrote:
    I have a license and to generate the provisioning certificate, he asks me the ID unique to my device.

    so once I have provide it then the profile will be just on my phone. How my friend will be able to get the app on the phone even with the source code? used to another license?

    Your friend must save his camera as well (with Apple) before it can deploy in its device.
    If you need basically to do the same process you did.

  • ADF Mobile: EL nested

    Hello

    I use ADF Mobile to develop a mobile application (so JDev, 11.1.2.3.0).
    Now, I am facing a problem of EL nested.

    I press a button and a display of witch popup opens an error/success message.
    My popup code:
    <amx:popup id="mess" inlineStyle="width:90%">
        <amx:panelGroupLayout id="pgl1" layout="vertical" halign="center">
            <amx:outputText value="#{viewcontrollerBundle.ACTIONDATE_ERROR}" id="ot2" rendered="#{bindings.message.inputValue eq 'ACTIONDATE_ERROR'}"/>
            <amx:outputText value="#{viewcontrollerBundle.TIME_ERROR}" id="ot3" rendered="#{bindings.message.inputValue eq 'TIME_ERROR'}"/>
            <amx:outputText value="#{viewcontrollerBundle.SUCCESS_REGISD}" id="ot4" rendered="#{bindings.message.inputValue eq 'SUCCESS_REGISD'}"/>
            <amx:outputText value="#{viewcontrollerBundle.ERROR_SAVING}" id="ot5" rendered="#{bindings.message.inputValue eq 'ERROR_SAVING'}"/> 
            <amx:panelGroupLayout halign="center" layout="horizontal" id="pgl2" rendered="#{bindings.message.inputValue eq 'SUCCESS_REGISD'}"> 
                <amx:commandButton text="#{viewcontrollerBundle.OK}" id="cb3">
                                <amx:closePopupBehavior popupId="mess"/>
                                <amx:actionListener binding="#{bindings.resetFeature.execute}"/>
                </amx:commandButton>
          </amx:panelGroupLayout>
          <amx:panelGroupLayout halign="center" layout="horizontal" id="pgl3" rendered="#{bindings.message.inputValue ne 'SUCCESS_REGISD'}">
                <amx:commandButton text="#{viewcontrollerBundle.OK}" id="cb4">
                                <amx:closePopupBehavior popupId="mess"/>
                </amx:commandButton>
          </amx:panelGroupLayout> 
      </amx:panelGroupLayout>
      </amx:popup>
    As you can see, I use mutiple output texts. I want to move it to only 1.
    I tried:
    <amx:outputText value="#{viewcontrollerBundle[bindings.message.inputValue]}" id="ot2" />
    And some variations as with one. or "but nothing seems to work.
    (I use a group of resources, because the application will be used in different languages)

    Any suggestions on how to fix this? Or another way to call the popup that can support the beams of resources?

    Thanks in advance.

    Hello.

    You can access all through Java code in a managed bean and bind your amx:outputText to one.

    Here is a code example:

    import oracle.adfmf.framework.api.Model;
    import oracle.adfmf.framework.contract.adf.NameValuePair;
    ...
    
        public String getMessage(String err) {
            Model mod = new Model();
            NameValuePair[] result = null;
    
           if (err.equals(ACTIONDATE_ERROR)) {
                result = mod.getValue(new String[] { "#{viewcontrollerBundle.ACTIONDATE_ERROR}" });
            }
           else if ...
    
           return (String)(result[0].getValue());
        }
    

    Simply create a binding method and assign bindings.message.inputValueas the parameter value.

    Best regards

    Frédéric.

  • Oracle ADF Mobile - Android SDK problem

    Hello

    I use Jdev11.1.2.4.0 with ADF Mobile framework 11.1.2.4.39.64.71 EQUIPPED. While I'm deploying application in the Android emulator more precisely Android SDK Manager 22.2.1.

    I got an error like.

    CreateProcess error=2, The system cannot find the file specified in android "C:\Program Files\Android\platform-tools\aapt"":;
    
    

    of this error. I got to know, aapt is not in the path mentioned during execution.

    But see my configuration below. I loaded different directory.

    Location of the Android SDK:

    F:\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\sdk

    Location of the Android platform:

    F:\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\adt-bundle-Windows-x86_64-20130917\sdk\platforms\android-18.

    Little, I've observed, earlier we use ADF Mobile framework 11.1.2.3.xx.xx. Now, we are updated to 11.1.2.4.39.64.71. And,

    Also AVG Antivirus installed.

    I did a few months ago before deployment. I force get this error.

    My basic questions:

    1. how to solve this error. ?

    2. I loaded different directory. Why is he trying to extract from another directory. ?

    More clearly... / Platform-tools\aapt is available in drive f but it is looking for drive C Program Files...

    Help me understand...

    During this time. I have goggled out, I got a link from Jobinesh.

    Binary: Error during the deployment of the CRG app for android - cannot run the program "adt-bundle-windows-x86_64-20140321\sdk\tools\zi..."

    This link is not accurate. But it helps me understand, I need to move the files to the mentioned location. But it is not sensible for me in my case.

    Thank you

    Kaim.

    You must use Oracle MAF instead of Oracle ADF Mobile in the future.

    Google continues to change the location of the files in their installation of SDK - so change between versions of the API of the location of the files.

    Make sure that you use the API right supported by your Mobile ADF or the version of the MAF.

  • ADF Mobile: Mobile Agent SSO Integration?

    Hello

    If I understand correctly, security for native mobile applications supports only basic authentication against the application connection server.

    (I use ADF Mobile 11.1.2.4.39.64.62)

    Are there plans for the integration of the Agent of SSO Mobile?

    Thanks a lot for the info and best greetings

    Daniel

    Hello.

    You are right; Basic authentication is everything you have right now. We aim to provide a wide range of modes of authentication, but also a tighter integration with Oracle Access Manager, disclosed in the future.

    It is possible to make applications on the device SSO by deploying Oracle Mobile Security (formerly Bitzer Mobile). This work between several ADF Mobile applications and even other types of custom applications. It works without having to change the applications themselves.

    Frédéric Desbiens

    Mobility and Chief of product development tools

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • Display a table in the ADF Mobile app

    The source of data for the mobile adf application I'm building is the Oracle database. I developed a SOAP web service to retrieve data from database. However, I do not understand how to map data from the web service to adf mobile application.

    I intend to display the data in a table on page amx of adf mobile application. Please advise me how to do this.

    To look at an amx:iterator to browse the lines.

    And it generates amx:table and rowLayout while doing it.

    http://docs.Oracle.com/CD/E35521_01/apirefs.111230/e26230/TOC.htm#AMX:rowLayout

  • I want to get the path to download forlder in ADF Mobile

    I use adf mobile to build the mobile sample with jdeveloper 11.1.2.4

    and I want to write a file to download the mobile phone but I do not know the path of the download folder as it differs from one mobile phone to another

    can someone give me a method to return the path to the download folder.

    Hello

    not sure what is the download folder, but I guess you download files and search for were to store. See:

    Application container API - 11 g Release 2 (11.1.2.4.0)

    AdfmfJavaUtilities (Oracle Fusion Middleware Java QAnywhere for Oracle ADF Mobile)

    Frank

  • ADF mobile user interface design

    Hello

    I am developing a small application using ADF mobile. The main screen is divided into two vertical and left pane shows other tables and right shows a graph.

    Can someone tell me please what layout (formlayout, pagelayout, tableLayout) to use to generate the amx above page.


    presentation of the sample:


    Header 1
    table chart
    Header 1 Header 2
    graph

    Hey shravan.

    I can try and start helping you out or at least give you some options.

    But first, what camera do you mainly be used? A tablet or mobile device? Now, it is important, depending on what device and what components allows you to build the page it can make the left and right different component.

    Separation of the front left and right, you could a component PanelSplitter, but be aware depending on the device you use, it will make differently. that is to say on a Tablet (iPad), it will show the pane on the left and right, but on a mobile phone (cell phone), it allows you to hide the left pane, but has a toggle button that will slide to the right and reveal the left pane. It comes to the expected behavior of the panelSplitter component.

    The panelGroupLayout component that of exactly it, shows the components on the page «»

    The components carefully aligned panelFormLayout similar, i.e. input text fields

    Hope that gives you a starting point

  • ADF Mobile: Confusion

    Hi all

    I like Oracle ADF Mobile and want to learn it, but I am bit confused about its market and its future. You know that everyone wants a future course :). Please give your kind suggestions about it.

    Thank you

    Nasir

    Published by: User129 on February 4, 2013 21:49

    Hi, Nasir, also, there are more than 15 teams of domestic demand Oracle, development of mobile applications using ADF mobile, and some are about to escape. It is targeted for Java/Web developers, so it is well suited for the Oracle internal developers. Beyond ADF Mobile, it is not really of framework on the market today that focuses on applications of business mobile + cross-platform capable of Java/HTML5 based. ADF Mobile would be able to stay even with just the Oracle development.

    With respect to performance on the Android emulator, this is a known issue and performance is particularly bad for hybrid applications that largely operates the HTML5. All HTML5-based framework would have the same performance of emulator issue.

    With respect to point towards the future, HTML5 on Android performance will improve, as Android will want to deal with iOS, which has a built-in web engine harder for HTML5/hybrid applications. This is evident by comparing the HTML5 support between Android 2.x and 4.x - major difference between the two. In addition, we can see that Chrome has much stronger HTML5 supported, and it's a matter of time before Android/Google provides HTML5/Hrbrid applications Chrome web engine.

    So I'm very optimistic for the future - it will get only better get out of here.

    Thank you

    Joe Huang

  • JDeveloper ADF Mobile - Android context

    Hello

    I'm new to the development of the ADF Mobile. I wanted to use an existing library of android. which requires the context as a parameter because this isn't some back-end database activities. How can I get the Android context if I develop hybrid application using ADF Mobile.

    It's very urgent for the development of mu. Any help is appreciated.

    Kind regards
    Kathia

    Hi, unfortunately I don't think that it is easy to use an existing library of Android, because the JVM Dalvik on Android device is different from the JAVA virtual machine integrated into ADF Mobile. ADF Mobile integrates its own JVM to ensure cross-platform compatibility.

    However, that said, what is the use case exact application you have in mind? In the backend, you mean you are trying to use the Android library communicates with the database server and synchronize data and download data in the local SQLite Database?

    Thank you

    Joe Huang

  • ADF Mobile | using secure web services


    Hi all

    I'm pretty new to ADF Mobile, I use JDev 11.1.2.4.

    In my Mobile application I want to use the secure web service.

    Here's what I do:

    1. creation of a data control based on the WSDL binding.

    2. get the web service methods in the data control.

    3. during the race, I'm getting that error "oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client from server SOAP fault: Missing < wsse: Security > in the SOAP header.

    When trying to run the WSDL binding in SOAP UI, I need set request username and passwordproperties, then only I will be able to invoke this web service.

    Here, my question is where can I set these properties for the data control to the web service ?

    Please suggest.

    Thank you

    Vieu

    Hi Shay,

    Thank you very much for the reply, I'm able to resolve the problem with the approach mentioned user guide.

    I forgot to set it up for the first time: ADF Mobile allows you to specify a custom provider class in your DataControls.dcx file. This custom class extends oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider . You can use it to specify an implementation of the SoapHeader[] getAdditionalSoapHeaders() method

    Example 9-1 shows how to extend the SOAPProvider and create a custom header has shown in example 9-2

    package provider.ebs.soap;

    Import oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider;

    Import oracle.adfinternal.model.adapter.webservice.provider.soap.SoapHeader;

    SerializableAttribute public class EBSSOAPProvider extends SOAPProvider {}

    SoapHeader public getAdditionalSoapHeaders() {}]

    SoapHeader header [] = SoapHeader News [2];

    SoapHeader token = null;

    SoapHeader user = null;

    SoapHeader pass = null;

    header [0] = new SoapHeader ("http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/",

    "SOAHeader");

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "Responsibility."

    'SYSTEM_ADMINISTRATOR'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "RespApplication,"

    'SYSADMIN'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "SecurityGroup."

    'STANDARD'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "NLSLanguage,"

    'AMERICAN'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "Org_Id."

    "0"));

    header [1] = (new) SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    'Security');

    Token = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "UsernameToken");

    User = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "Username."

    "sysadmin");

    pass = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "Password."

    "sysadmin");

    Header [1]. AddChild (Token);

    token.addChild (user);

    token.addChild (pass);

    Returns the header;

    }

    }

    Kind regards

    Vieira

Maybe you are looking for