The basic idea is that you have to write a Web Service which you configure to run as a custom web service within WSS, and which uses the object model. My problem is that it tells me that the file has been uploaded with no errors, but the file does not appear in the library!
I have put more detail on the source code in my blog if you think you could help:
I realise this can be done manually through a WebDAV connection with the library in the Windows Explorer GUI or through Microsoft Office 2003, but I wish to create a document scanning interface which will automatically upload documents without user interaction. Thanks, Rohan.
> that explains how to write a web service do this, which I have not yet > been able to get to work!
> The basic idea is that you have to write a Web Service which you > configure to run as a custom web service within WSS, and which uses the > object model. My problem is that it tells me that the file has been > uploaded with no errors, but the file does not appear in the library!
> I have put more detail on the source code in my blog if you think you > could help:
> I realise this can be done manually through a WebDAV connection with > the library in the Windows Explorer GUI or through Microsoft Office > 2003, but I wish to create a document scanning interface which will > automatically upload documents without user interaction. > Thanks, Rohan.
Hmmm, I already thought of that. Correct me if I am wrong but none of the existing methods allow for the upload of a completely new document into a Document Library (remember I'm not talking about uploading attachments to existing List items). If did, why would MSDN then post an article explaining how to write a custom web service to do it. I'll try the previous suggestion from the anonymous poster and post back here if it works. Cheers!
I'll jump in with something that you'll either say is way off topic or you'll say it's just what you are looking for.
Let's try anyway.
You're scanning on a scanner that's attached to a client workstation and you then want to send the scanned document to a document library that is located somewhere else. (wondering how remote remote is and how much it affects the following).
Provided you have Office 2003 installed on your client, you can specify your document library as a logical drive on your client.
net use X: \\servername\doclib1 or possibly X: \\servername\doclib1 /user:xxxxx and it asks for the password twice before saying you are OK (own experience earlier today - I also had problems with doc lib names with spaces or %20).
Then you just send the scanner output files to X:
Hate it or Love it ?
Mike Walsh, Helsinki, Finland WSS FAQ at wss.collutions.com Please post questions to the newsgroup only.
"Rohan Cragg" <rohancr...@hotmail.com> wrote in message
> Hmmm, I already thought of that. Correct me if I am wrong but none of > the existing methods allow for the upload of a completely new document > into a Document Library (remember I'm not talking about uploading > attachments to existing List items). If did, why would MSDN then post > an article explaining how to write a custom web service to do it. I'll > try the previous suggestion from the anonymous poster and post back > here if it works. Cheers!
Another idea might be to setup an "e-mail enabled document library" which is standard SharePoint functionality. Just have an e-mail with an attachmen sent to a public folder and the attachment will appear in the document library.
Wim
>-----Original Message----- >I'll jump in with something that you'll either say is way off topic or >you'll say it's just what you are looking for.
>Let's try anyway.
>You're scanning on a scanner that's attached to a client workstation and you >then want to send the scanned document to a document
library that is located
>somewhere else. (wondering how remote remote is and how much it affects the >following).
>Provided you have Office 2003 installed on your client,
you can specify your
>document library as a logical drive on your client.
>net use X: \\servername\doclib1 or possibly X:
\\servername\doclib1
>/user:xxxxx and it asks for the password twice before
>experience earlier today - I also had problems with doc lib names with >spaces or %20).
>Then you just send the scanner output files to X:
>Hate it or Love it ?
>Mike Walsh, Helsinki, Finland >WSS FAQ at wss.collutions.com >Please post questions to the newsgroup only.
>"Rohan Cragg" <rohancr...@hotmail.com> wrote in message >news:c94v3h$1sb@odah37.prod.google.com... >> Hmmm, I already thought of that. Correct me if I am wrong but none of >> the existing methods allow for the upload of a
>> into a Document Library (remember I'm not talking about uploading >> attachments to existing List items). If did, why would MSDN then post >> an article explaining how to write a custom web service to do it. I'll >> try the previous suggestion from the anonymous poster and post back >> here if it works. Cheers!
I actually got it to work and I'll blog it as soon as I have a minute. But in any case that is a superb tip that I'll definitely make use of even if not in this particular case.
Thanks Mike, I was about to try it but then I realised I don't understand your instructions. Given that I have a libary at the location 'http://servername:8099/doclib1' I don't see how '\\servername\doclib1' could be made to map to that address? the command:
If I have added doclib1 to 'My Network Places' then I discovered that the path to that folder is actually 'c:\documents and settings\xxx\nethood\doclib1' and in fact subfolders or sub libraries can also be addressed by this file path structure:
'c:\documents and settings\xxx\nethood\doclib1\folder1' you still can't map a drive letter to this though.
Useful stuff! What would be even more useful would be if you could automatically set entries in 'My Network Places' from Group Policy or some other such form of central management? If you can do that you can also then centrally control peoples' default 'Save As' folder in Word and Excel - now that would be nice...
> Thanks Mike, I was about to try it but then I realised I don't > understand your instructions. Given that I have a libary at the > location 'http://servername:8099/doclib1' I don't see how > '\\servername\doclib1' could be made to map to that address? the > command:
> If I have added doclib1 to 'My Network Places' then I discovered that > the path to that folder is actually 'c:\documents and > settings\xxx\nethood\doclib1' and in fact subfolders or sub libraries > can also be addressed by this file path structure:
> 'c:\documents and settings\xxx\nethood\doclib1\folder1' you still can't > map a drive letter to this though.
> Useful stuff! What would be even more useful would be if you could > automatically set entries in 'My Network Places' from Group Policy or > some other such form of central management? If you can do that you can > also then centrally control peoples' default 'Save As' folder in Word > and Excel - now that would be nice...
FIX: The problem was that I was starting off in the root site 'myintranet:8099', and I wanted to access a document library in 'myintranet:8099/sites/it'. Even though I was supplying the GUID it couldnt find the list from the root web, I had to also tell it to move up to the 'sites/it' web before it would find it.