alien_life_form has asked for the wisdom of the Perl Monks concerning the following question:
I've been looking all over and the best hint I got (from which the above code is derived) is from this URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsoap/html/soapliteperl.asp.my $lite= new SOAP::Lite ->uri($uri) ->proxy($proxy) ->on_action(sub { sprintf ('%s/%s',@_);}) ->deserializer(SOAP::Custom::XML::Deserializer->new) # later... $result=$lite->call($method=>@params); # $result contains an ADO.Net d +ataset my $ds=$result->valueof('//NewDataSet'); my @rows=$ds->value(); my $nr=scalar(@rows); my $res="Records:$nr\n"; return unless $nr > 0; my @headers=map {$_->{_name}} ($rows[0]->value()); $res .= join(",",@headers). "\n"; foreach my $val (@rows) { $res .= join(',',($val->value())) . "\n"; }
It would appear that the perl community has forgotten about ADO.Net datasets altogether...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ADO.Net datasets through SOAP::Lite (or generally perl)
by tbone1 (Monsignor) on Apr 23, 2004 at 13:16 UTC | |
|
Re: ADO.Net datasets through SOAP::Lite (or generally perl)
by alien_life_form (Pilgrim) on Apr 26, 2004 at 09:02 UTC | |
|
Re: ADO.Net datasets through SOAP::Lite (or generally perl)
by Anonymous Monk on Apr 23, 2004 at 19:13 UTC |