HttpConnection and Php Webservice

Dear All; I'm new in the development of blackberry, I know the basics, I have the mysql database on my server, I want to connect to this database or you can say I want to do the login form in my application. So I think I need to use the webservice with json.

But I need an example to show:

How to send request?

How to get the data?

How do I view it?

an example of code will be better...

Thanks guys...

Thank you all for your replies, but I said that I know the basics but this link to acctually give me everything I need in a detailed sample...

The link:

http://www.IBM.com/developerWorks/opensource/tutorials/OS-BlackBerry/Section4.html

Kind regards...

Tags: BlackBerry Developers

Similar Questions

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • Looking for adobe certified companies that can create a web site of muse with java and PHP for me

    Looking for adobe certified companies that can create a web site of muse with java and PHP for me

    Relationship problems he...

    1: nothing like the Adobe Certified companies

    2: sites of Muse do no PHP support.

  • Difference b/w WebService synchronous and asynchronous WebService?

    Hello friends... !
    What are the main differences b/w WebService synchronous and asynchronous WebService? What is the information essential to their topic about SOA?

    Hello

    There is no difference between Asynch and sync in terms of flow, or good business logic
    the only difference is in web synchronous service feels the responsibility to give the answer to the applicant
    but asynchronous, you call the web service to give the answer...

    more there is a limit for a time limit for the bpel process to be carried out for synchronous. . but is not asynchronous. .

    There is also a slight difference in the wsdl. .

    Try it for yourself. .

    Thank you

  • How to create a dynamic newsflash using dreamweaver and PHP

    Hello

    I would like to create a dynamic newsflash using dreamweaver and PHP because newsflash will be snapped up information from a MySQL database. The Bulletin-Flash should also have a link to view more information about the piece of news a user wants to learn more. What tools do I need to use in dreamweaver and how is the procedure to go about it. All opinions are appreciated. Thanks in advance!

    Sermon of Ras wrote:

    I tried using the spry effects, but it does not work. Is there a best way to do this?

    Google "jquery vertical newsticker" ;-)

  • iFrame and PHP ~ CSS generated content (Wordpress)

    Hello

    I have an IFRAME that calls a wordpress page. I don't want to use the browser scrollbars by default if I want to use the IFRAME script drop down located at this address: http://www.dynamicdrive.com/dynamici...amescroll.htm# but! the second stage of this duty to add this at the end of the HTML page loaded into the IFRAME:

    <!-DO NOT REMOVE the SCRIPT below. IT MUST ALWAYS APPEAR at the end of YOUR CONTENT.

    < script language = "JavaScript1.2" >

    Scrollable III content - by http://www.dynamicdrive.com

    var speed, currentpos is curpos1 = 0, alt = 1, curpos2 =-1

    function initialize() {}
    If {(window.parent.scrollspeed!=0)}
    Speed = Window.parent.scrollspeed
    ScrollWindow()
    }
    }

    function scrollwindow() {}
    Temp = (document. All)? document.body.scrollTop: window.pageYOffset
    ALT =(Alt==0)? 1: 0
    If (alt == 0)
    curpos1 = temp
    on the other
    curpos2 = temp

    window.scrollBy(0,speed)
    }

    setInterval ("initialize ()", 10)

    < /Script >
    the problem is that Wordpress pages strongly using PHP and CSS, so I don't know if it is even possible to add the script somewhere, or if there is another method... or maybe simply impossible.

    Hope someone can help me.

    Hello Christian Cruz,

    This is for pages in WP are cut back to ofer in CSS and PHP and JS but it is also true that everything is set to allow other scripts work.

    Is (almost) Save to put your sctipt in the servese the page theme file that you want to call. Of course, you should save a copy of this file and so on and do an extensive testings.

    Kind regards

    M.Zografski.

    -----------------------

    Geckozone.org

  • HTML and Php echoes

    Hello

    I'm designing a website using html and php. The problem is that I want to add html in my php.

    The code looks like this.

    <? PHP

    echo"< font size ="2"face ="Times"> try later < / police > ';

    ? >

    I get an error message. It seems to not work. How can I manipulate the text echo in php code?

    Hope you can help.

    This marker, as supposed replied.

  • How to create and use Webservice using WSDL controls in weblogic portal10.3

    I have WSDL, how to create webservice control using WSDL in portal weblogic 10.3 and use these controls to call the Web service methods?
    Please give me the links of documents for this.

    Thank you

    Published by: user9041086 on August 12, 2010 09:26

    See the discussion below

    How to create and use Webservice using WSDL controls in weblogic portal10.3

    Thank you
    Vincent Sarvabatla

  • The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David Powers

    The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David powers:

    This book would help me learn more about Spry and Ajax and how applications may be lodged with them, if I have my e-commerce site works on a compiled C code cart (ShopSite) but supports scripts PHP server-side or is - this only for shopping carts based on PHP itself (like X-Cart)?

    I'm not sure. Someone please let me know if I can buy this book. Thank you.

    ahsenabro wrote:
    > 1. What I need to be a developer/programmer to learn from this book or
    > can a savvy entrepreneur can also get some gems out of it and direct sound
    > programmer?

    You don't need no prior knowledge of PHP or Ajax, but you must
    know the basics of HTML and CSS. As I say in the introduction, "You."
    don't need to be an expert, but do not have a curious mind.
    It teaches the basics of web site design, or he's trying to list
    each unique feature in Dreamweaver CS3. There are many other books
    to fill this gap. However, by working through this book, you will gain a
    in-depth knowledge of the most important features of Dreamweaver.

    > 2. I am interested in buying this book especially to implement cool Ajax/Spry
    > stuff on my e-commerce site. I wonder about PHP, because the content of the book
    > mentions making a PHP site. Now I realize this book isn't on purchases
    > carts, but the Ajax/Spry stuff can be implemented on e-commerce sites, right?

    The book provides detailed coverage of the features of Spry 1.4
    Dreamweaver CS3, which can be applied to any site. With minor
    adjustment, you can also use Spry 1.6. It is important to realize,
    However, the features of Spry/Ajax in Dreamweaver CS3 * cover of no
    asynchronous requests to the server. The ability to communicate
    asynchronously with the server has been added in Spry 1.6. If it has
    the asynchronous server calls and answers you are looking for, your
    programmer will need to dig into the documentation for Spry 1.6 on the
    Adobe Labs site and manually code it.

    The Spry features covered in the book are Spry, Spry UI widgets effects
    (menu accordion, tabbed and folding panels), Spry
    Widgets of validation and Spry XML data sets.

    > I just want to know if I can learn and implement Ajax/Spry apps on my
    > HTML/CSS-based simple pages, on a server that allows PHP scripts on the server side
    > but the pages themselves are not with the .php extension. This book is still going
    > apply?

    Yes. All Spry techniques can be used on any web page. This is not
    you have to be a PHP one.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Application on Win and PHP server

    Hello

    I created my first Flex very simple application that displays data from tables in my DB. I installed WAMP on my computer, but when I exported the liberation and uploaded it - it didn't work.

    I use ASP in my site, and it runs on Windows server. My implementation is based on PHP.
    I can do it again if necessary, but I don't know if it is possible to make the application work on my site.

    What should I install on my server (if any), to make it work? My site manager do not want to install Apache.

    Is there a way?

    Thank you for your help.

    There are many sites that will tell you how to set up PHP on a server of the ISS, but I recommend u to use ASP for all your backend in the future because looks like you know better or find a better hosting service because most good now supports all common scripting languages, including ASP and PHP. I went resonance to the data mart and I am very happy, but I recommend that u simply switch to one that supports ASP and PHP and uses the BAR Control Panel

  • P7 Lightshow magic and PHP

    Hope someone can help with this.

    I basically used Lightshow Magic in conjunction with a site database, so that the preview image on the Product Details page can be enlarged in the style of the LSM.

    I pretty much managed to make it work, the picture for each record is displayed OK.

    The part with the fact that I have a problem, it is the labelling of the image. I'm not really familiar with Javascript, so am not sure how to retrieve via the brand name and model for each product under the label for the image in the Lightshow Magic.

    A test page is here:

    link here

    So I basically would somehow make me the echo of the brand and the model instead of "Item" under the image.

    <? PHP echo $row_WADAphotoframes ['Make'];? > <? PHP echo $row_WADAphotoframes ['template'];? >

    Hope that makes sense and is somehow possible!

    See you soon.

    Yes I see. You can't do it this way-

    function P7_LSMtitle (a) {}
    var tt, im, nt = "" " 
    $row_WADAphotoframes ['template'];? > » ' ;
    TT = a.GetAttribute ("title");

    Since javascript is executed on the client, and PHP is executed on the
    Server. What you CAN do, however, is that--

    1. create an include file that contains all of your MODIFIED PVII
    file js (which contains your embedded PHP markup) and call it, say,
    pviiLSM.php. the file will begin with-

    In other words, it's a js file that is disguised to include a PHP.

    2. link to it on the page as if you were including a PHP file!

    but to do this include AFTER the recordset - even within the head markup
    section of the page.

    It should work fine now!

    > I guess showing little publicly is not a problem, as is the JS is
    > making
    > all the smart stuff.

    I don't think it's a problem...

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "Iain71" wrote in message
    News:ggebhh$P7V$1@forums. Macromedia.com...
    > This is the code in the HTML code for the photo of the preview:
    >
    >


    >

    >

    >

    • >
    • >">
      > rel = "nofollow" rel = "noindex" class = "p7lsm_type_img" ><>
      > src = "detailspic.php? file = images /"
      > $row_WADAphotoframes ["ImageFront"];? >" />
      >

    • >

    >

     

    >

    >

    >
    >
    >
    >
    >

    >
    > Is that what you mean?
    >
    > I guess showing little publicly is not a problem, as is the JS is
    > making
    > all the smart stuff.
    >

  • How to make httpconnection and get the xml response using httpconnection in post method.

    Hello

    I am new to the blackberry web work,

    I want to make httpconnection using the post method and also pass a parameter related to my url.

    This function returns xml data.

    How can I perform this task.

    Please help me if anyone has a solution...

    I have soved that problem myself.

  • HttpConnection and digest authentication

    Hello!

    I'm doing a HttConnection with digest authentication and I get the error message:

    "Stream not in installation status.

    First I open a url and get the instance of HttpConnection, then I get "www-athenticate" the server response header field. It looks like

    "" "Digest qop ="auth", domain ="Trade station", stale =" FALSE ", nonce ="Hudbb7j3hjd8shhYhj706gtMo81VdRg5""

    Then I need to use for the response of creation using MD5 method based auth algorhytm which returns the encrypted string.

    After that I put the property "Authorization" of the application with that the authString and I get error "Stream not in the installation state.

    I need to set this property for successful authorization

    Here is the code:

    EventLogger.register (0xeeb9787571dbc971L, "BB", EventLogger.VIEWER_STRING);
                
    InputStream str = null;
    InputStreamReader isr = null;
    HttpConnection conn = null;
    Conn = (HttpConnection) Connector.Open (URL); I open url
    String conn.getHeaderField = header3 (3);      I get the answer number field heading 3 - www-athenticate
    String auth = authString (//crypting channels of response
    'GET ',.
    "http://server_address/xml/logon,"
    "login."
    'pass ',.
    header3);
    conn.setRequestProperty ("authorization", authString);  Set the property of permission but I get the error
                
    DataOutputStream back = conn.openDataOutputStream ();
    back. Write ("something to send".getBytes ());
    back. Flush();
    Str = conn.openInputStream ();
    ISR = new InputStreamReader(str,"utf-8");
    int ch;
    {while ((ch = SRI. {(Read())! =-1)}
    result += (char) ch;
    }
    Conn.Close ();

    Thanks in advance!

    Hello!

    Thanks for the responses I found the decision. I need to get the WWW-authenticate header field"'and Also ' Set-Cookie ', to store and to close the connection. Then I opened stored new connection with the 'Cookie' query parameter that contains the value of field 'Set-Cookie' and the 'Permission' parameter that contains an encrypted value of the header field "WWW-authenticate.

    For a long time, I couldn't Set-Cookie setting - he was absent in the frequency of the server! After many actions, I added '; deviceside = true' at the end of the url string and I have! SDM does not store the cookie when I use the BB Simulator

    Thank you very much

  • Problems with UTF-8 and PHP - OIC

    Hello!

    I'll get into serious trouble with UTF-8. I just tried to insert a lambda in a NCLOB column in one of my databases and it has been converted into a reversed question mark. I checked the channel reaches my PHP script code correctly. Also selecting RAWTOHEX (column) in this SQL Developer, the inverted question mark is already stored in the column. So the problem must be somewhere between PHP - OIC and the database. Insertion of a lambda via SQL Developer works. I can also correctly it back via PHP.

    I use the last PHP - BILL (2.0.8). v$ version says "Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production.

    The database is quite old and uses WE8MSWIN1252 like game characters and AL16UTF16 as the NCHAR character set. That's why I use NCLOB instead of CLOB. However, I connect to the database with AL32UTF8, because my application is running in UTF-8 format. I was under the impression that this would result in automatic conversion of UTF-8, UTF-16, by inserting in the NCLOB columns, but apperently this is not the case. It seems that there is a kind of double conversion, first UTF - 8 and UTF - 16 then WE8MSWIN1252 because some characters not ASCII as a (a trema) get properly converted to UTF-8, UTF-16.

    Any ideas? I am at a loss here. Thanks in advance.

    Does not support PHP OCI8 NCLOB or NVARCHAR2.

    See NCLOB support in OCI8

  • SST 12 c and PHP

    I managed to install Weblogic 12 c and 12 c SST.  I just need to now install php.  I have and find only for OHS 11 g installation instructions.  With the exception of a different directory structure no one knows if they will work or is there different instructions for 12 c out there somewhere?

    Thank you

    OTN has posted my new article on the installation of PHP with Oracle HTTP Server. See http://www.oracle.com/technetwork/articles/dsl/jones-php-ohs-2194096.html

    I will delete my old speculative technical messages in this thread.

Maybe you are looking for