From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b665e18fea6a2fca X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!p16g2000vbo.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: using a web service from Ada Date: Sun, 13 Mar 2011 09:10:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1ae8197d-54ec-4283-9f65-619df87aedf9@p16g2000vbo.googlegroups.com> References: <8ecb8ebc-1da1-4009-bd8c-2a89cd4dd31b@s3g2000vbf.googlegroups.com> NNTP-Posting-Host: 92.17.25.233 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300032622 12272 127.0.0.1 (13 Mar 2011 16:10:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 13 Mar 2011 16:10:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p16g2000vbo.googlegroups.com; posting-host=92.17.25.233; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.15) Gecko/20110303 Ubuntu/10.04 (lucid) Firefox/3.6.15,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18140 Date: 2011-03-13T09:10:22-07:00 List-Id: On Mar 12, 8:23=A0pm, Gautier write-only wrote: > On Mar 12, 7:40=A0pm, tonyg 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 > =A0 =A0Put_Line (AWS.Response.Message_Body (AWS.Client.Get (URL =3D> "htt= p:// > gautiersblog.blogspot.com/"))); > end HTTP_Request; > > HTH > G. wow thanks thats seems easy. Any tips on processing the xml results?