comp.lang.ada
 help / color / mirror / Atom feed
From: Vadim Godunko <vgodunko@gmail.com>
Subject: Re: using a web service from Ada
Date: Sun, 13 Mar 2011 12:43:54 -0700 (PDT)
Date: 2011-03-13T12:43:54-07:00	[thread overview]
Message-ID: <44aec9de-ae4c-489c-9f81-03ef91cfb58d@j13g2000pro.googlegroups.com> (raw)
In-Reply-To: 1ae8197d-54ec-4283-9f65-619df87aedf9@p16g2000vbo.googlegroups.com

On Mar 13, 7:10 pm, tonyg <tonytheg...@gmail.com> wrote:
> 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?

There are two options: XmlAda and XML processor of Matreshka.



  reply	other threads:[~2011-03-13 19:43 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
2011-03-13 19:43     ` Vadim Godunko [this message]
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