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!news2.google.com!postnews.google.com!j13g2000pro.googlegroups.com!not-for-mail From: Vadim Godunko Newsgroups: comp.lang.ada Subject: Re: using a web service from Ada Date: Sun, 13 Mar 2011 12:43:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: <44aec9de-ae4c-489c-9f81-03ef91cfb58d@j13g2000pro.googlegroups.com> References: <8ecb8ebc-1da1-4009-bd8c-2a89cd4dd31b@s3g2000vbf.googlegroups.com> <1ae8197d-54ec-4283-9f65-619df87aedf9@p16g2000vbo.googlegroups.com> NNTP-Posting-Host: 188.114.63.92 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300045434 8738 127.0.0.1 (13 Mar 2011 19:43:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 13 Mar 2011 19:43:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j13g2000pro.googlegroups.com; posting-host=188.114.63.92; posting-account=niG3UgoAAAD7iQ3takWjEn_gw6D9X3ww User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12) Gecko/20110222 Firefox/4.0b12,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18144 Date: 2011-03-13T12:43:54-07:00 List-Id: On Mar 13, 7:10=A0pm, tonyg wrote: > 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 th= e > > > 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> "h= ttp:// > > 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.