Hi, I am trying SOAP::Lite to get info from a simple Service:
#!/usr/bin/perl -w use strict; use warnings; use SOAP::Lite; my $service = SOAP::Lite -> service('http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL'); my $result = $service->GetWeatherInformation(); print "DONE\n";
That is all I have so far. The answer is the following and it looks like the module cannot interprete the returning xml. Any help is apreciated, thanks in advance Environment: Perl: v5.18.2 Ubuntu 14.04.1 64 bit Latest version of SOAP::Lite installed with 'make install'
defined(%hash) is deprecated at /usr/local/share/perl/5.18.2/SOAP/Lite +.pm line 444. (Maybe you should just omit the defined()?) defined(%hash) is deprecated at /usr/local/share/perl/5.18.2/SOAP/Lite +.pm line 2258. (Maybe you should just omit the defined()?) Odd number of elements in anonymous hash at /usr/local/share/perl/5.18 +.2/SOAP/Lite.pm line 1313. Can't use string ("1") as an ARRAY ref while "strict refs" in use at ( +eval 90) line 1. <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http: +//schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/20 +01/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">< +soap:Body><GetWeatherInformationResponse xmlns="http://ws.cdyne.com/W +eatherWS/"><GetWeatherInformationResult><WeatherDescription><WeatherI +D>1</WeatherID><Description>Thunder Storms</Description><PictureURL>h +ttp://ws.cdyne.com/WeatherWS/Images/thunderstorms.gif</PictureURL></W +eatherDescription><WeatherDescription><WeatherID>2</WeatherID><Descri +ption>Partly Cloudy</Description><PictureURL>http://ws.cdyne.com/Weat +herWS/Images/partlycloudy.gif</PictureURL></WeatherDescription><Weath +erDescription><WeatherID>3</WeatherID><Description>Mostly Cloudy</Des +cription><PictureURL>http://ws.cdyne.com/WeatherWS/Images/mostlycloud +y.gif</PictureURL></WeatherDescription><WeatherDescription><WeatherID +>4</WeatherID><Description>Sunny</Description><PictureURL>http://ws.c +dyne.com/WeatherWS/Images/sunny.gif</PictureURL></WeatherDescription> +<WeatherDescription><WeatherID>5</WeatherID><Description>Rain</Descri +ption><PictureURL>http://ws.cdyne.com/WeatherWS/Images/rain.gif</Pict +ureURL></WeatherDescription><WeatherDescription><WeatherID>6</Weather +ID><Description>Showers</Description><PictureURL>http://ws.cdyne.com/ +WeatherWS/Images/showers.gif</PictureURL></WeatherDescription><Weathe +rDescription><WeatherID>7</WeatherID><Description>Haze</Description>< +PictureURL>http://ws.cdyne.com/WeatherWS/Images/haze.gif</PictureURL> +</WeatherDescription><WeatherDescription><WeatherID>9</WeatherID><Des +cription>Partly Sunny</Description><PictureURL>http://ws.cdyne.com/We +atherWS/Images/mostlycloudy.gif</PictureURL></WeatherDescription><Wea +therDescription><WeatherID>10</WeatherID><Description>Mostly Sunny</D +escription><PictureURL>http://ws.cdyne.com/WeatherWS/Images/partlyclo +udy.gif</PictureURL></WeatherDescription><WeatherDescription><Weather +ID>11</WeatherID><Description>Clear</Description><PictureURL>http://w +s.cdyne.com/WeatherWS/Images/sunny.gif</PictureURL></WeatherDescripti +on><WeatherDescription><WeatherID>12</WeatherID><Description>Fair</De +scription><PictureURL>http://ws.cdyne.com/WeatherWS/Images/partlyclou +dy.gif</PictureURL></WeatherDescription><WeatherDescription><WeatherI +D>14</WeatherID><Description>Cloudy</Description><PictureURL>http://w +s.cdyne.com/WeatherWS/Images/mostlycloudy.gif</PictureURL></WeatherDe +scription><WeatherDescription><WeatherID>15</WeatherID><Description>N +/A</Description><PictureURL>http://ws.cdyne.com/WeatherWS/Images/na.g +if</PictureURL></WeatherDescription><WeatherDescription><WeatherID>17 +</WeatherID><Description>Drizzle</Description><PictureURL>http://ws.c +dyne.com/WeatherWS/Images/drizzle.gif</PictureURL></WeatherDescriptio +n><WeatherDescription><WeatherID>18</WeatherID><Description>Fog</Desc +ription><PictureURL>http://ws.cdyne.com/WeatherWS/Images/fog.gif</Pic +tureURL></WeatherDescription><WeatherDescription><WeatherID>20</Weath +erID><Description>Flurries</Description><PictureURL>http://ws.cdyne.c +om/WeatherWS/Images/blowingsnow.gif</PictureURL></WeatherDescription> +<WeatherDescription><WeatherID>21</WeatherID><Description>Snow and Fo +g</Description><PictureURL>http://ws.cdyne.com/WeatherWS/Images/blowi +ngsnow.gif</PictureURL></WeatherDescription><WeatherDescription><Weat +herID>26</WeatherID><Description>Blowing Snow and Fog</Description><P +ictureURL>http://ws.cdyne.com/WeatherWS/Images/blowingsnow.gif</Pictu +reURL></WeatherDescription><WeatherDescription><WeatherID>27</Weather +ID><Description>Snow</Description><PictureURL>http://ws.cdyne.com/Wea +therWS/Images/snow.gif</PictureURL></WeatherDescription><WeatherDescr +iption><WeatherID>28</WeatherID><Description>Rain and Fog</Descriptio +n><PictureURL>http://ws.cdyne.com/WeatherWS/Images/rain.gif</PictureU +RL></WeatherDescription><WeatherDescription><WeatherID>29</WeatherID> +<Description>Blowing Snow</Description><PictureURL>http://ws.cdyne.co +m/WeatherWS/Images/blowingsnow.gif</PictureURL></WeatherDescription>< +WeatherDescription><WeatherID>32</WeatherID><Description>Light Rain</ +Description><PictureURL>http://ws.cdyne.com/WeatherWS/Images/rain.gif +</PictureURL></WeatherDescription><WeatherDescription><WeatherID>33</ +WeatherID><Description>Heavy Rain</Description><PictureURL>http://ws. +cdyne.com/WeatherWS/Images/rain.gif</PictureURL></WeatherDescription> +<WeatherDescription><WeatherID>34</WeatherID><Description>Missing Dat +a</Description><PictureURL>http://ws.cdyne.com/WeatherWS/Images/na.gi +f</PictureURL></WeatherDescription><WeatherDescription><WeatherID>35< +/WeatherID><Description>Snow, Blowing Snow, and Fog</Description><Pic +tureURL>http://ws.cdyne.com/WeatherWS/Images/blowingsnow.gif</Picture +URL></WeatherDescription><WeatherDescription><WeatherID>36</WeatherID +><Description>Unknown Precipitation</Description><PictureURL>http://w +s.cdyne.com/WeatherWS/Images/na.gif</PictureURL></WeatherDescription> +<WeatherDescription><WeatherID>37</WeatherID><Description>AM CLOUDS</ +Description><PictureURL>http://ws.cdyne.com/WeatherWS/Images/partlycl +oudy.gif</PictureURL></WeatherDescription></GetWeatherInformationResu +lt></GetWeatherInformationResponse></soap:Body></soap:Envelope> at /h +ome/johannes/Documentos/PERL/epic_workspace/HelloWorldProject/src/tes +t7-Soap/70-SoapGet.pl line 10.

In reply to SOAP::Lite cannot interprete response by johannes.globant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.