Hello All,

Same example, found on cpan using SOAP::SOM - trying to run the
script, doesn't print anything
Chanan

    $xml = <<END_XML;
    <foo>
      <person>
        <foo>123</foo>
        <foo>456</foo>
      </person>
      <person>
        <foo>789</foo>
        <foo>012</foo>
      </person>
    </foo>
    END_XML

    my $som = SOAP::Deserializer->deserialize($xml);
    my $i = 0;
    foreach my $a ($som->dataof("//person/*")) {
        $i++;
        my $j = 0;
        foreach my $b ($som->dataof("//person/[$i]/*")) {
            $j++;
            # do something
        }
    }


On Sat, Dec 4, 2010 at 4:39 PM, Chanan Berler <[email protected]> wrote:
> Hi Shlomi,
>
> Have you tried running the script ? since it's not printing any
> elements/values on my screen :-(
> I have tried both on xampp and on ActiveState perl both have
> SOAP::Lite package installed.
>
> As for not using SOAP::Lite, what can I say, I am only fixing a
> parse_request method
> which seems to read data from XML arrays, but mixing the data found on
> one array with the
> values found on the second XML array.
>
> Since I can't storable the SOAP::Lite response, but I do have the
> response XML copy - I thought
> of using the SOAP::SOM as i found that it represents the call response.
> Thanks
> Chanan
>
> On Sat, Dec 4, 2010 at 12:07 PM, Shlomi Fish <[email protected]> wrote:
>> Hi Chanan,
>>
>> On Saturday 04 December 2010 10:38:06 Chanan Berler wrote:
>>> What is wrong ? I used copy&paste from cpan: SOAP::SOM
>>> but the code doesn't work for me
>>>
>>> #!c:/xampp/perl/bin/perl
>>> use warnings;
>>> use strict;
>>> use SOAP::Lite;
>>
>> I don't know what the problem is, but I do know SOAP::Lite is no longer
>> recommended:
>>
>> [quote]
>> Sep 22 20:51:11 <rindolf>       perlbot: soap
>> Sep 22 20:51:12 <perlbot>       rindolf: avoid SOAP::Lite, try SOAP::WSDL or
>> XML::Compile::SOAP for more modern takes on the protocol
>> [/quote]
>>
>> Maybe try one of those.
>>
>> Regards,
>>
>>        Shlomi Fish
>>
>> --
>> -----------------------------------------------------------------
>> Shlomi Fish       http://www.shlomifish.org/
>> Apple Inc. is Evil - http://www.shlomifish.org/open-source/anti/apple/
>>
>> <rindolf> She's a hot chick. But she smokes.
>> <go|dfish> She can smoke as long as she's smokin'.
>>
>> Please reply to list if it's a mailing list post - http://shlom.in/reply .
>>
>
>
>
> --
> ===================
> ----     Chanan Berler    ----
> ===================
>



-- 
===================
----     Chanan Berler    ----
===================
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to