Everyone, I have a webservice in (ASMX) on a c# asp.net site and I am receiving outbound messages from the sales force I have more than one type of Notification one is for Accounts other is Tasks the first one is working with all the default ClassNames when I generated the ProxyClass from WSDL file, when I did it for the Tasks and converted WSDL file to ProxyClass it was showing Errors about names are conflicting with one another, so I changed the names in the ProxyClass, such as defaul Name for Notifications to notificationTasks,NotificationReponce to notificationsResponseTask,sObject to sObjectTask, so when I ran the generic code for receive notification and return Ack=true
by default it worked with no issues but when I try the following Code: i.e trying to take values from the message it breaks showing Error of Server was not able to handle the request.
My Code:
class Tasks :INotificationBindingTasks
{
//class MyNotificationListener : INotificationBinding
public notificationsResponseTask notifications(notificationTasks notification2)
{
TaskNotification[] TaskNotification = notification2.Notification;
notificationsResponseTask r = new notificationsResponseTask();
r.Ack = true;
return r;
}
}
What am I doing wrong here?