sotona has asked for the wisdom of the Perl Monks concerning the following question:
my code is :<?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> <UpdateListItemsResponse xmlns="http://schemas.microsoft.com/sharepo +int/soap/"> <UpdateListItemsResult> <Results> <Result ID="1,Update"> <ErrorCode>0x81020026</ErrorCode> <ErrorText>LIst does not exist</ErrorText> </Result> </Results> </UpdateListItemsResult> </UpdateListItemsResponse> </soap:Body> </soap:Envelope>
and it produces XML as suggested at MSDN.use LWP::UserAgent; use LWP::Debug; use SOAP::Lite on_action => sub { "$_[0]$_[1]"; }; import SOAP::Data qw(name value); # blablabla my $f_id = name('Field', 3469)->attr({Name => 'ID'}); my $f_title = name('Field','new_dummy')->attr({Name => 'Title'}); my $method = name('Method', [$f_id,$f_title])->attr({'ID' => '1', 'Cmd +' => 'Update'}); my $batch = name('Batch',\$method); my $updates = name('updates' => \$batch); my $rsp = $soap->UpdateListItems(name('listName' => '{DB8F7CAD-D459-46 +FD-82B8-5888A55C1EC2}'), $updates);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem updating SharePoint entries
by locked_user sundialsvc4 (Abbot) on Jan 22, 2015 at 13:26 UTC | |
by sotona (Scribe) on Jan 22, 2015 at 13:57 UTC |