Create a Web Service with .NET WCF. Plink, plink, done. Create a simple Java client to call that web service. Using the default Java SE 7u2 SDK + runtime downloadable from Oracle, you run wsimport to import the service WSDL and generate proxy classes. You write a little code to instantiate the service class and [...]
Programming
Ah, WPF. You’ve dotted your tees and crossed your eyes and your data bound control is still not showing any data from your collection. You set a breakpoint in the property getter that is providing the collection data, the breakpoint gets hit and returns your data, but the data doesn’t appear at the other end [...]
I’ve been exploring the recent CTP5 release of .NET Entity Frameworks 4.0. I find the advancements in the “Code First” model of entity modeling encouraging, though I am a little concerned about discoverability. If things just magically happen when you name your properties just the right way, how will you know how to diagnose and [...]
If you’re trying to generate classes or a dataset from an XSD schema file using the Visual Studio XSD.EXE command line utility and the only thing you’re getting out of XSD.EXE is an error message of Error: There was an error processing ‘xyz-schema.xml’. – DataSet cannot instantiate an abstract ComplexType for the node . [...]
If you do a web search for how to use the LINQ XPathSelectElement function, the example code you will find falls into two categories: Those that don’t use namespaces at all, and those that use the same namespace prefix in the query as in the original document. Using no XML namespace at all when querying [...]
I just heard the news announced at PDC that the Managed Extensibility Framework, or MEF, is now slated to be included in Silverlight 4. Great news! I did a bit of proof of concept work using MEF about a year ago. MEF is all about composition of providers and consumers. MEF’s main job is to [...]
When you’re writing a rich Internet application (RIA) in HTML and JavaScript, sometimes you need to programatically place a DOM element relative to the right or bottom edge of the visible browser window. For example, if you want to popup a help balloon near an item of interest, you probably want to make sure that [...]
If software programming logic and statements were viewed as literature, what form of literature would yours be? Novel: multiple independent story lines that you hope will eventually converge to make a point. Short story: a limited number of characters with only one point to make Essay: tell ‘em what you’re going to say, say it, [...]
Have you ever run into a situation where you need to bridge between code that uses the old custom EventHandler pattern for events and code that wants to use the new parameterized EventHandler<> code style? EventHandler style delegates are not assignment compatible with EventHandler<> delegates. You’ll run into this if you’re writing a new API [...]
About two days ago, my Google homepage suddenly became hostile toward me. By hostile, I mean my IE7 browser is suddenly reporting a bunch of JavaScript errors and faults when loading the Google homepage that it wasn’t reporting before. Whenever I visit my Google homepage now, I have to wade through 5 or 6 JavaScript error [...]
I’ll be speaking at the next Bay.NET user group meeting this Wednesday Dec 17 on Live Mesh application development using Live Frameworks. There will be a few slides, mostly for the infamous but necessary system stack diagrams, but the majority of the session will be spent showing and running code. I’ll open by exploring the different types of applications [...]
SondreB asks I’m working on a scenario where I need to process mesh data at intervals. My concern is how I can do delegated authorization in a secure way. How and where do I store the user credentials (or their auth token) in my Windows Azure service? Is there a way of doing interval based [...]
A few folks I’ve talked to in the Live Frameworks CTP forum or in email have expressed a little bit of confusion or a lot of surprise at what you can do with the Live Mesh platform and Live Frameworks. Let’s run through a few of scenarios to give you an idea of the breadth of options you have to leverage Live [...]
Oran Dennison has been dissecting the new Live Framework Tools for Microsoft Visual Studio (“VS tools”) and raised a few questions about how the VS tools are uploading Live Mesh application files into the cloud. “Why does VS upload files to the cloud individually instead of as one zip file?” VS uploads individual files to the cloud because [...]
We’ve discovered a bug in how the Live Framework Tools for Microsoft Visual Studio (“VS tools”) set permission values for Live Mesh-enabled web apps uploaded using the VS tools. This results in your mesh app running with fewer permissions than the intended default permission set, which will prevent your app from modifying mesh feeds for contacts or news. [...]
In looking back at yesterday’s post on Windows Azure and Live Framework Tools I suddenly realized I didn’t provide any links to content about the VS tools I work on! Let’s see if we can remedy that… Live Framework SDK and Tools (dev.live.com) Getting Started using the Live Framework Tools (msdn.microsoft.com) Cloud Computing Tools Technology [...]
Yesterday at PDC Microsoft unveiled Windows Azure, a new platform for global scale distributed computing services, often called “cloud computing”. Today Microsoft rolled out tools for creating apps that use Live Services, access the same Mesh Objects you see in Live Mesh, or execute in the Windows Azure cloud. Mesh-enabled web applications can even update themselves thanks to Feedsync-enabled Live Services [...]
Dion Almer of Ajaxian fame has announced he is leaving Google to head up a new developer tools group at Mozilla with longtime friend and Ajaxian cofounder Ben Galbraith. The two are quite the dynamic duo in the web development sphere and should bring a lot of energy and fresh ideas to the table in [...]
The second major version of Microsoft’s Silverlight web platform, featuring new UI controls and a lot more, has been released. Read all about it in Scott Guthrie’s post.
Here’s a quick note for a solution I discovered the hard way that isn’t covered well in the MSDN documentation: If you are writing a Visual Studio extension and adding a menu item to an existing menu (such as the project context menu) using a .vsct (Visual Studio XML Command Table) file, the priority field of [...]