2012-01-24 64 views
1

我正在處理HP Trim web服務,根本沒有支持。我必須使用Web服務設置文件請求。我想我已經設置以下屬性,但我不知道該操作將被添加。惠普修剪web服務 - 如何請求記錄。

rcqCurrentLoc(Current Location): 
rcqDetails(Details): 
rcqEndDate(Date of Final Request): 
rcqFrequency(Frequency): 
rcqFrequencyType(Frequency Type): 
rcqHomeLoc(Home Location): 
rcqNotes(Notes): 
rcqRecord(Object): 
rcqRequestDate(Date Object Needed): 
rcqRequestor(Requested By): 

是否有人可以幫助我在此?

回答

0

我在看錯誤的屬性。請求屬性以下

uri(Unique Identifier): 
reqEndDate(Date of Final Request): 
reqFrequency(Frequency): 
reqFrequencyType(Frequency Type): 
reqName(Request Info): 
reqNotes(Notes): 
reqRequestDate(Date Needed): 
reqRequestor(Requested By): 

和代碼是

public void AddFileRequest(string FileUri,string RequestorUserId, DateTime DateNeeded) 
     { 


List<InputProperty> properties = new List<InputProperty>(); 

     InputProperty property = new InputProperty(); 
     property.Name = ReqRequstor; 
     property.Val = GetUserUri(RequestorUserId); 
     properties.Add(property); 

     property = new InputProperty(); 
     property.Name = ReqRequestDate; 
     property.Val = DateNeeded.ToString(); 
     properties.Add(property); 

     ShortcutRecordUri uri = new ShortcutRecordUri(); 
     uri.Uri = FileUri; 
     uri.IsForUpdate = true; 

     CreateChildItem create = new CreateChildItem(); 
     create.ChildObjectType = ObjectTypeRequest; 
     create.Items = properties.ToArray(); 

     TrimRequest request = new TrimRequest(); 
     request.Items = new Operation[] { uri, create }; 

     ExecuteRequest(request); 
    }