This post shows you one of the possibilities to resolve the error above. I have written to Microsoft team in email as below.
I spent a day to troubleshoot this but no luck. I have web service running fine in slightly older Visual Studio 2015. Running fine with browse through IIS. Windows Server is Windows 2012 R2. SQL Server in this machine still SQL Server 2014.
When I run it in Web Service Task with SSIS then I got this error:
[Web Service Task] Error: An error occurred with the following error message: “Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: Unable to connect to the remote server. at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
– I tried to recreate the wsdl file but not working
– Set IIS pool and others, not work
– I run exactly the same package in other server with the same Visual Studio 2015, Win Server 2012 R2 and SQL Server 2014 but is fine.
No one from MS team is replying me. I somehow found out in some machines localhost is will not work like http://localhost/WSEGATA/WSATAPriority.asmx. Not sure about the reason. At the same time, you need to regenerate the wsdl file using the like with IP address and not localhost.