Newbie: windows forms + sharepoint portal?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Newbie: windows forms + sharepoint portal?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Jeff
Guest





Posted: Thu Jan 13, 2005 4:24 am    Post subject: Newbie: windows forms + sharepoint portal? Reply with 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
Amar Galla
Guest





Posted: Thu Jan 13, 2005 10:14 am    Post subject: Re: Newbie: windows forms + sharepoint portal? Reply with quote

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? Reply with quote

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? Reply with 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
Amar Galla
Guest





Posted: Tue Jan 18, 2005 6:47 pm    Post subject: Re: Newbie: windows forms + sharepoint portal? Reply with quote

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? Reply with quote

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
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB