Workflow web service unable to call another external web service.http://forums.asp.net/t/1492422.aspx/1?Workflow+web+service+unable+to+call+another+external+web+service+Sun, 15 Nov 2009 07:51:55 -050014924223511208http://forums.asp.net/p/1492422/3511208.aspx/1?Workflow+web+service+unable+to+call+another+external+web+service+Workflow web service unable to call another external web service. <p>Hi All,</p> <p>I'm trying to invoke an external web service within my Windows Workflow Foundation Workflow Web Service.</p> <p>I get the following error message:</p> <pre><b>System.ApplicationException: Workflow terminated unexpectedly while processing the current request. ---&gt; System.Net.WebException: Unable to connect to the remote server ---&gt; System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:49868<br> at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)<br> at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)<br> at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception&amp; exception)<br> --- End of inner exception stack trace ---<br> at System.Workflow.Activities.InvokeWebServiceActivity.Execute(ActivityExecutionContext executionContext)<br> at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)<br> at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)<br> at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)<br> at System.Workflow.Runtime.Scheduler.Run()<br> --- End of inner exception stack trace ---<br> at System.Workflow.Activities.WorkflowWebService.Invoke(Type interfaceType, String methodName, Boolean isActivation, Object[] parameters)<br> 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<br></b></pre> <p><br> </p> <p>Please kindly assist.</p> <p>Thank you in advance.</p> <p>Best Regards,</p> <p>leroylll<br> </p> 2009-11-13T14:28:07-05:003511401http://forums.asp.net/p/1492422/3511401.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>What account is the WorkFlow Foundation Web Service running under? Is it a domain that has acess to get out through the firewall.<br> </p> 2009-11-13T15:48:47-05:003512242http://forums.asp.net/p/1492422/3512242.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>localhost<br> </p> 2009-11-14T03:09:16-05:003512361http://forums.asp.net/p/1492422/3512361.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>leroylll</h4> localhost </blockquote> <p></p> <p>Please contact your network Administrator for a&nbsp; network service account with the required priviledges.<br> </p> 2009-11-14T05:41:12-05:003512623http://forums.asp.net/p/1492422/3512623.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>its hosted using the visual studio development server.<br> </p> 2009-11-14T11:18:58-05:003512664http://forums.asp.net/p/1492422/3512664.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>Do you have network administrator rights?<br> </p> 2009-11-14T12:22:35-05:003512685http://forums.asp.net/p/1492422/3512685.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>yes... please advice.<br> </p> 2009-11-14T12:50:22-05:003512811http://forums.asp.net/p/1492422/3512811.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>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).</p> <p>Thank you.<br> </p> <p><b>Imports System.Web.Services<br> Imports System.Web.Services.Protocols<br> Imports System.ComponentModel<br> Imports Microsoft.Practices.EnterpriseLibrary.Security.Cryptography<br> Imports Microsoft.VisualBasic<br> <br> ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.<br> &lt;System.Web.Script.Services.ScriptService()&gt; _<br> &lt;System.Web.Services.WebService(Namespace:=&quot;http://tempuri.org/&quot;)&gt; _<br> &lt;System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)&gt; _<br> &lt;ToolboxItem(False)&gt; _<br> Public Class WSSecurity<br> &nbsp;&nbsp;&nbsp; Inherits System.Web.Services.WebService<br> <br> &nbsp;&nbsp;&nbsp; Protected Const _DESStr As String = &quot;DESCryptoServiceProvider&quot;<br> &nbsp;&nbsp;&nbsp; Protected Const _RDMStr As String = &quot;RijndaelManaged&quot;<br> <br> &nbsp;&nbsp;&nbsp; &lt;WebMethod()&gt; _<br> &nbsp;&nbsp;&nbsp; Public Function EncryptDES(ByVal EncryptStr As String) As String<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return Cryptographer.EncryptSymmetric(_DESStr, EncryptStr)<br> &nbsp;&nbsp;&nbsp; End Function<br> <br> &nbsp;&nbsp;&nbsp; &lt;WebMethod()&gt; _<br> &nbsp;&nbsp;&nbsp; Public Function DecryptDES(ByVal DecryptStr As String) As String<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return Cryptographer.DecryptSymmetric(_DESStr, DecryptStr)<br> &nbsp;&nbsp;&nbsp; End Function<br> <br> &nbsp;&nbsp;&nbsp; &lt;WebMethod()&gt; _<br> &nbsp;&nbsp;&nbsp; Public Function EncryptRDM(ByVal EncryptStr As String) As String<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return Cryptographer.EncryptSymmetric(_RDMStr, EncryptStr)<br> &nbsp;&nbsp;&nbsp; End Function<br> <br> &nbsp;&nbsp;&nbsp; &lt;WebMethod()&gt; _<br> &nbsp;&nbsp;&nbsp; Public Function DecryptRDM(ByVal DecryptStr As String) As String<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Return Cryptographer.DecryptSymmetric(_RDMStr, DecryptStr)<br> &nbsp;&nbsp;&nbsp; End Function<br> End Class</b></p> 2009-11-14T14:59:02-05:003512824http://forums.asp.net/p/1492422/3512824.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p>To create a Network Service Account</p> <ul> <li>As for creating any account</li><li>but tick password cannot expire</li><li>and tick &quot;user cannot change password&quot;</li><li>Choose a complex password like &quot;A1h4%w£0j5!&quot; and save it in a secure file</li><li>If a particular group is used for external access, add the user to that group</li><li>Strictly speaking, interactive logon should be disabled for that account</li></ul> <p>You will need to grant explicit permissions for this account.<br> </p> 2009-11-14T15:08:47-05:003512854http://forums.asp.net/p/1492422/3512854.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>TATWORTH</h4> <p></p> <p>To create a Network Service Account</p> <ul> <li>As for creating any account</li><li>but tick password cannot expire</li><li>and tick &quot;user cannot change password&quot;</li><li>Choose a complex password like &quot;A1h4%w£0j5!&quot; and save it in a secure file</li><li>If a particular group is used for external access, add the user to that group</li><li>Strictly speaking, interactive logon should be disabled for that account</li></ul> <p>You will need to grant explicit permissions for this account.<br> </p> <p></p> </blockquote> <br> <p></p> <p><br> </p> <p>i'm using windows server 2008 as my development OS, please kindly assist.<br> </p> <p><br> </p> 2009-11-14T15:38:59-05:003512858http://forums.asp.net/p/1492422/3512858.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>leroylll</h4> i'm using windows server 2008 as my development OS, please kindly assist.</blockquote> <p></p> <p>Is it a member of a workgroup or a domain?<br> </p> 2009-11-14T15:44:15-05:003512864http://forums.asp.net/p/1492422/3512864.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>TATWORTH</h4> <p></p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>leroylll</h4> i'm using windows server 2008 as my development OS, please kindly assist.</blockquote> <p></p> <p>Is it a member of a workgroup or a domain?<br> </p> <p></p> </blockquote> <p></p> <p><br> </p> <p>no.... just local standalone machine.<br> </p> 2009-11-14T15:49:40-05:003512885http://forums.asp.net/p/1492422/3512885.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>leroylll</h4> no.... just local standalone machine.</blockquote> <p></p> <p>In which case you are using much the same setup as I am using at the moment. </p> <p>Select:</p> <ol> <li>Administrative Tools...Computer Management<br> </li><li>Expand &quot;Local Users and Groups&quot;<br> </li><li>Right Click and select New user<br> </li><li>Enter new account name</li><li>Exter complex password as discussed earlier<br> </li><li>Clear &quot;User must change password at next logon&quot;</li><li>Check &quot;User cannot change password&quot;</li><li>Check &quot;Password Never Expires&quot;</li><li>Click Create<br> </li></ol> 2009-11-14T16:11:48-05:003513487http://forums.asp.net/p/1492422/3513487.aspx/1?Re+Workflow+web+service+unable+to+call+another+external+web+service+Re: Workflow web service unable to call another external web service. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>TATWORTH</h4> <p></p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>leroylll</h4> no.... just local standalone machine.</blockquote> <p></p> <p>In which case you are using much the same setup as I am using at the moment. </p> <p>Select:</p> <ol> <li>Administrative Tools...Computer Management<br> </li><li>Expand &quot;Local Users and Groups&quot;<br> </li><li>Right Click and select New user<br> </li><li>Enter new account name</li><li>Exter complex password as discussed earlier<br> </li><li>Clear &quot;User must change password at next logon&quot;</li><li>Check &quot;User cannot change password&quot;</li><li>Check &quot;Password Never Expires&quot;</li><li>Click Create<br> </li></ol> <p></p> </blockquote> <p></p> <p><br> </p> <p>its strange... i din need to do the above steps and my workflow web service is able to call other web services. its just this strange one that does not work.<br> </p> <p><br> </p> 2009-11-15T07:51:55-05:00