facebook

Send and Recieve Data through a Web Service – CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #345570 Reply

    Code_A
    Member

    I am new to MobiOne and have only created 2 simple mobile apps to get myself familiar with the process. Ultimately, what I want to do is build an app for my business where my customers can access their account and update their settings.

    The customer database is on my web server and I am currently accomplishing this through a VB software app where I can connect to the server and make a programmatic request through a web service and then receive an xml or json response containing the data from the database. Basically, I have two-way communication from my app to the database on my web server via a web service.

    Does MobiOne have this capability?

    #345610 Reply

    CodeA,

    I use the same techniques in my APP. Remote Db access is not automatically supported in M1.
    However through some custom local and server side coding one can send and receive URL responses and achieve the kind of exchange you are talking about.

    There are two ways I have been doing it:

    1. via a form setup using the GET or POST form methods
    2. via JQuery in the code by directly manipulating the URL and its response.

    The fact that your service replies are JSON and/or XML makes it easy to handle the responses in the code.

    Attached is a small demo program showing the JQ method:

    https://drive.google.com/file/d/0B4ojr4ueF89DUFlRQ083VFptRkE/edit?usp=sharing

    Enter any URL from your service into the text entry area and press SUBMIT.
    Should see the incoming response in the window below.

    The JS code is in the SUBMIT button On-Click section.

    Hope it helps,
    TG

    #345658 Reply

    Code_A
    Member

    Perfect! I pasted my link in the text field and received the expected response from the server.

    Thank you for the reply and the example. I am glad to see that it can be done.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Send and Recieve Data through a Web Service – CLOSED

You must be logged in to post in the forum log in