Welcome to the Axosoft Community, Sign in | Register | Help
in Search

Error retrieving defects in SDK

Last post 11-15-2007, 11:38 AM by Dan Suceava. 1 replies.
Sort Posts: Previous Next
  •  11-14-2007, 9:14 AM 13892

    • JT is not online. Last active: 05-14-2008, 2:26 PM JT
    • Top 200 Contributor
      Male
    • Joined on 09-04-2007
    • Tolland, CT
    • Posts 11
    • Points 231
    Error retrieving defects in SDK

    I am having a problem retrieving the list of defects from the SDK when using the provided sample code for the OnTimeSDKWinSample application.

    When this line of code is reached, it produces an error:

    defects = dh.GetDefectsByProject(_securityToken, (int)selectedNode.Tag);

    Error: 

    System.Web.Services.Protocols.SoapException was unhandled
      Message="System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Method DefectHandler.UpdateDefect can not be reflected. ---> System.InvalidOperationException: The XML element 'UpdateDefect' from namespace 'http://axosoft.com/ontime/webservices/' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute.\n   at System.Xml.Serialization.XmlReflectionImporter.ReconcileAccessor(Accessor accessor, NameTable accessors)\n   at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(String elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, XmlMappingAccess access)\n   at System.Web.Services.Protocols.SoapReflector.ImportMembersMapping(XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, Boolean serviceDefaultIsEncoded, Boolean rpc, SoapBindingUse use, SoapParameterStyle paramStyle, String elementName, String elementNamespace, Boolean nsIsDefault, XmlReflectionMember[] members, Boolean validate, Boolean openModel, String key, Boolean writeAccess)\n   at System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs)\n   --- End of inner exception stack trace ---\n   at System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs)\n   at System.Web.Services.Protocols.SoapServerType..ctor(Type type, WebServiceProtocols protocolsSupported)\n   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()\n   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)\n   --- End of inner exception stack trace ---"
      Source="System.Web.Services"
      Actor=""
      Lang=""
      Node=""
      Role=""
      StackTrace:
           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 OnTimeSdkWinSample.DefectService.DefectHandler.GetDefectsByProject(Guid securityToken, Int32 projectId) in C:\Temp\OnTimeV80B2Suite\OnTimeSdkSamples\OnTimeSdkWinSample\OnTimeSdkWinSample\Web References\DefectService\Reference.cs:line 358
           at OnTimeSdkWinSample.MainForm.RefreshDefectsList(TreeNode selectedNode) in C:\Temp\OnTimeV80B2Suite\OnTimeSdkSamples\OnTimeSdkWinSample\OnTimeSdkWinSample\MainForm.cs:line 211
           at OnTimeSdkWinSample.MainForm.treeView1_AfterSelect(Object sender, TreeViewEventArgs e) in C:\Temp\OnTimeV80B2Suite\OnTimeSdkSamples\OnTimeSdkWinSample\OnTimeSdkWinSample\MainForm.cs:line 193
           at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
           at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
           at System.Windows.Forms.TreeView.WmNotify(Message& m)
           at System.Windows.Forms.TreeView.WndProc(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
           at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
           at System.Windows.Forms.Control.WmNotify(Message& m)
           at System.Windows.Forms.Control.WndProc(Message& m)
           at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
           at System.Windows.Forms.Control.DefWndProc(Message& m)
           at System.Windows.Forms.Control.WndProc(Message& m)
           at System.Windows.Forms.TreeView.WndProc(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, IntPtr lparam)
           at System.Windows.Forms.TreeView.set_SelectedNode(TreeNode value)
           at OnTimeSdkWinSample.MainForm.LoadProjects() in C:\Temp\OnTimeV80B2Suite\OnTimeSdkSamples\OnTimeSdkWinSample\OnTimeSdkWinSample\MainForm.cs:line 63
           at OnTimeSdkWinSample.MainForm.OnLoad(EventArgs e) in C:\Temp\OnTimeV80B2Suite\OnTimeSdkSamples\OnTimeSdkWinSample\OnTimeSdkWinSample\MainForm.cs:line 26
           at System.Windows.Forms.Form.OnCreateControl()
           at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
           at System.Windows.Forms.Control.CreateControl()
           at System.Windows.Forms.Control.WmShowWindow(Message& m)
           at System.Windows.Forms.Control.WndProc(Message& m)
           at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
           at System.Windows.Forms.ContainerControl.WndProc(Message& m)
           at System.Windows.Forms.Form.WmShowWindow(Message& m)
           at System.Windows.Forms.Form.WndProc(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
           at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
           at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
           at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
           at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
           at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
           at System.Windows.Forms.Control.set_Visible(Boolean value)
           at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
           at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
           at System.Windows.Forms.Application.Run(Form mainForm)
           at OnTimeSdkWinSample.Program.Main() in C:\Temp\OnTimeV80B2Suite\OnTimeSdkSamples\OnTimeSdkWinSample\OnTimeSdkWinSample\Program.cs:line 17
           at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()

     

    If I comment out that line of code the application runs and shows the project list but no defects can be seen or added without getting the above error.

     Any help would be great.

    Thanks,

    -JT

     

     

  •  11-15-2007, 11:38 AM 13910 in reply to 13892

    Re: Error retrieving defects in SDK

    This is a known issue in the Beta 2 SDK and we will be fixing it for the next release.  Unfortunately there is no workaround for this problem.


    Dan Suceava
    http://www.axosoft.com
View as RSS news feed in XML

© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software