comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier write-only <gautier_niouzes@hotmail.com>
Subject: Re: using a web service from Ada
Date: Sat, 12 Mar 2011 12:23:35 -0800 (PST)
Date: 2011-03-12T12:23:35-08:00	[thread overview]
Message-ID: <bb5e17ee-a13f-4d01-a8eb-eb62c54d54ad@w6g2000vbo.googlegroups.com> (raw)
In-Reply-To: 8ecb8ebc-1da1-4009-bd8c-2a89cd4dd31b@s3g2000vbf.googlegroups.com

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.



  reply	other threads:[~2011-03-12 20:23 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 [this message]
2011-03-13 16:10   ` tonyg
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