Example of application using json or xml

Hello

I am new to blackberry. can any body have examples of connection authentication code, in which we pass user name and password, once we get respone in json or xml.

If sombody have runing code please help me...

Mr President, in fact, I know there are two type of request is GET and other POSITIONS. In both we get respose, but if I want to send encrypted url, so I have to use the POST request. So I want to just how we can use the POST request. ? get a respone.

Example connection authentication. in which we sends the user name and password if username and password (ask the waiter) is right, then his answer is true otherwise false.

Tags: BlackBerry Developers

Similar Questions

  • FF8 + dialog box popup "application/vnd.wap.xhtml+xml" when you access a Web site.

    FF8 cannot use the www.translink.com.au trip planner.

    When I fill in the fields and click on 'Find journey' - a dialog box appears

    "You have chosen to open the trip planner.
    which comes from application/vnd.wap.xhtml+xml a: (27.6 KB): http://jp.translink.com.au
    What should Firefox do with this file?
    Opened with Browse...
    Save the file.

    Also a few other buttons on this site do the same thing, for example. On this page and train travel planner:
    http://TransLink.com.au/travel-information/services-and-timetables/buses/Route-204
    -If you click on the button 'Show time' - it does the same thing.

    This site worked before ok with FF7 and IE8.
    A release with the troubleshooter from the site Web - no response.
    Now it is unusable and don't know what to do.

    Other than this problem only seem to work ok - FF8 so this Web site is to blame?

    Googled the problems forums and looked for a solution - it's a problem similar to mine:
    http://support.Mozilla.com/en-us/questions/796303?s=application%2Fvnd.WAP.XHTML%2Bxml & r = 1 & s = ACE

    PS - to confirm - I use a desktop pc with a mobile broadband usb dongle.

    I hope someone can help.
    Thanks in advance.

    "FF8 + dialog box popup"application/vnd.wap.xhtml+xml"when you access a Web site."

    THE PROBLEM ABOVE IS NOW COMPLETELY RESOLVED.

    The site in question was the problem - NOT 8 Firefox or Linux Mint.

    The site has been fixed and now works as it should.

    If someone else gets a dialog box pop-up similar box to the above - suggest that they contact the administrator of the website the problem and inform them that their site user agent detection Web is not correctly identify your version of Firefox mobile browser and so redirecting to a mobile version, return of mobile specific markup (Content-Type).

    Check the Whirlpool forum: http://forums.whirlpool.net.au/forum-replies.cfm?t=1821427

    and here for a similar problem: http://support.mozilla.com/en-US/questions/796303#answer-158925

    As mentioned above, for the temporary site issue features while it is currently set, install the extension switch from User agent.

    https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
    
  • Use JSON with REST API vCO 5.1

    I'm developing a simple REST client to run a workflow in vCO.  I am using perl and the module REST::Client, which is pretty simple.  I can retrieve the items in the inventory and definition for my target workflow, but when I try to POST a run, I get an error report by stating:

    The request sent by the client is syntactically incorrect.

    I use JSON (as is the default output of the vCO if no Content-Type is specified, and my personal preference), and the JSON format documentation is pretty sparse compared to the XML documentation.  The documents describe the context of execution as follows:

    { "parameters" : [ { "name" : "...", "type" : "...", "description" : "...", "scope" : "local", "value" : { } }, ... ] }

    My workflow accepts two string for the input parameters and returns a string as output parameter.  I read that the scope and description fields are optional, and I am omitting the two.  Clearly, however, Miss something needed on the structure of the execution context.  Can anyone help to shed light on this?

    Complete debugging:

    Accept: application/json
    Accept-Encoding: gzip, x-gzip, deflate, bzip2-x
    Authorization: *.
    User-Agent: REST::Client/249
    Content-Length: 137
    Content-Type: application/json
    {"parameters":[{"value":"10.0.0.0/24","name":"network","type":"string"},{"value":"test-hostname.dom","name":"hostname","type":"string"}]}

    HTTP/1.1 400 Bad Request
    Connection: close
    Date: Wednesday, December 5, 2012 19:01:11 GMT
    Server: vCO Server
    Content-Length: 965
    Content-Type: text/html; charset = utf-8
    Client-Date: Wednesday, December 5, 2012 19:06:21 GMT
    Client-Peer: *: 8281
    Customer-response-Num: 1
    Client-SSL-Cert-Issuer: /C=US/O=VMware/OU=VMware/CN=localhost.localdom
    Client-SSL-Cert-subject: /C=US/O=VMware/OU=VMware/CN=localhost.localdom
    Client-SSL-Cipher: DHE-RSA-AES256-SHA
    Client SSL-Socket-class: IO::Socket
    Client alert-SSL: certificate of the peer unaudited
    Title: JBossWeb/2.0.1.GA - error report


    < html > < head > < title > JBossWeb/2.0.1.GA - error report < / title > < style > <!-H1 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 22px ;}} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 16px ;}} H3 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 14px ;}} BODY {do-family: Tahoma, Arial, without serif; color: black; background-color: white ;}} B {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76 ;}} P {do-family: Tahoma, Arial, without serif;: white background; color: black; do-size: 12px ;}} A {color: black ;}} B.SID {color: black ;}} HR {color: # 525 76 ;} - > < / style > < / head > < body > < h1 > State HTTP 400 - < / h1 > < HR size = "1" = "noshade" noshade > < p-type > < b > < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > < p > < b > description < /b > < u > the request sent by} the client was syntactically incorrect (). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < / html >

    There was a problem with the value of the format JSON deserialization, it is fixed and will be available in version 5.1 of U1.

  • How to use json webservice in blackberry waterfalls

    1. how to use json WebService in the cascades of blackberry.

    2.i need to get data from url link in the qml page. give suggession with examples if possible.

    my link of web service contains the type of array

    for example: {'address': ['zone': 'RCS', 'city': 'ght']}

    Description:

    JSON link--> http://192.168.1.251:410/Mobile/Service1.svc/english/Category?CountryID=1

    using link above please ask how to recover data from json webservice cascading... I need answer to the method of waterfalls...

    Finally, I am me anser for service web json

    Response---> http://stackoverflow.com/questions/18598886/how-to-use-json-webservice-in-blackberry-cascades/186230...

  • JVM error 104: eception native error when you use json jar in the blackberry Simulator

    I'm developing an application where I have to use JSON to fill a listfield.

    I find my JSON response string and now being converted into a JSON object.

    I imported the

    org.json.me.JSONObject
    

    and have referenced the jar JSON as a dependency file after making it a library.

    I use the JDE 4.5... How can I solve this? Thank you.

    I solved this problem by including the file given by Peter Strange at this url:

    http://supportforums.blackberry.com/t5/Java-Development/JSON-library/m-p/573687
    

    Then, I changed the name of the package to reflect mine. This has resolved the original error.

  • 500 unexpected substitute error when changing the id of the application in - app. XML

    Hi, I'm debugging my app on the real PlayBook,

    I decided to change the application in the - app.xml id, since then, I get an error "500 unexpected substitute" when you try to run the FB4.5 application.

    This threa500 unexpected substitute at the launch of app browsing I understood the problem came from the ID of the application being changed, but not the inner packaging ID used to reference the app in the PlayBook.

    This is verified by looking inside the bar file for application id generated old and new application id, package id remains unchanged. (I think it's actually a bug in the SDK, I'd love to have confirmation of this from someone competent)

    so I thought OK, I'll just delete the app from the PlayBook to clear the former association IDPack applicationid and reinstall...

    but still no hope.

    Here is a detailed description

    old id of the application has been myOldAppID

    new application id is myNewAppID

    generated from the package id: myPackID (even for the two application ID)

    It seems that the PlayBook maintains a list of applications that have already been installed on it: I tried to delete the application from the command line using blackberry - deploy and the package id (obtained from the .bar):

    blackberry-deploy -uninstallApp -device 169.254.0.1 -password *** -package-id myPackID
    

    The app is removed as planned, it is deleted from the PlayBook, the command displays the result menu

    Info: Sending request: Uninstall
    Info: Action: Uninstall
    Info: Uninstalling myPackID...
    Info: Processing 0 bytes
    actual_dname::myOldAppID.debug.myPackID
    actual_id::myPackID
    actual_version::
    result::success
    

    The result, we see that the PlayBook concludes the old reference to my application and displays the ID of the application on line actual_dname

    now, if I run the same command, but with an obviously wrong package ID:

    blackberry-deploy -uninstallApp -device 169.254.0.1 -password *** -package-id someWrongID
    

    I get the result

    Info: Sending request: Uninstall
    Info: Action: Uninstall
    Info: Uninstalling someWrongID...
    Info: Processing 0 bytes
    actual_dname::
    actual_id::someWrongID
    actual_version::
    result::success
    

    Note the line actual_dname is empty, there is no reference for the application with package ID someWrongID

    Here, I'd rather see an output like "application not found for package id someWrongID" but anyway...

    So if I run the same command again, with my application package ID, I expect the line actual_dname will be empty, because the application has already been deleted, but the result is always:

    Info: Sending request: Uninstall
    Info: Action: Uninstall
    Info: Uninstalling myPackID...
    Info: Processing 0 bytes
    actual_dname::myOldAppID.debug.myPackID
    actual_id::myPackID
    actual_version::
    result::success
    

    Here, I see that the PlayBook still holds the former association of myOldAppID with myPackID, even if the application has been removed...

    I tried to restart the PlayBook, cleaning and reconstruction project, all without result... the reference remains in the PlayBook, and myPackID remains unchanged.

    NoI am blocked, if I want my app to debug, it seems that I must leave application ID with the old value...

    I would like to know, is it possible to remove completely an application and all of its references, of the PlayBook?

    And there at - there someone who can explain how the Package Id is generated, and if it's a bug or a feature?

    Thank you!

    Hi Julien,

    This problem is supposed to be fixed on the latest SDK version: 1.1.1. Could you please confirm what command line tools do you use?

    blackberry-airpackager -version
    

    will show you its own version.

    See you soon!

  • Examples of applications in Cascades

    Hello

    I'm looking for examples of applications for stunts specifically using OPENGL as a component.

    I searched link below and found no one.

    http://developer.BlackBerry.com/native/sampleapps/

    Thank you

    Sumi Ghosh

    There is a tutorial here...

    https://developer.BlackBerry.com/native/documentation/core/opengl_window_overview_new_2006444_11.htm...

    It might be easier to go to this page and use the search for browsers to locate the openGL examples...

    http://BlackBerry.github.IO/catalogs/All_Samples.html

  • HTML + css + javascript is enough? Another example of application?

    Hello!

    To accept that my application is sufficient to write in html + css + javascript? like normal Web site?  or I have to use other tools?

    Where can I find another example of application? not "SketchPadStandard"?

    What types of applications rejected RIM?

    I don't know about "The Applications that provide a simple, unique, function as play sound or display a graph."

    but some other advice?

    BTW: I use the command line to create a * .bar, compile and run my application on the Simulator, but y at - it tool that will speed up this process?

    Sorry for the many questions in one thread, rookie mistakes

    Greetings!

    @kubaczento, this is the forum for the development of the AIR.  If you look at the works of the Web (HTML, etc.) you should head to the course on Web development forum which is side to it...

  • Difference between prefer application-packages in weblogic.xml and weblogic application. XML?

    Hello!

    When you deploy a WAR for WebLogic 10.3.5, what is the difference between the prefer-application-package element in the weblogic.xml and weblogic application files. XML?

    In my WARs WEB-INF/lib / I have a JAR that contains classes that are already provided by the container (but older versions).

    If I do not prefer-application-packages use my application gets then the classes provided by the container.

    If I use prefer-application-packages in weblogic.xml can I get classes in WAR/WEB-INF/lib, which is expected.

    But if I use prefer application-packages in weblogic - application.xml, then I get the versions of container. Why?

    Is there a difference between these two options?

    The exact data that I use are:

    (foo.bar. * is the name of the conflicting package;) Add or remove the linex tagged XXXX)

    WEB-INF/weblogic.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
        xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
        <wls:container-descriptor>
            <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
            <wls:prefer-application-packages> <!-- XXXX -->
                <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
            </wls:prefer-application-packages> <!-- XXXX -->
            <wls:prefer-application-resources>
                <wls:resource-name>META-INF/services/some....</wls:resource-name>
                <wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
                <wls:resource-name>META-INF/services/stuff...</wls:resource-name>
            </wls:prefer-application-resources>
        </wls:container-descriptor>
        <wls:jsp-descriptor>
            <wls:page-check-seconds>-1</wls:page-check-seconds>
            <wls:precompile>true</wls:precompile>
            <wls:precompile-continue>true</wls:precompile-continue>
            <wls:keepgenerated>true</wls:keepgenerated>
        </wls:jsp-descriptor>
        <wls:session-descriptor>
            <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
        </wls:session-descriptor>
    </wls:weblogic-web-app>
    

    META-INF/weblogic - application.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application
        xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <application-param>
            <param-name>webapp.encoding.default</param-name>
            <param-value>UTF-8</param-value>
        </application-param>
    
        <xml>
            <parser-factory>
                <saxparser-factory>
                    org.apache.xerces.jaxp.SAXParserFactoryImpl
                </saxparser-factory>
                <document-builder-factory>
                    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
                </document-builder-factory>
                <transformer-factory>
                    org.apache.xalan.processor.TransformerFactoryImpl
                </transformer-factory>
            </parser-factory>
        </xml>
    
        <prefer-application-packages>
            <package-name>foo.bar.*</package-name> <!-- XXXX -->
            <package-name>javax.jws.*</package-name>
            <package-name>javax.xml.ws.*</package-name>
            <package-name>org.apache.cxf.*</package-name>
            <package-name>antlr.*</package-name>
            <package-name>org.xmlsoap.schemas.wsdl.*</package-name>
        </prefer-application-packages>
    </weblogic-application>
    

    WebLogic - application.xml has no meaning in wars, it is only used in the ears.

  • Would it be possible to implement the application using DPS calculator?

    Would it be possible to implement the type of Calculator application using Adobe DPS that accepts a user input and pass it to the webservice API and displays the result.

    It can be done using html and java script. Message me if you want that I like to share an example.

  • Set a value of Application using PL/SQL element

    I have a question of enforcement F101_MAINTENANCE it needs is the value set according to the values in a table. The value would be a piece of HTML code.

    Ideally this would be verified every time that a page is loaded and the value is printed on the screen on every page.

    Is there a way to do this?

    I use 4.0.2 on 11g

    Hi Craig,.

    To set an application using PL/SQL item value:

    // some examples
    :F101_MAINTENANCE := 'some value';  // a varchar
    :F101_MAINTENANCE := 123;           // a number
    :F101_MAINTENANCE := SYSDATE;       // a date
    

    The varchar 'some value' could be HTML and could be HTML with the values of a table concatenated, like this:

    DECLARE
       l_ename VARCHAR2(100);
    BEGIN
       SELECT ename INTO l_ename
       FROM emp
       WHERE empl_id = 123;
    
       :F101_MAINTENANCE := 'Empl name: ' || l_ename || '';
    END;
    

    (Take the space out of the style attribute - it's just there because the forum keeps style stripping attribute when displaying the post values.)

    This could be in a process of page to fire when the page loads. If she has to work for all pages, it could be in an application process set on fire during the loading of each page. If it should work for all but a few pages, you can place the code in an application process on fires during each page load, but then put a condition on it so it is not fire for specific pages.

    Now that the application is defined, it can be used on the pages where you need. If it is used for display only, remember to not escape special characters, or else it will just display the HTML rather than surrender. And if the value of the element of the application only needs to be set in PL/SQL, be sure to set the protection of session state so that he can "Restricted - cannot be resolved in the browser.

    Hope this helps,
    John

    If you find this information useful, please indicate the 'useful' or 'correct' post so that others benefit. *

  • WebService application using java for beginner?

    Hi all.

    I am beginner in java and netbeans.
    before, im using php in the programming code...

    My question is how to configure the database for netbeans, how to run an application in the browser...
    example of application is as web Commerce.

    hope everyone of you can help me solve this problem. tQ

    Buy yourself a book. This isn't something you can learn on a forum. And Web services and web apps are not for beginners. Took me about 6 years of Java before that I've never done a web service and more than 10 before I did a web - app, but that was certainly more to be overtaken by other possibilities. However, it is definitely a lot to learn: HTML to start, then the Servlet specification, then selection of a stack of technology, for example, JSF, GWT, JSP, Struts,...

    Your questions don't make sense. NetBeans and databases have virtually nothing to do with the other. The applications do not run in web browsers, unless you count applets and ActiveX, that are not part of most web applications. You must also decide if you're talking about web apps, which have a large component of oriented browser or Web services, which provide an API based on SOAP to other applications.

  • Not yet documented examples of Applications download the link ADF not working not

    Steve Muench not yet documented ADF Sample Applications located at http://blogs.oracle.com/smuenchadf/examples/

    The download link for samples does not. He headed Oracle JDeveloper Product Page instead.

    By clicking on the title of any sample application used to allow download of the example file. Now that it's pointing to http://www.oracle.com/technetwork/developer-tools/jdev/overview/index.html

    Is there another way to download the sample applications?

    Thanks in advance for your help.

    Mitesh

    Refresh your browser on my samples page and click on the link for #145. It should work now.

    The base directory is not navigable, you must know the full URL to the file.

    I added #145

  • FDS Test Drive - help with examples of applications

    I try to use the FDS 30 minute TestDrive sample applications inside
    Flex Builder. I downloaded the test drive and all the samples of work
    fine just dandy, and I can view source etc. Then I wanted to load
    some of the apps sample in Flex Builder so that I could edit and
    play with them with the debugger to learn more.

    I tried the following:
    create the new project - use Flex Data Services/compilation app locally
    Root folder: C:\fds-tomcat\webapps\ROOT
    Root URL: http://localhost:8600 / ROOT. When I cliquerai to finish, I get the
    After 3 errors in the output panel:

    Unable to load SWC fds.swc: multiple points
    Unable to load SWC fds.swc: multiple points
    The definition of local base class was not found.
    Could not resolve < mx:Application > for implementation of component

    I'm on Flex 2.0.143459.

    I checked that fds.swc is indeed in the
    C:\fds-tomcat\webapps\ROOT\WEB-INF\flex\libs folder.
    I don't know what mean other messages or what to do.

    I then unzipped stubbornly examples of applications in the
    Project file FlexBuilder (I called FDS TestDrive samples) and
    tried to run anyway to see if I could get more information. I then get
    a browser with the following additional errors window:
    type of status report
    message /ROOT/FDS%20TestDrive%20Samples/Chat.html
    Description the requested resource (/ROOT/FDS%20TestDrive%
    20Samples/chat.html) is not available.

    So I guess that one of the problems is that it does not have an html document.
    But I don't know how to fix this.

    I don't know what to do. Any help would be GREATLY appreciated.

    Someone helped me offlist that once I'm frustrated that this forum is basically dead. But in case anyone else needs this info, I thought I would post. First of all, be on Flex version 2.0.155577. I have therefore had to redownload all of Flex, uninstall my old version, install the new version. Then I did the following
    to create the Flex Builder project for the dashboard sample application:

    File - > new-> Flex project
    Select Flex Data Services
    Select the application compiles locally
    Click next
    Uncheck the "default local Flex Data Services location"
    Click Browse... and open c:\fds-tomcat\webapps\ROOT
    Root URL: http://localhost:8600 /
    Context root: /.
    Click next
    Project name: ;
    Uncheck the "Use default location" checkbox
    Folder: c:\fds-tomcat\webapps\ROOT\dashboard
    Click next
    The main application file: dashboard.mxml
    Click on finish

    The context root is really essential. Also, to find my old Flex projects, I used file:import and then had to do a little more fiddling with some of the properties of the project.

    Too bad, this Forum is dead. I tried to get feedback to Adobe on this concern, but so far it has not helped. sigh

  • Best way to use quot &amp; data xml; simple &amp; quot; controls

    Good evening everyone,

    I'm working on an application that retrieves the XML data and uses a DataGrid to display their (the very standard way).
    When a user selects a row in the DataGrid, I want to show more information in another panel - but not in a Datagrid (regarding only ONE item), but in simple controls such as labels or text boxes.
    This information is also stored in the XML data source, but it is not displayed in the DataGrid control.

    I think I'm pretty confused at this point, I think there must be a way easy and smart to do that, but I have not tried.
    I rly want to avoid to "manually" using SOMETHING like "label.text = xmlSource. ....'

    Is anyone an idea? :)

    Best regards
    Florian

    OHAIO

    Suppose you have 3 columns {id, firstName, LastName}
    Set the visible attribute for the column you want to hide to false.
    Add the click event to your DataGrid
    in the click handler function:
    private void clickHandler(e:Event):void
    {
    firstNameText.text. = selectedItem.firstName (e.currentTarget as DataGrid);
    }

Maybe you are looking for

  • Built-in keyboard on the Ipad 2 air

    Hello This is the question on the keyboard integrated on my Ipad. Can someone tell me if there is a way to upgrade the keyboard on my Ipad? For such an expensive piece of kit, the keyboard does not appear to have great functionality. For example, if

  • P1 - vibration problems

    I have a Lenovo P1, the vibration while receiving calls is very low. I don't feel the vibration when the phone is in your pocket. All solutions. Comment to Moderator: The model is added to the object for clarity.

  • Everything on the screen went super-sized! How can I restore back to normal?

    Everything on the screen went super-sized! How can I restore back to normal? * original title - Super-sized icons, cursor, etc. ! *

  • WMP11 Vista cannot read attachment WMV files.

    Vista Home Premium 32 fully updated and current running. WMP 11 DirectX 10 Whenever I try to play a video that is contained in an email as an attachment (webmail), I get the error message: "Windows Media Player cannot play the file. The Player cannot

  • How to get the Act of war to operate on windows 7

    cannott be Act of war direct action to run on windows 7, even if he says it works with windows xp