Web Service Security and Access

K

Khumza AK

Hi,

I need some help with the Web Service security. I have a web service
that picks up a file from a folder (any folder, network, local etc) and
sends it using SMTP to a mail recipient. When I browse to a file on my
machine, example C:\Temp\File1.doc and invoke the web service call
passing the file, the system is able to attach the selected file and
the email is sent successfully.

However, if I point to any file in C:\Document and Settings\... or on
the network, say \\ServerName\ShareName\File.doc, the system is unable
to attach the file to the mail message being created. The error message
is 'Invalid attachment'.

I have enabled Anonymous Access for the web service and cleared all the
other checkboxes in the Authenticated access frame.

The following lines precede the call to the web service method:

objCredentialCache = New CredentialCache
objCredentials = objCredentialCache.DefaultCredentials
wsWebServiceReference.Credentials = objCredentialCache

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,187
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top