Adding Version attributes via webservice
Hi
I have a fragment of code that attempts to add version attribute to a freshly created project.
_aWSProxyHelper= new ProxyHelper(WebServicesConstants.GEMINIWSURL)
...
// Add a project using _aWSProxyHelper.ProjectsProxy.CreateProject(project);
...
VersionAttributeValueEN releaseDateAttrib = new VersionAttributeValueEN();
releaseDateAttrib.AttributeName = "ReleaseDate";
releaseDateAttrib.AttributeValue = System.DateTime.Now.ToString();
releaseDateAttrib.ProjectID = _projID;
releaseDateAttrib.AttributeID = 0;
releaseDateAttrib.VersionID = 0;
releaseDateAttrib.AttributeValueID = 0;
_aWSProxyHelper.VersionsProxy.CreateVersionAttributeValue(releaseDateAttrib);
...
Unfortunately the last line results in the following exception:
System.Web.Services.Protocols.SoapException was unhandled
Message="Server was unable to process request. --> You do not
have the privileges to create version attributes for this project"
Source="System.Web.Services"
Actor=""
Lang=""
Node=""
Role=""
StackTrace:
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
...
Prior to calling the above fragment I have made a call to _aWSProxyHelper.SetAuthenticationTokenOnAllServices(userName, password)
Any pointers would be appreciated.
Richard
RichardGilday
· 1 |
|
Monday, January 23, 2006, 4:12:54 PM |