Can we use WCF load to test Silver light consuming (WCF services)

Apr 22, 2013 at 10:50 AM
Edited Apr 23, 2013 at 4:44 AM
I have tried to generate code by following way
1- Fiddler2 installed.
2- Access the web (Silverlight) in IE.
3- Selected and saved the WCF requests from fiddler 2 as text file.
4- Open the VS 2010 ultimate "WCF Test" Use Pre-Captured messages log file (fiddler text) and click on Parse.

VS shows error “The message log did not contain any calls to WCF service”
Please suggest any work around.

Check the log and image for details.

My Logfile is
https://docs.google.com/file/d/0BzWipjGotp_uMWVDZEVzMTM5WXc/edit?pli=1

and image is
https://docs.google.com/file/d/0BzWipjGotp_uak1PeVNxZzVReUU/edit?pli=1
Coordinator
Apr 23, 2013 at 6:19 PM
I have had a look at the log file and it would seem to be because there is no SOAPAction header in the fiddler log file, which is what the parser expects to be able to find. Try adding it manually to see if that resolves your problem.

Regards

Rob
Apr 24, 2013 at 5:49 AM
Edited Apr 24, 2013 at 6:30 AM
Thanks rob for reply but i have question, are you talking about SOAPAction header s:Header? if not kindly suggest how to add "SOAPAction header" in blow request
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ISecurityService/Login</a:Action><a:MessageID>urn:uuid:b540c97a-c6ef-4825-94d8-9d91c1ab5492</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">http://130.0.203.4/AFSServices/SecurityServicePOS.svc</a:To></s:Header><s:Body><Login xmlns="http://tempuri.org/"><requestObject xmlns:d4p1="http://Abtsol.Core.Entities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><d4p1:Object xmlns:d5p1="http://AFS.Business.Contracts"><d5p1:applicationcde>00002</d5p1:applicationcde><d5p1:workflowPassword>admin</d5p1:workflowPassword><d5p1:workflowUserName>admin</d5p1:workflowUserName></d4p1:Object></requestObject></Login></s:Body></s:Envelope>
Coordinator
Apr 24, 2013 at 7:08 AM
Sorry, I wasn't very clear, I was talking about HTTP headers, like this:

POST http://127.0.0.1:8082/TestAsmxService.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.4927)
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://contoso.com/asmxservice/test/SomeFunction"
Host: 127.0.0.1:8082
Content-Length: 316
Expect: 100-continue

Regards

Rob
Apr 24, 2013 at 8:28 AM
Thanks Rob

I have changed all HTTP header like below but no success

POST http://130.0.203.4/AFSServices/SecurityServicePOS.svc HTTP/1.1
Accept: */*
Referer: http://130.0.203.4/posweb/ClientBin/Silverlight/AFS.UI.Silverlight.xap
Accept-Language: en-US
Content-Length: 883
Content-Type: application/soap+xml; charset=utf-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
SOAPAction: "http://tempuri.org/ISecurityService/Login" 
Host: 130.0.203.4
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=q13abrnbsynnrodjjqi1e2jx
Coordinator
Apr 27, 2013 at 8:22 AM
I added the headers on my own copy of your log file and the file parsed fine. I assume it is failing at a later stage of the process. Can you tell me what error you get? You may also need to let me have the assemblies that contain the contracts and types in order to try to repro the problem.

Regards

Rob
Apr 29, 2013 at 6:18 AM
Edited Apr 29, 2013 at 6:21 AM
Greetings,

Rob I have sent you the required files in private message. Let me know if more information is required on this.

Regards,
Zohaib
Coordinator
Apr 30, 2013 at 3:14 PM
This appears to be because the assemblies are for .NET 4.0. I have started the process of updating the tool to work with .NET 4.0, not quite sure how soon I can release the update though.

Regards

Rob