Search
Thursday, November 20, 2008 ..:: Blendblog.net ::.. Register  Login
 Bloggers Minimize

 Print   
 Sponsors Minimize

 Print   
 Users Online Minimize
Membership Membership:
Latest New User Latest: areel
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 15

People Online People Online:
Visitors Visitors: 0
Members Members: 0
Total Total: 0

Online Now Online Now:

 Print   
 Welcome to blendblog.net! Minimize

If you are a developer or designer who is creating cutting edge user interface experiences using Microsoft Expression Blend you've just found a great resource!  The purpose of this site is to share our experience with this brand new product.  As with any new piece of software there is a ton to discover.  Bugs will be revealed and workarounds discovered, hopefully this can be a resource to share in the discovery process!

While this site will focus largely on Expression Blend, it will also encompass WPF, Visual Studio, Silverlight, and other .net 3.5 technologies as they relate to the creation of great software.

Please login using your Microsoft LiveID or register a new account.  Doing so will let you comment on any of the blog entries on the site.  We look forward to helping you in your endeavors as well as you helping others in theirs!  We'd love to have more bloggers on our site...if you are interested please register and contact us!


 Print   
 Webservices and Blend....tempuri.org problems Minimize
Location: BlogsSean Cullinan    
Posted by: Sean Cullinan 1/28/2008 4:21 PM
Blend offers great databinding to XML datasources, even online sources such as RSS feeds. Maybe I've missed something, but it does not seem to integrate quite as smoothly with .net webservices that return datasets. There is no way to simply reference your .net webservice in Blend and have it generate your templates etc the way there is for other XML datasources. I don't understand why this is the case, you would think that MSFT would be pushing integration with .net webservice above RSS and other competing mechanisms.

Anyhow, our workaround is to have our webservice write out xml files of its datasets to disk (myDs.writexml("c:\myproj\mydata.xml")). Unfortunately when they were written the opening tag was being written as since we didnt' have a real uri in our XMLNS. Blend played ok with this dataset, you could add it as an xml datasource, drag the table to the window and tell it to add a listbox, set up the datatemplate on the listbox and select your fields from that dataset. However, it wouldn't actually put the data in the listbox. After wrestling with this for a while I realized that this was because of the xmlns line. Removing this section from the xml on disk makes it work just fine in Blend. I can then build my templates and create my looks in blend, knowing that I am going to later bind my control to the actual webservice xml in code.

I wish Blend would throw an error instead of work partially when you have a situation like this....a "cannot find uri tempuri.org/myDS.xsd" would've gone a long way to pointing out the problem from the get-go.
Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 

  
 Search Minimize

 Print   
 Archive Minimize

 Print   
 Blendblog Survey Minimize
Our next client application will be written using:




Submit Survey  View Results

 Print   
Copyright 2008 by blendblog.net   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by DotNetNuke Corporation