473,767 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fundamental Sharepoint Interaction Question

35 New Member
Hello,
I'm trying to utilize the sharepoint web services to remotely upload documents and it is requiring a listitemid and for the life of me i can't figure out where I get this value.

Here is the environment and code etc...
I created a doc lib for testing on my sharepoint site name "Test".
I added a webrefrence to my project pointed to the
http://.../_vti_bin/lists.asmx

I utilized the following code to get the list's details:

Expand|Select|Wrap|Line Numbers
  1. Lists _wsLists = new Lists();
  2. _wsLists.Credentials = new NetworkCredential("un", "pass", "domain");
  3. XmlNode _xNode = _wsLists.GetList("Test");
  4.  
which gives me the following XML for for my doc library
Expand|Select|Wrap|Line Numbers
  1. List
  2.     DocTemplateUrl : /Test/Forms/template.doc
  3.     DefaultViewUrl : /Test/Forms/AllItems.aspx
  4.     MobileDefaultViewUrl : 
  5.     ID : {C91C8429-1F17-4D8C-A032-032CD1457E00}
  6.     Title : Test
  7.     Description : 
  8.     ImageUrl : /_layouts/images/itdl.gif
  9.     Name : {C91C8429-1F17-4D8C-A032-032CD1457E00}
  10.     BaseType : 1
  11.     FeatureId : 00bfea71-e717-4e80-aa17-d0c71b360101
  12.     ServerTemplate : 101
  13.     Created : 20080414 02:50:31
  14.     Modified : 20080414 03:24:55
  15.     LastDeleted : 20080414 02:50:31
  16.     Version : 0
  17.     Direction : none
  18.     ThumbnailSize : 
  19.     WebImageWidth : 
  20.     WebImageHeight : 
  21.     Flags : 4104
  22.     ItemCount : 1
  23.     AnonymousPermMask : 0
  24.     RootFolder : 
  25.     ReadSecurity : 1
  26.     WriteSecurity : 1
  27.     Author : 9
  28.     EventSinkAssembly : 
  29.     EventSinkClass : 
  30.     EventSinkData : 
  31.     EmailInsertsFolder : 
  32.     EmailAlias : 
  33.     WebFullUrl : /maintech/noc
  34.     WebId : 5b92c827-5f5f-4d1a-b72a-a7f5adc8784c
  35.     SendToLocation : 
  36.     ScopeId : 671c37b8-0f20-4521-a273-e47ebbd70dcb
  37.     MajorVersionLimit : 0
  38.     MajorWithMinorVersionsLimit : 0
  39.     WorkFlowId : 
  40.     HasUniqueScopes : False
  41.     AllowDeletion : True
  42.     AllowMultiResponses : False
  43.     EnableAttachments : False
  44.     EnableModeration : False
  45.     EnableVersioning : False
  46.     Hidden : False
  47.     MultipleDataList : False
  48.     Ordered : False
  49.     ShowUser : True
  50.     EnableMinorVersion : False
  51.     RequireCheckout : False
  52.  
Now To upload a document I need the the following params
Expand|Select|Wrap|Line Numbers
  1. string listName, string listItemID, string fileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] attachment
  2.  
I know how to get everything but the listItemID which i can't figure out.
most examples i found people set this to "1" but that dosent work. I tried a loop and it went all the way to 600 before i quit.

Please Help!
Apr 14 '08 #1
0 1032

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1286
by: Cammie Watson | last post by:
Not sure if this is the right place to post this question. We have developed an application in .Net that we would like to be called from Sharepoint. It would be good if it was seemless and the user felt they were still using Sharepoint. Therefore the question is; How do you quickly get the look of Sharepoint, our application works functionally like Sharepoint. We realise a web part would be written and then would call the app.
0
953
by: Dave | last post by:
Hi, Are there any specific developer guidelines, publications etc. for developers when writing a stand alone ASP.NET application (no interaction with SPS) but it needs to be capable of being deployed on a server that also has Sharepoint installed. I have seen numerous posts of people with problems deploying a regular ASP.NET application on a sharepoint server but can't find any specific developer materials.
2
1654
by: Gerry Hickman | last post by:
Hi, We are currently running VS.NET clients against a Windows 2000 server which has Frontpage server extensions; this means we can have teams of developers interacting on web applications from remote locations over HTTP without firewall issues. However, Frontpage extensions have now been discontinued and replaced by Windows Sharepoint Services (WSS) on Windows Server 2003. This means that if we want to be able to work "live" or...
15
3506
by: (PeteCresswell) | last post by:
Got a sample of MS's "Advisor Guide To Microsoft Access" in the mail today - accompanied by a sample "Advisor Guide To Microsoft SharePoint". I skimmed both, but the SharePoint explanation is too abstract - it's going right over my head. Can somebody explain, in simple/concrete terms what MS SharePoint is? -- PeteCresswell
1
1947
by: =?Utf-8?B?TWF0cmFNNjUw?= | last post by:
We can maintain SSO (single sign on) between SharePoint 2003 and a third party WebSSO provider. This is done by passing to the WebSSO provider the authenticated domain user name and password, then creating a user context with LogonUser, and returning control to the web server. IIS then passes the user context to SharePoint 2003 allowing us to maintain SSO. Unfortunately we can not do the same with SharePoint 2007. Calling LogonUser to...
1
1176
by: =?Utf-8?B?TWljaGVsbGU=?= | last post by:
Hi, I have a document library set up in Sharepoint where i have saved several PDF documents. Each of these documents have links within them. When i click on a link in the PDF it opens up, when i hit the back button, sometimes it takes me back to the same place in the PDF, other times it takes me back to the very top of the PDF. I have tested the PDF in Sharepoint and just on my server....this only happens when it is uploaded to the...
20
2757
by: Neil | last post by:
What is Sharepoint, and should I care?
1
19847
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies that enable a team to collaborate and coordinate a project (software or non software projects). The team collaboration is achieved by several tools and features available as part of "Team Foundation". Team Foundation Server The Team...
2
1816
by: Microsoft Newsserver | last post by:
I have a requuirement to build a control with custom functionality for our ..net web applications. We are also being asked if this could beused in sharepoint as well. Does anyone have any knowledge about writing custom controls which can also be used by sharepoint as I know absolutely nothing about sharepoint. thanks
0
9571
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8835
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.