I am trying to code the functions to utilize the SetEntry and the LockEntry procedures to save and lock entries through the API. Both of these procedures require a Dataset as an argument in the calls. The signature for these procs are: public bool LockEntry(System.Data.DataSet Entry, System.Guid LockKey, MethodsBiz.wsDMX.TimeSpan LockDuration) public bool LockEntry(System.Data.DataSet Entry, System.Guid LockKey, .wsDMX.TimeSpan LockDuration) public int wsDMX.SetEntry(System.Data.DataSet Entry) I attempted to code the wsDMX.Service.GetEntry(int) procedure since that returns the Dataset, hoping that it would give me a clue as to how the dataset should be designed, but I the code resulted in an error being thrown. Code for the GetEntry proc: public bool GetEntry(int EntityID) { bool bRtn = false; try { } wsDMX.Service ssc = this.CreateWebService(); DataSet ds = ssc.GetEntry(EntityID); DataTable dt = ds.Tables[0]; bRtn = true; return bRtn; } The resulting exception: System.InvalidOperationException was unhandled Message=There is an error in XML document (1, 4254). Source=System.Xml StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at MethodsBiz.wsDMX.Service.GetEntry(Int32 EntryId) in C:\Documents and Settings\rhastie\my documents\visual studio 2010\Projects\MethodsConsoleGUI\MethodsBiz\Web References\wsDMX\Reference.cs:line 439 at MethodsBiz.DMXFileCollection.LockFile(Int32 EntityID) in C:\Documents and Settings\rhastie\my documents\visual studio 2010\Projects\MethodsConsoleGUI\MethodsBiz\DMXFileCollection.cs:line 60 at MethodsBiz.DMXFileCollection.Retrieve(Int32 ParentID) in C:\Documents and Settings\rhastie\my documents\visual studio 2010\Projects\MethodsConsoleGUI\MethodsBiz\DMXFileCollection.cs:line 38 at MethodsBiz.DMXFileCollection.Create(Int32 ParentID) in C:\Documents and Settings\rhastie\my documents\visual studio 2010\Projects\MethodsConsoleGUI\MethodsBiz\DMXFileCollection.cs:line 20 at MethodsConsole.winMain.winMain_Loaded(Object sender, RoutedEventArgs e) in C:\Documents and Settings\rhastie\my documents\visual studio 2010\Projects\MethodsConsoleGUI\MethodsConsoleGUI\winMain.xaml.cs:line 29 ... Any help would be greatly appreciated. Thanks in advance. Ray
|