facebook

Sending information to a Server

  1. MobiOne Archive
  2.  > 
  3. Feedback & Suggestions
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #340410 Reply

    John Davis
    Member

    Hi, I’m new to MobiOne and am considering the platform for development. However, one of the areas that I’m trying to find out is how to send information to either a WebServer (running a web services, .asmx file) or to connect via Sockets (using standard IP, Port).

    The question is can this be done via MobiOne platform?
    Are there any examples of sending information using either method?

    #340413 Reply

    Hi John,

    Yes, MobiOne creates html5 apps (aka hybrid apps) that use the html5 programming model. So it is very simple to consume a rest webservice. Here is a simple example that fetches an xml document from local and remote sources: http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=5738

    #340463 Reply

    John Davis
    Member

    Hi Octavio, thank you for the reply.
    This is a great example and it is very close to what I’m after.

    However, ideally what I would like to achieve is the following:
    * Send an XML string message to a web service called Parse.asmx; this web service will parse the incoming XML and then return an XML message.

    #340519 Reply

    support-michael
    Keymaster

    Hi John,

    The example I created uses the jquery get() function. Use jquery ajax() function to send an xml document and receive an xml document as a reply.
    http://api.jquery.com/jQuery.ajax/ search down the page using query “send an xml document” to see example code.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Sending information to a Server

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