MOSS의 URL을 보면 어느 규칙이 있는것을 알수 있을것이다.
문서를 문서라이브러리에 업로드 할때에 항상 불러지는 페이지와 인수들,
문서를 지울때 또한, 항상 불러지는 페이지와 인수가 따로있다.
그것을 정리해 놓은 자료가 아래의 출처로 가면 나온다.
출처 :
http://msdn.microsoft.com/en-us/library/ms480784.aspx
더보기 접기
아래의 테이블 리스트들은 Windows SharePoint Services Remote Procedure Call (RPC) 프로토콜 메소드로 아래의 레퍼런스를 가진다.
Name
Description
Cltreq
Performs all Web discussion operations such as adding, editing, or deleting a discussion associated with a Web page or with a document stored in a document library.
Delete
list 나 document library의 특정 아이템을 지운다.
DELETEFIELD
Deletes a field from a SharePoint list.
DeleteList
Deletes the specified list.
DeleteView
Deletes the specified view.
dialogview
Opens a view of the document libraries within a site, of a specific document library, or of a folder within a document library that is used in a dialog box for opening or saving files; or opens the property form that is used when saving a file.
Display
Runs a database query and returns list data in XML or HTML format. You can specify the nature of the query, content to be returned, and the return format.
DisplayPost
Requests that Windows SharePoint Services render the Collaborative Application Markup Language (CAML) assigned to the post body of the form.
ExportList
Exports the schema of a list in the format of Collaborative Application Markup Language (CAML) .
GetProjSchema
Requests the XML schema for a Web site based on Windows SharePoint Services.
GetUsageBlob
Returns information about the usage of a Web site.
HitCounter
Generates a hit on a page containing a hit counter.
MODLISTSETTINGS
Changes the properties of a SharePoint list.
MtgKeep
Clears the orphaned state of a meeting occurrence that is no longer scheduled according to the application in whose calendar the occurrence was created.
MtgMove
Deletes an orphaned meeting occurrence, or moves the workspace content associated with an orphaned meeting occurrence to another meeting occurrence.
NEWFIELD
Adds a field to a SharePoint list.
NewList
Creates a SharePoint list of a specified type, such as Discussions, Contacts, or Survey.
NewView
Creates a view for the specified list.
NewViewPage
Adds a view page to a SharePoint Web site.
NewWebPage
Creates a Web Part Page or a basic page in the specified document library.
RenderView
Requests the contents of a view for a SharePoint list.
ReorderFields
Changes the order in which fields in a SharePoint list are displayed in the data entry form for the list.
Save
Adds or modifies an item in a list, or modifies properties for a folder or for a file in a document library.
SiteProvision
Requests Windows SharePoint Services to add the default set of lists to an existing Web site.
UPDATEFIELD
Modifies the schema of an existing field in a SharePoint list.
UpdateView
Modifies the specified view of a list.
접기
예를 들어서 문서 라이브러리의 문서를 지울때는
owssvr.dll을 불러서 그안의 인수를 던져 준다. 아래처럼 delete로
http://moss:10000/Docs/_vti_bin/owssvr.dll ?
CS=65001
&Cmd=Delete
&List={BA997154-6A44-4CEC-96A8-6C93031BBDB2}
&ID=7
&owsfileref=%2FDocs%2FDocuments%2F44%2Ejpg
&NextUsing=http%3A%2F%2Fmoss%3A10000%2FDocs%2Fdefault%2Easpx%3FPageView%3DShared
위에 것을 보면 CS=65001은 고정 되어 있고, Cmd는 위의 메소드를 가져다 쓰면 되고,
List의 guid와 지울 문서의 id, 그리고, 실제 존재 하는 문서 라이브러리의 경로 는 owsfileref에 나와있다(옵션).
NextUsing은 삭제후 갈 페이지 이다.(옵션)
거의 모든 URL이 저런 식이다. 웹파트 제작시에 이렇게 url을 만들어 보내주면 삭제되든 업로드 되든지 웹파트 개발 할수 있을것이다.
댓글 영역