comp.lang.ada
 help / color / mirror / Atom feed
From: tonyg <tonythegair@gmail.com>
Subject: Re: using a web service from Ada
Date: Sun, 13 Mar 2011 09:10:22 -0700 (PDT)
Date: 2011-03-13T09:10:22-07:00	[thread overview]
Message-ID: <1ae8197d-54ec-4283-9f65-619df87aedf9@p16g2000vbo.googlegroups.com> (raw)
In-Reply-To: bb5e17ee-a13f-4d01-a8eb-eb62c54d54ad@w6g2000vbo.googlegroups.com

On Mar 12, 8:23 pm, Gautier write-only <gautier_niou...@hotmail.com>
wrote:
> On Mar 12, 7:40 pm, tonyg <tonytheg...@gmail.com> wrote:
>
> > I want to access a web service from ada (specifically the 5 day
> > prediction from the weather channel). I am reading trough the
> > documentation of aws and I would really appreciate an example from the
> > http client point of view. I've looked at the examples of aws and I'm
> > a bit overwhelmed. Anyone got an example?
>
> Here is one:
>
> with Ada.Text_IO; use Ada.Text_IO;
>
> with AWS.Client;
> with AWS.Response;
>
> procedure HTTP_Request is
> begin
>    Put_Line (AWS.Response.Message_Body (AWS.Client.Get (URL => "http://
> gautiersblog.blogspot.com/")));
> end HTTP_Request;
>
> HTH
> G.

wow thanks thats seems easy. Any tips on processing the xml results?



  reply	other threads:[~2011-03-13 16:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-12 18:40 using a web service from Ada tonyg
2011-03-12 20:23 ` Gautier write-only
2011-03-13 16:10   ` tonyg [this message]
2011-03-13 19:43     ` Vadim Godunko
2011-03-14 11:11       ` tonyg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox