stream file from sharepoint WSS
I've created a class that uses vti_bin/lists.asmx to gain access to the document library. I am able to return an xlm file with names and values and attached that to a treeview. I just found out that the way I went about this is not going to work. The problem I face is when the user clicks on the file to open it tries to connect to our intranet which is not going to work on an outside website. Can someone tell me if there is a wss webservice that I can call to get access to the files or how I would go about streaming these files to make them available to the outside world ? Thanks so much for any help Gina
April 20th, 2010 10:48pm

How have you got your topology set up? Is the Document Library configured for anonymous access? M.Marc D Anderson - Sympraxis Consulting LLC - Marc D Anderson's Blog - @sympmarc - jQuery Library for SharePoint Web Services (SPServices)
Free Windows Admin Tool Kit Click here and download it now
April 21st, 2010 7:26am

I'm passing the credentials in my method. here is how i get the list public void GetLists(string url, string login, string password) { //List WebService Lists ls = new Lists(); //When PreAuthenticate is true, the WWW-authenticate header //is sent with all subsequent requests. ls.PreAuthenticate = true; //Authenticate the current user by passing their default //credentials to the Web service from the system credential //cache. ls.Credentials = new NetworkCredential(login, password); //Set the Url property of the service for the path to a subsite. //Not setting this property will return the lists in the root Web site. ls.Url = url + @"/_vti_bin/lists.asmx"; //Declare an XmlNode object and initialize it with the XML //response from the GetListCollection method. //Loop through XML response and parse out the value of the //Title attribute for each list. foreach (XmlNode list in ls.GetListCollection().ChildNodes) { //Check whether list is a document library if (Convert.ToInt32(list.Attributes["ServerTemplate"].Value) == 0x65) { string title = list.Attributes["Title"].Value; // looks into the specified document library if(title == _docLibray) { string listUrl = list.Attributes["DefaultViewUrl"].Value.Replace("/Forms/AllItems.aspx", string.Empty); char[] separator = new char[] { '/' }; string listPath = url.Substring(0, url.LastIndexOf('/')); // build xml file //start tag of xml file sb.Append("<List>"); AddFolderContent(url, title, _startFolder, login, password); sb.Append("</List>"); // complete XML file _xmlFile = sb.ToString(); } } } }
April 21st, 2010 5:13pm

Hi, Have you managed to solve this ? I'm interested in the answer to this problem. I want to stream the document in code, run an ASPOSE component on it to programatically update the word fields. And then save the document and stream it to MOSS. Is this possible ? Thanks,
Free Windows Admin Tool Kit Click here and download it now
July 1st, 2010 10:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics