Skip to main content
Home Learn Videos Silverlight Videos How to Consume WCF and ASP.NET Web Services in Silverlight
Presented by:Tim Heuer
April 16, 2008 | Duration: 23:36
Login to Rate
:( Error
0 0
Select Your Format
Tim Heuer shows how to consume Windows Communication Foundation (WCF) and ASP.NET web services in Silverlight.
Member
9 Points
#1 April 18, 2008 4:50 AM
anyone else having problems viewing these in IE8?
11 Points
#2 April 18, 2008 3:51 PM
@revokin: It works pretty fine for me on Vista in IE8 (I run it in Ie7 compatibility mode tho).
The only thing off in the actual media player seems to be that when I go from maximized to normal, about three quarters of the time I get the control buttons in the bottom of the control area and one quarter of the time I get nothing. This seems to happen with all Silverlight video sites I have visited so far.
Guess it's beta ;)
3 Points
#3 April 18, 2008 4:26 PM
Hi,
Great sample. I am left needing help when using a more complex class as the return from my service. I have tried to use one of my own objects as the value returned from my WCF Service. I implemented it and it failed with what appears to be a serialization failure. So my question is, generally speaking, what types of objects will automatically serialize? Are there cases where I will need to manually use a SOAP Formatter to serialize my object or otherwise serialize the class myself before returning the value? I want to display my object in a DataGrid. My class fully implements IEnumerable, so it should work, but the problem might be that its property descriptors are: System.ComponentModel.PropertyDescriptor. It looks to me like this is not a serializable class. What is a good guideline to follow in designing an object to go from the WCF Service to the Silverlight application? Would testing the object through a SoapFormatter be a good guarantee that it will make the trip?
Eric
1380 Points
#4 April 18, 2008 7:49 PM
@eric: good question, i think in general you should be ensuring you provide a serializable class for your return properties. i haven't tested with the complex types you mentioned, but will start taking a look at advanced types as the framework evolves to beta 2 and beyond.
1102 Points
#5 April 19, 2008 5:39 PM
Tim,
Great video. Thanks for the info! I have an offtopic question though, can you please share the wallpaper you're using in the video? Can't seem to find it on the net...
Regards, Nathan
#6 April 19, 2008 9:02 PM
revokin.spaces.live.com/.../cns!7B303120CA7A98F4!159/
For some reason the media player is all messed up as shown in the image above.
#7 April 19, 2008 11:45 PM
@party42: timheuer-img.s3.amazonaws.com/slfade-1440.png (if you need a widescreen let me know -- it's my own creation, nothing official)
@revokin: i'm not seeing that problem (anyone else?) -- what operating system/browser/silverlight version do you have?
#8 April 20, 2008 3:41 AM
Silverlight v. 2.0.30226.2 IE8 in IE7 Emulate mode Vista Ultimate x64
#9 April 20, 2008 6:25 PM
@revokin: make sure you are running IE under 32-bit mode and see if that helps.
5 Points
#10 April 21, 2008 6:00 PM
Can you tell me how did you zoom on the VS.NET while still being able to select project templates? I normally use ZoomIt but the only thing I can use it for is to highlight things. Thanks in advance.
Life is so beautiful!!!
Success,
Niraj
You must be logged in to leave a comment. Click here to log in.