I'm trying to invoke an external web service within my Windows Workflow Foundation Workflow Web Service.
I get the following error message:
System.ApplicationException: Workflow terminated unexpectedly while processing the current request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:49868 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Workflow.Activities.InvokeWebServiceActivity.Execute(ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run() --- End of inner exception stack trace --- at System.Workflow.Activities.WorkflowWebService.Invoke(Type interfaceType, String methodName, Boolean isActivation, Object[] parameters) at WinComm_iSolutions_Workflows.iSolutions_LoginWF_WebService.CheckLoginDetails(String loginName, String loginPwd, String connStr) in C:\Users\Administrator\AppData\Local\Temp\ia9xr1bf.vb:line 38
What account is the WorkFlow Foundation Web Service running under? Is it a domain that has acess to get out through the firewall.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Please contact your network Administrator for a network service account with the required priviledges.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class WSSecurity
Inherits System.Web.Services.WebService
Protected Const _DESStr As String = "DESCryptoServiceProvider"
Protected Const _RDMStr As String = "RijndaelManaged"
<WebMethod()> _
Public Function EncryptDES(ByVal EncryptStr As String) As String
Return Cryptographer.EncryptSymmetric(_DESStr, EncryptStr)
End Function
<WebMethod()> _
Public Function DecryptDES(ByVal DecryptStr As String) As String
Return Cryptographer.DecryptSymmetric(_DESStr, DecryptStr)
End Function
<WebMethod()> _
Public Function EncryptRDM(ByVal EncryptStr As String) As String
Return Cryptographer.EncryptSymmetric(_RDMStr, EncryptStr)
End Function
<WebMethod()> _
Public Function DecryptRDM(ByVal DecryptStr As String) As String
Return Cryptographer.DecryptSymmetric(_RDMStr, DecryptStr)
End Function
End Class
Choose a complex password like "A1h4%w£0j5!" and save it in a secure file
If a particular group is used for external access, add the user to that group
Strictly speaking, interactive logon should be disabled for that account
You will need to grant explicit permissions for this account.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
leroylll
Member
131 Points
258 Posts
Workflow web service unable to call another external web service.
Nov 13, 2009 02:28 PM|LINK
Hi All,
I'm trying to invoke an external web service within my Windows Workflow Foundation Workflow Web Service.
I get the following error message:
Please kindly assist.
Thank you in advance.
Best Regards,
leroylll
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Workflow web service unable to call another external web service.
Nov 13, 2009 03:48 PM|LINK
What account is the WorkFlow Foundation Web Service running under? Is it a domain that has acess to get out through the firewall.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
leroylll
Member
131 Points
258 Posts
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 03:09 AM|LINK
localhost
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 05:41 AM|LINK
Please contact your network Administrator for a network service account with the required priviledges.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
leroylll
Member
131 Points
258 Posts
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 11:18 AM|LINK
its hosted using the visual studio development server.
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 12:22 PM|LINK
Do you have network administrator rights?
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
leroylll
Member
131 Points
258 Posts
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 12:50 PM|LINK
yes... please advice.
leroylll
Member
131 Points
258 Posts
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 02:59 PM|LINK
i tried to invoke another web service, there was no error. Attached below is my web service code. Please kind advice on any mistakes (if any).
Thank you.
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports Microsoft.Practices.EnterpriseLibrary.Security.Cryptography
Imports Microsoft.VisualBasic
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class WSSecurity
Inherits System.Web.Services.WebService
Protected Const _DESStr As String = "DESCryptoServiceProvider"
Protected Const _RDMStr As String = "RijndaelManaged"
<WebMethod()> _
Public Function EncryptDES(ByVal EncryptStr As String) As String
Return Cryptographer.EncryptSymmetric(_DESStr, EncryptStr)
End Function
<WebMethod()> _
Public Function DecryptDES(ByVal DecryptStr As String) As String
Return Cryptographer.DecryptSymmetric(_DESStr, DecryptStr)
End Function
<WebMethod()> _
Public Function EncryptRDM(ByVal EncryptStr As String) As String
Return Cryptographer.EncryptSymmetric(_RDMStr, EncryptStr)
End Function
<WebMethod()> _
Public Function DecryptRDM(ByVal DecryptStr As String) As String
Return Cryptographer.DecryptSymmetric(_RDMStr, DecryptStr)
End Function
End Class
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 03:08 PM|LINK
To create a Network Service Account
You will need to grant explicit permissions for this account.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
leroylll
Member
131 Points
258 Posts
Re: Workflow web service unable to call another external web service.
Nov 14, 2009 03:38 PM|LINK
i'm using windows server 2008 as my development OS, please kindly assist.