Hi
I have a post create plugin for Task entity that should call webservice(hosted on-premise with dns name eg. mycrm.mycompany.org:9000/GenerateLetter.asmx
The webservice has web method (GetSecurityGroupID) that takes input parameter from plugin and executes a stored procedure and returns back the result as integer value. It is working fine when tested from a console app. But when I execute from plugin by creating a task entity data, it doesn't work and couldn't get the error message also.
In plugin, I have added a service reference of the web service and tried to call in a normal way but couldn't get the output. Following is the code in the plugin
OneToOneWebService.GenerateOneToOneLetterSoapClient wb = new OneToOneWebService.GenerateOneToOneLetterSoapClient();
int securityGroupId = wb.GetSecurityGroupID(task.compass_workflowattribute1);
Any help would be greatly appreciated.
Thank you
Gandhi