CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [ashesh28] Passing Query Parameter to WebService: Edit Log



Zhris
Enthusiast

Jun 23, 2015, 12:39 AM


Views: 7048
Re: [ashesh28] Passing Query Parameter to WebService

Hi,

I'm unfamiliar with SOAP::Lite, therefore am probably of little help.

Firstly, the syntax you are using doesn't quite correlate with SOAP::Data, you are using SOAP::Lite in a functional manner via its exported methods which as far as I can tell is undocumented.

I think it would be easist to work with raw xml data, which goes hand in hand with the sharepoint documentation.

Nonetheless, I have looked through the SOAP::Lite documentation / source code. An attr method is exported and it looks as though additional arguments are passed to the value method, whos return value is in turn returned.

Finally, it looks like you've put the order by as part of the where, which I don't think is right.

My best guess until I have time to look deeper into the source:


Code
my $som = $soap->GetListItems(   
name(listName => $list_name),
name(query => \value(
name(Query => \value(
name(Where => \value(
name(Eq => \value(
name(FieldRef => {Name => 'ID'}),
name(Value => \attr(
{Type => 'Counter'}, \value( 3 )
)),
)),
)),
name(OrderBy => \value(
name('FieldRef' => {Name => 'Created', Ascending => 'False'}),
)),
)),
)),
name(rowLimit => 10)
);


Chris


(This post was edited by Zhris on Jun 23, 2015, 12:55 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jun 23, 2015, 12:40 AM
Post edited by Zhris (Enthusiast) on Jun 23, 2015, 12:43 AM
Post edited by Zhris (Enthusiast) on Jun 23, 2015, 12:47 AM
Post edited by Zhris (Enthusiast) on Jun 23, 2015, 12:55 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives