Expand my Community achievements bar.

Regarding dot net web service lockResource() api

Avatar

Level 7

Hi,

I am trying to use

public

string lockResource(string resourceUri, short lockScope, short lockDepth, int expireSecondsFromNow, [System.Xml.Serialization.XmlArrayItemAttribute("item", Namespace="http://xml.apache.org/xml-soap", IsNullable=false)] mapItem[] attributes);

but in Lock class there is no static Lock.SCOPE_EXCLUSIVE or Lock.SCOPE_SHARED variable.

I also could not fine Lock.SCOPE_EXCLUSIVE or Lock.SCOPE_SHARED.

My Question is

1. what do i pass as lockScope and lockDepth

2. why this api lockResouce() is not there without expireSecondsFromNow parameter.

In java API, there are two overloaded methods

1.public String lockResource(String resourceUri, short lockScope, short lockDepth, int expireSecondsFromNow)

and

2.public String lockResource(String resourceUri, short lockScope, short lockDepth)

please explain to me how do i set lockScope and lockDepth in using dotnet code/webservice

Regards

Sunil Gupta

0 Replies