Post by daril on Jan 14, 2011 8:23:52 GMT -6
Hi,
I'm begginer in sharepoint and i need upload document on sharepoint from delphi.
I think i need use lists.UpdateListItems method. I imported to Delphi WSDL document and I have now definition of interface Lists in Delphi.
First problem is that all methods parameters which have type xmlnode (in msdn) are uknowned. I Thought, that is standart IXMLDOMNode type.
Second question. Which method need I for uploading file? I have this interface for lists
Thank you for start point in these problem. Unfortunately I need do this in Delphi7. :-(
Daril
I'm begginer in sharepoint and i need upload document on sharepoint from delphi.
I think i need use lists.UpdateListItems method. I imported to Delphi WSDL document and I have now definition of interface Lists in Delphi.
First problem is that all methods parameters which have type xmlnode (in msdn) are uknowned. I Thought, that is standart IXMLDOMNode type.
Second question. Which method need I for uploading file? I have this interface for lists
[blockquote] ListsSoap = interface(IInvokable)
['{5714FB7A-F952-3B33-61AC-8FB2F76E5178}']
function GetListCollection: GetListCollectionResult; stdcall;
procedure DeleteList(const listName: WideString); stdcall;
function UpdateList(const listName: WideString; const listProperties: listProperties; const newFields: newFields; const updateFields: updateFields; const deleteFields: deleteFields; const listVersion: WideString): UpdateListResult; stdcall;
function AddList(const listName: WideString; const description: WideString; const templateID: Integer): AddListResult; stdcall;
function GetListAndView(const listName: WideString; const viewName: WideString): GetListAndViewResult; stdcall;
function GetList(const listName: WideString): GetListResult; stdcall;
procedure DeleteAttachment(const listName: WideString; const listItemID: WideString; const url: WideString); stdcall;
function GetAttachmentCollection(const listName: WideString; const listItemID: WideString): GetAttachmentCollectionResult; stdcall;
function AddAttachment(const listName: WideString; const listItemID: WideString; const fileName: WideString; const attachment: TByteDynArray): WideString; stdcall;
function UpdateListItems(const listName: WideString; const updates: updates): UpdateListItemsResult; stdcall;
function GetListItemChanges(const listName: WideString; const viewFields: viewFields; const since: WideString; const contains: contains): GetListItemChangesResult; stdcall;
function GetListItems(const listName: WideString; const viewName: WideString; const query: query; const viewFields: viewFields; const rowLimit: WideString; const queryOptions: queryOptions): GetListItemsResult; stdcall;
end;[/blockquote]
Thank you for start point in these problem. Unfortunately I need do this in Delphi7. :-(
Daril