WCF, Silverlight, Fiddler ומה שביניהם

Thursday, January 6, 2011

  שלמה העלה פוסט היום בנושא Binding ב-WCF ובו הוא הציג כיצד ניתן להשתמש ב-Custom binding ליצירת שירות שמעביר הודעות בינאריות מעל HTTP. שלמה ציין שמקרים אלו נתמכים במצבים בהם גם הקליינט וגם השירות כתובים בדוטנט – אחד המקרים האלו הן אפליקציות Silverlight שברוב המקרים מתקשרות עם שירותים באמצעות BasicHttpBinding (כי רוב ה-bindings האחרים לא נתמכים). במקרים כאלו ניתן לשפר את הביצועים של תעבורת הרשת ע”י הגדרת custom binding המשלב binary encoding כפי ששלמה הציע ובכך לאפשר ל-Silverlight ולשירות ה-WCF להעביר הודעות יותר מהר ביניהם. הבעיה היחידה שקיימת כאשר עובדים בצורה זו היא התמודדות עם שגיאות בתעבורה. בגלל הבעיות המוכרות של...

Communicating From Silverlight 4 – My session at the SDP

Wednesday, December 30, 2009

Today at the SDP I gave a lecture on the different ways we can communicate with the web from Silverlight 4. We talked about the different HTTP Stacks Silverlight offers and the many communication types & technologies you can use, such as: Simple http requests Restful services Syndication (Rss/Atom) feeds ASMX Web Services ...

Handling SOAP Faults In Silverlight

Tuesday, December 8, 2009

In the past, when we tried to connect from Silverlight 2 to WCF Services that threw exceptions (every now and then), we got the famous “Not found” Communication Exception. The reason we didn’t get a SOAP Fault is that WCF returns SOAP Fault responses with a HTTP code of 500 – this is according to SOAP protocol, but the browser doesn’t allow 500 responses to be returned to Silverlight – it replaces them with a CommunicationException and thus hides the real fault that returned. When we moved to Silverlight 3,...
one comment

Building Silverlight applications with Team Foundation Build

Friday, August 7, 2009

This week, I’ve tried to build a team build for a project I’m working on. I found it weird that for some reason, building the server solutions worked just fine, but I wasn’t able to build the silverlight solutions - it always failed. Looking a bit in the log file, I saw that the build failed because it couldn’t copy the .XAP files of the silverlight application from the ClientBin folder. Checking a bit further and I found that the files were never created ! After searching the internet I found out the...
no comments

Attaching events to Silverlight’s DataTemplate

Thursday, January 1, 2009

If you've used DataTemplates in Silverlight 2, you've noticed that when defining it in a resource of a control, the attached event should be placed in the .cs file containing that control. If it's a UserControl, it is logical for it to be in the usercontrol's .cs file, usually either coding for that event in the user control itself or exposing the event as an event exposed by the user control. So far so good, but what happens if we have a general DataTemplate that is used in...
2 comments

Silverlight toolkit’s AutoCompleteBox and the BIDI TextBox

Sunday, December 14, 2008

First of all, it as good time as any to remind everyone that Microsoft’s Silverlight 2.0 doesn’t support Right-To-Left (RTL) text writing. God knows why a solution that exists for over 15 years (the logical-visual solution for RTL languages) couldn’t be introduced into Silverlight, and as far as I know it’s not even planned for version 3.0 of SL, so all of you who are planning on writing applications in hebrew/arabic/… – beware ! There is a semi-solution today that supports RTL languages, why “Semi” you ask? Because unfortunately the control that supports...
6 comments

Silverlight 2 can pass client certificate

Sunday, November 2, 2008

When we started working with Silverlight 2 Beta 1, we’ve noticed that there is a problem accessing services which reside on a secured server (secured with CheckPoint Secure Remote) – The silverlight client just didn’t pass the client cerificate needed to access the server. The solution to this was to access all our services from JavaScript, because IE can pass the client certificate to the server. This of course caused us to start thinking on how to write a framework that will allow calling a JavaScript proxy as easy as calling a proxy...
no comments