Hi,
I and trying to replay webservice in LR 12 but I am getting connectivity error even though I was able to connect to the webservice using loadrunner.
Maximum number of concurrent connections per server: 2 [MsgId: MMSG-26989]
Starting action Action.
Action.c(3): Web service call "GetCitiesByCountry_101" started
Action.c(3): "SOAPAction: "http://www.webserviceX.NET/GetCitiesByCountry"" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(3): "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.2032)" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(3): "Content-Type: text/xml; charset=utf-8" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(3): t=480ms: Connecting [0] to host 173.201.44.188:80 [MsgId: MMSG-26000]
Action.c(3): t=21481ms: Closed connection [0] to www.webservicex.net:80 after completing 0 requests [MsgId: MMSG-26000]
Action.c(3): Error Exceptions:
Action.c(3): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Failed to connect to server "www.webservicex.net:80": [10060] Connection timed out
at Mercury.LR.WS.ProxyBase.LrWsWebRequest.SyncProcessRequest()
at Mercury.LR.WS.ProxyBase.LrWsWebRequest.OnRequestStreamClosed(MemoryStream stream)
at Mercury.LR.WS.ProxyBase.WSMemoryStream.Close()
at Microsoft.Web.Services2.OutputStream.Close()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Mercury.LR.NETProxy.GlobalWeather.GetCitiesByCountry(String CountryName)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Mercury.LR.LrWsNetClient.ProxyCreator.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
at Mercury.LR.LrWsNetClient.NetReplay.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
Action.c(3): Error:InvokeMethod failure: Failed to connect to server "www.webservicex.net:80": [10060] Connection timed out.
Action.c(3): Error stack trace: at Mercury.LR.LrWsNetClient.ResultArgExtractor.CreateXmlArgsDoc()
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArgAsXml(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArg(String sArgPath, Boolean IsSaveResultArgumentsAsIs, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ProxyCreator.ExtractArg(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.NetReplay.ExtractResultArg(String sArgPath, ArgumentExtractionType extractionType, Array& barrArgValue)
Action.c(3): Error:ExtractResultArg failure: Object reference not set to an instance of an object..
Action.c(3): Error:Web service call "GetCitiesByCountry_101" execution failed
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
Can you please look help?
Here is the extended log
Virtual User Script started at : 6/02/2015 1:59:19 PM
Starting action vuser_init.
Web Services replay version 12.0.0 for Windows 7; Toolkit: ".Net"; build 2079
Run-Time Settings file: "C:\Users\KASUKURTHY_S\Documents\VuGen\Scripts\WebServices5\\default.cfg"
Vuser directory: "C:\Users\KASUKURTHY_S\Documents\VuGen\Scripts\WebServices5"
Vuser output directory: "C:\Users\KASUKURTHY_S\Documents\VuGen\Scripts\WebServices5\"
LOCAL start date/time: 2015-02-06 13:59:19
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Maximum number of concurrent connections per server: 2 [MsgId: MMSG-26989]
Starting action Action.
Action.c(3): Web service call "GetCitiesByCountry_101" started
Action.c(3): "SOAPAction: "http://www.webserviceX.NET/GetCitiesByCountry"" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(3): "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.2032)" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(3): "Content-Type: text/xml; charset=utf-8" header registered for adding to requests from the immediately following Action function [MsgId: MMSG-26506]
Action.c(3): t=480ms: Connecting [0] to host 173.201.44.188:80 [MsgId: MMSG-26000]
Action.c(3): t=21481ms: Closed connection [0] to www.webservicex.net:80 after completing 0 requests [MsgId: MMSG-26000]
Action.c(3): Error Exceptions:
Action.c(3): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Failed to connect to server "www.webservicex.net:80": [10060] Connection timed out
at Mercury.LR.WS.ProxyBase.LrWsWebRequest.SyncProcessRequest()
at Mercury.LR.WS.ProxyBase.LrWsWebRequest.OnRequestStreamClosed(MemoryStream stream)
at Mercury.LR.WS.ProxyBase.WSMemoryStream.Close()
at Microsoft.Web.Services2.OutputStream.Close()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Mercury.LR.NETProxy.GlobalWeather.GetCitiesByCountry(String CountryName)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Mercury.LR.LrWsNetClient.ProxyCreator.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
at Mercury.LR.LrWsNetClient.NetReplay.InvokeMethod(String sMethod, IWSMethodParameters mParams, String sAsyncEvent)
Action.c(3): Error:InvokeMethod failure: Failed to connect to server "www.webservicex.net:80": [10060] Connection timed out.
Action.c(3): Error stack trace: at Mercury.LR.LrWsNetClient.ResultArgExtractor.CreateXmlArgsDoc()
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArgAsXml(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ResultArgExtractor.ExtractArg(String sArgPath, Boolean IsSaveResultArgumentsAsIs, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.ProxyCreator.ExtractArg(String sArgPath, ArgumentExtractionType extractionType)
at Mercury.LR.LrWsNetClient.NetReplay.ExtractResultArg(String sArgPath, ArgumentExtractionType extractionType, Array& barrArgValue)
Action.c(3): Error:ExtractResultArg failure: Object reference not set to an instance of an object..
Action.c(3): Error:Web service call "GetCitiesByCountry_101" execution failed
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.