Calendar WSS 3.0 - InfoPath Dev
in

InfoPath Dev

Calendar WSS 3.0

Last post 12-12-2006 03:15 AM by diaboloche. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-11-2006 07:00 AM

    Calendar WSS 3.0

    Hi,

    Firstly, sorry for my bad english.
    I want add a item in a calendar WSS 3.0.


    But, which webservice to use?


    A calendar is a list ?

    Thanks for your help.
  • 12-11-2006 08:12 AM In reply to

    I suppose that I can follow this topic :
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1757&whichpage=1

    I have an error :


    La réponse SOAP indique qu'une erreur s'est produite sur le serveur :

    Une exception de type 'Microsoft.SharePoint.SoapServer.SoapServerException' a été levée.
    <detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">La valeur n'est pas comprise dans la plage attendue.</errorstring></detail>
  • 12-12-2006 01:12 AM In reply to

    I test starting from VS2005 out of C # on a simple list of contact with 1 only column. Here my code:


    WebReference1.Lists listService = new WebReference1.Lists();
    listService.Credentials = System.Net.CredentialCache.DefaultCredentials;

    string strBatch = "<Method ID='1' Cmd='Update'>" +
    "<Field Name='Title'>TestTestTest</Field></Method>";


    XmlDocument xmlDoc = new System.Xml.XmlDocument();

    System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");

    elBatch.SetAttribute("OnError", "Continue");
    elBatch.SetAttribute("ListVersion", "1");
    elBatch.SetAttribute("Contacts", "128AF617-5070-4183-A9ED-D54FB171B9DA");

    elBatch.InnerXml = strBatch;

    XmlNode ndReturn = listService.UpdateListItems("Contacts", elBatch);

    MessageBox.Show(ndReturn.OuterXml);


    I obtain an error indicating to me that the URL is not correct...
    My URL of Webreference :
    http://10.20.20.103:88/_vti_bin/Lists.asmx

    and URL of list :


    :( HELP please.
  • 12-12-2006 03:15 AM In reply to

    That functions, but he does not want to fix MY ID, he it definite him even


    WebReference.Lists listService = new WebReference.Lists();
    listService.Credentials = System.Net.CredentialCache.DefaultCredentials;

    string strBatch = "<Method ID='1' Cmd='New'>" +
    "<Field Name='Title'>" + Client + "</Field>" +
    "<Field Name='EventDate'>2006-10-10</Field>" +
    "<Field Name='EndDate'>2006-10-10</Field>" +
    "<Field Name='"+IDAnnonce+"'>1000</Field>" +
    "</Method>";


    XmlDocument xmlDoc = new System.Xml.XmlDocument();

    System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");

    elBatch.SetAttribute("OnError", "Continue");
    elBatch.SetAttribute("ListVersion", "1");
    elBatch.SetAttribute("Calendrier", "AD9AD333-37EB-497F-83C3-F9848B5B0E59");

    elBatch.InnerXml = strBatch;

    XmlNode ndReturn = listService.UpdateListItems("Calendrier", elBatch);
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.