Hi all,
I have a webservice with 2 method
[WebMethod]
[XmlInclude(typeof(eurosmallbiz.FrameWork.Systems.C alendar.Task))]
public int AddUpdateTask(eurosmallbiz.FrameWork.Systems.Calen dar.Task
task,string username,string password,int companyid,string SyncRule)
{
}
[WebMethod (Description="Task object")]
[XmlInclude(typeof(eurosmallbiz.FrameWork.Systems.C alendar.Task))]
public ArrayList GetTask()
{
}
The namespace of my Winform is Sync
The web reference name is eurosync
In my WinForm when I add a WebRefference the method AddUpdateTask because he
waiting for a object Sync.eurosync.Task and not
eurosmallbiz.FrameWork.Systems.Calendar.Task
Where is the problem.
The Class Task
namespace eurosmallbiz.FrameWork.Systems.Calendar
{
[Serializable()]
[XmlType(Namespace="eurosmallbiz.FrameWork.Systems. Calendar")]
[XmlRoot("Task")]
public class Task : ISerializable
{
}
}
Thanks for your help
Lino