| Author |
Message |
Jeff
Guest
|
Posted:
Thu Jan 13, 2005 4:24 am Post subject:
Newbie: windows forms + sharepoint portal? |
|
|
Hi,
Apologies in advance for what might be a naive question. I'm an
experience C# developer but new to SharePoint, and I'm using SharePoint
Portal 2003.
I've been asked to write a C# Windows Forms app (not a Web Part) that
can connect to a document library in SharePoint, and then list folders,
create new folders, check in/check out documents, etc.
Most of the SDK documentation I've perused is geared only toward
ASP.Net web development. What part of the SDK should I be looking at
for a client Windows Forms application?
Or is it rather the case that my app just needs a web reference to an
appropriate web service provided by sharepoint? If so, where should I
begin looking?
Thanks in advance! |
|
| Back to top |
|
 |
Amar Galla
Guest
|
Posted:
Thu Jan 13, 2005 10:14 am Post subject:
Re: Newbie: windows forms + sharepoint portal? |
|
|
Hi,
You have two options.
1. Use the web services to get the information you need. (Document Workspace
Service)
2. Link to the API and use the classes (SPDocumentLibrary Class)
Have a look at my article http://www.devx.com/dotnet/Article/22387/0
I have accessed sharepoint areas from a console application. That sould get
you started on how to access sharepoint API's from a windows app.
Then just use either of the two classes mentioned above and start coding :)
--
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Jeff" <cohen.jeff@gmail.com> wrote in message
news:1105568640.452911.182530@f14g2000cwb.googlegroups.com...
| Quote: | Hi,
Apologies in advance for what might be a naive question. I'm an
experience C# developer but new to SharePoint, and I'm using SharePoint
Portal 2003.
I've been asked to write a C# Windows Forms app (not a Web Part) that
can connect to a document library in SharePoint, and then list folders,
create new folders, check in/check out documents, etc.
Most of the SDK documentation I've perused is geared only toward
ASP.Net web development. What part of the SDK should I be looking at
for a client Windows Forms application?
Or is it rather the case that my app just needs a web reference to an
appropriate web service provided by sharepoint? If so, where should I
begin looking?
Thanks in advance!
|
|
|
| Back to top |
|
 |
Jeff
Guest
|
Posted:
Thu Jan 13, 2005 10:06 pm Post subject:
Re: Newbie: windows forms + sharepoint portal? |
|
|
Thanks Amar, I'll read the article and also check out your blog.
Jeff |
|
| Back to top |
|
 |
Jeff
Guest
|
Posted:
Mon Jan 17, 2005 7:17 am Post subject:
Re: Newbie: windows forms + sharepoint portal? |
|
|
Amar - I'm having trouble consuming the wsdl from the web services. I
get this error for several of the .wsdl files when adding the web
reference:
Reference.map(1): Custom tool warning: Ignore duplicate WSDL document
'http://testserver/_vti_bin/Forms.asmx?wsdl' with TargetNamespace
'http://schemas.microsoft.com/sharepoint/soap/'.
I've seen a few mentions of this problem on the net but no
workarounds... any idea what's causing this in my case?
Thanks!
Jeff |
|
| Back to top |
|
 |
Amar Galla
Guest
|
Posted:
Tue Jan 18, 2005 6:47 pm Post subject:
Re: Newbie: windows forms + sharepoint portal? |
|
|
Hi Jeff,
Never faced such problem. But I guess this problem of yours is not a
SharePoint related problem. It is something to do with your machine / VS.NET
or IIS setup. Can't be of much help here I guess. Try the Web Services /
ASP.NET forums here.
--
Hope this helps.
Regards,
Amar Galla
http://www.dotnetjunkies.com/weblog/amar/
"Jeff" <cohen.jeff@gmail.com> wrote in message
news:1105924643.084493.191470@z14g2000cwz.googlegroups.com...
| Quote: | Amar - I'm having trouble consuming the wsdl from the web services. I
get this error for several of the .wsdl files when adding the web
reference:
Reference.map(1): Custom tool warning: Ignore duplicate WSDL document
'http://testserver/_vti_bin/Forms.asmx?wsdl' with TargetNamespace
'http://schemas.microsoft.com/sharepoint/soap/'.
I've seen a few mentions of this problem on the net but no
workarounds... any idea what's causing this in my case?
Thanks!
Jeff
|
|
|
| Back to top |
|
 |
Jeff
Guest
|
Posted:
Thu Jan 20, 2005 9:07 pm Post subject:
Re: Newbie: windows forms + sharepoint portal? |
|
|
I'm going to try to add a reference to Microsoft.Sharepoint.Portal.dll
and see if that helps me workaround the issue.
Regarding your article, is the url used in sites[uri] just the url to
the default.aspx of the whole site?
Also, what is the best way to get a reference to the document library?
I need to programmatically get the root folder of the document library,
and from there add subfolders and documents. I guess I'm not clear on
where the document library fits into the scheme of areas and topics.
Thanks again.
Jeff |
|
| Back to top |
|
 |
|
|
|
|