WCF binary messages
-
Sunday, December 05, 2010 8:10 AMHi,
I'm currently evaluting VS 2010 Load testing.
The application evaluted is Silvelight based web application.
I noticed that some of the POST messages sent from the browser are binary messages. However, VS records them as text. And that's probably is causing the error I receive in return.
The message is recorded is WCF binary
Could you please recommend a good solution for WCF binary messages?
Thanks!
All Replies
-
Sunday, December 05, 2010 12:43 PMModerator
Hi,
Can you please see if this helps: http://blogs.msdn.com/b/mahipalkante/archive/2010/04/07/web-test-plugins-for-web-service-messages.aspx
Thanks, Rubel
http://blogs.msdn.com/rubel/ -
Sunday, December 05, 2010 3:17 PMHi,
Thanks for your reply.
I tried this plugin and it do no work well with the current system under test. There was a different post about this plugin failed to do extraction rule, and I actually found a way with the help of Edwer Fang, for receiving parameters of a post message request without this pluginhttp://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/f7da2a8e-b13c-4db7-b759-7ffc4263a98c
My current issue is recording the messages sent from the browser as binary. Only binary message recording
Sending binary message is not unique for WCF, so is there other alternative?
Thanks! -
Sunday, December 12, 2010 1:14 PMHi,
Is there a way sending a Post message with a binary data ???
The current String Body of the post message request looks like:@Loginhttp://tempuri.org/@userName�albertnowa@yahoo.com@password�123456@ isPersistent�@customData.nil� i)http://www.w3.org/2001/XMLSchema-instance
Note that there are ileagel charecters at the string recorded by VS.
Is there a way the string body to contain binary information as I can record by fiddler or any other sniffer?
As been said at the above plugin to not work as expected with the application tested. -
Thursday, December 16, 2010 3:20 PM
Hi,
Are you looking for WCF message sending options?(MTOM, Text, Binary)
Are you looking for an alternative to WCF for reading this message?
bill boyce -
Monday, February 21, 2011 8:55 AM
Hi All,
My load testing application is Silverlight Web. WebServices plugin(ver2.0) is showing the request and response parameters for normal DomainService calling. But this plugin is not showing the request and response parameters for LinqToEnitiesDomainServices(Enitity Framework) method calling.
This is my sample request http://localhost:/applicationname/client/AuthenticationService.svc/binary/Login
This request is not showing the SOAP message or Query parameters inside the web service tab text view. This AuthenticationService is implemented from LinqToEntityDomainService. Users Table is in SQLServer.Will microsoft give any updated plugin for this scenario ASAP? If this problem is solved my company will get license for visual studio2010 ultimate. Any help appreciated!
Thanks Vijkath -
Monday, February 21, 2011 7:27 PM
Hi,
You could create a custom IHttpBody classe to send binary request body in the web test.
Please refer http://blogs.msdn.com/b/joshch/archive/2005/08/24/455726.aspx for more details.
Thanks,
Anuj
-
Wednesday, March 02, 2011 5:21 AM
hi Dan100,
You could use fiddler2 with Inspector Plugin and WCF Binary Plugin to see the Binary content of Post messgae. We have Used and can see the login parameter tags in fiddler2 WCF Binary Tab.
But Visual Studio 2010 Web test Response body is showing Fault Tag instead of LoginReponse Tag. AnyIdea how to fix this? Thanks in Advance.
Thanks Vijkath -
Wednesday, March 02, 2011 11:14 AM
Hi All,
Its WORKING NOW !!!
We have to do some setting in IE Tools MANAGE Add On for Web Test Recorder and Its helper as ENABLED. Now We can see the BinaryHttpBody in our requests and the correct response body. Thanks guys.
Thanks Vijkath -
Friday, June 29, 2012 9:08 AM
Hi Vijkanth.
which settings did you apply in IE tools Add on for recording web test, that you were able to see the BinaryHttpBody in the request.How it can can be done??
My concern is creating web test for a flex application and then generating its code(generate code for web test) and that coded web test should have binary streams..I am pasting the sample of code below..
WebTestRequest request23 = new WebTestRequest("http://153.71.91.131:9082/project24/messagebroker/amf");
request23.Method = "POST";
request23.QueryStringParameters.Add("", "FD9A95A7-9F5A-23BB-07AF-A2D01C53D40A", false, false);
BinaryHttpBody request23Body = new BinaryHttpBody();
request23Body.ContentType = "application/x-amf";
request23Body.Data = new byte[] {
0, 3, 0, 0, 0, 1, 0, 4, 110, 117, 108, 108, 0, 2, 47, 52, 0, 0, 1, 58, 10, 0, 0, 0, 1, 17, 10, 129, 19, 79, 102, 108, 101, 120, 46, 109, 101, 115, 115, 97, 103, 105, 110, 103, 46, 109, 101, 115, 115, 97, 103, 101, 115, 46, 82, 101, 109, 111, 116, 105, 110, 103, 77, 101, 115, 115, 97, 103, 101, 13, 115, 111, 117, 114, 99, 101, 19, 111, 112, 101, 114, 97, 116, 105, 111, 110, 9, 98, 111, 100, 121, 19, 109, 101, 115, 115, 97, 103, 101, 73, 100, 17, 99, 108, 105, 101, 110, 116, 73, 100, 21, 116, 105, 109, 101, 84, 111, 76, 105, 118, 101, 23, 100, 101, 115, 116, 105, 110,
97, 116, 105, 111, 110, 15, 104, 101, 97, 100, 101, 114, 115, 19, 116, 105, 109, 101, 115, 116, 97, 109, 112, 1, 6, 43, 97, 117, 116, 104, 101, 110, 116, 105, 99, 97, 116, 101, 80, 114, 105, 110, 99, 105, 112, 97, 108, 9, 7, 1, 6, 11, 97, 100, 109, 105, 110, 6, 21, 97, 100, 109, 105, 110, 49, 64, 35, 36, 37, 6, 3, 49, 6, 73, 48, 66, 54, 68, 52, 55, 54, 70, 45, 56, 65, 65, 56, 45, 50, 67, 65, 53, 45, 49, 55, 50, 55, 45, 65, 50, 68, 48, 66, 66, 51, 50, 55, 69, 57, 65, 1, 4, 0, 6, 49, 117, 115, 101, 114, 65, 117, 116, 104, 101, 110, 116, 105, 99,
97, 116, 105, 111, 110, 70, 97, 99, 97, 100, 101, 10, 11, 1, 21, 68, 83, 69, 110, 100, 112, 111, 105, 110, 116, 6, 11, 109, 121, 65, 109, 102, 9, 68, 83, 73, 100, 6, 73, 56, 49, 55, 68, 69, 55, 50, 48, 45, 54, 57, 49, 66, 45, 67, 55, 65, 68, 45, 50, 54, 68, 48, 45, 70, 57, 53, 67, 55, 55, 54, 65, 66, 57, 52, 68, 1, 4, 0};
request23.Body = request23Body;
yield return request23;
request23 = null;Please tell me that how it can be achieved..If any body has done it before please let me know..
Thanks & Regards
Aanchal Sharma

