Search
Sunday, September 07, 2008 ..:: Blendblog.net ::.. Register  Login
 Bloggers Minimize

 Print   
 Sponsors Minimize

 Print   
 Users Online Minimize
Membership Membership:
Latest New User Latest: mack1050
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 13

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

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   
 Phased Migration of Webservice to WCF service with Session support Minimize
Location: BlogsSean Cullinan    
Posted by: Sean Cullinan 6/2/2008 6:17 PM

I have a webservice that I use as an application tier for my main software project.  I want to be able to call it as a WCF service but still have my legacy non .net 3.5 apps call it as a regular web service.

Kirk Allen Evan's blog has a great article on how to do this here.  I did this, removed my web service reference in my WPF project, added a service reference to the same location and ended up with 2 errors in my code.  Rather than declaring my webservice object as mywebservicens.mywebservice I had to declare it as mywebservicens.mywebservicesoapclient.  I also had to create the object (new) in this fashion.  Once I did this I was up and running, EXCEPT that my webservice uses session variables.  After going around in circles thinking the problem was with the binding type (basichttpbinding) I discovered that the solution was pretty simple.  In the app.config I had to set allowCookies="true".

I also made some changes that were recommended on Juan Wajnerman's blog.  In my case I implemented suggestions 1 and 4 from his blog.  Finally, I had to set the maxBufferSize and maxReceivedMessageSize to a larger number as I am returning datasets that are larger than the default 65,536 byte value.  Once these changes were made my application worked great calling this as a WCF service.  My legacy applications still worked in the legacy manner and for now all is good.  Once I migrate all of my clients to WCF I will finish the job by following this link from msdn to properly move things into interfaces etc. the way a new WCF service would be.

Sean

Permalink |  Trackback

Comments (3)   Add Comment
Re: Phased Migration of Webservice to WCF service with Session support    By yry on 7/18/2008 3:34 PM
dy

Re: Phased Migration of Webservice to WCF service with Session support    By www.milliondollarmicro.com on 7/18/2008 3:34 PM
www.milliondollarmicro.com

Re: Phased Migration of Webservice to WCF service with Session support    By www.milliondollarmicro.com on 7/18/2008 3:37 PM
www.milliondollarmicro.com


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   
 Sponsors Minimize

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