What’s new in WCF 4.5? a single WSDL file

September 17, 2011

6 comments

This is the second post in the WCF 4.5 series, and this time we’ll talk about WSDL files.


Previous posts:


1. What’s new in WCF 4.5? let’s start with WCF configuration


A few weeks ago, I posted about the difference between exposing the service metadata through WSDL and through a MEX endpoint. One of the things I noted in the post was that the metadata exposed through a WSDL file is actually one part of the overall metadata – in addition to the WSDL file, there is usually an additional set of files, XSD files, that contain the data contracts of the service. For WCF 4 and previous versions, the schema part in the WSDL is a set of import directives for additional files:


image


So what has changed in WCF 4.5? When you browse to a WCF 4.5 service’s metadata URL, you will see the following WSDL options:


image


In addition to the ?wsdl option, we now get another option – ?singleWsdl. The singleWsdl link will return a single WSDL file, containing all the schemas in it:


image


Each of the schema elements contains the schema that was previously imported from an external file.


So in my previous post, where I listed the reasons why to use MEX instead of WSDL, we can omit the first reason – “If you want to make as less calls as possible to your service in order to get its metadata (one call instead of several).”


Stay tuned for more posts about the new features of WCF 4.5. You can also follow me on Twitter (@IdoFlatow) to get updates as soon as new posts are published.


The RTM of .NET 4.5 is still to come, and I assume many of you are still adjusting to WCF 4. If you want to learn more about the new features of WCF 4, come to my session at Visual Studio Live! 2011 in Redmond (October 17-21).


Also, if you are an MCT and reside in the US, come hear my session about WCF 4 at the MCT 2011 North-America Summit that will be held in San-Francisco (October 19-21).


Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

6 comments

  1. BuntingOctober 19, 2012 ב 10:57 pm

    This post is really a good one it helps new the web people, who are wishing for blogging.

    Reply
  2. MarkleyOctober 24, 2012 ב 11:25 am

    Yes! Finally something about best discount cigarettes.

    Reply
  3. BarringerNovember 3, 2012 ב 3:35 am

    Hi! Would you mind if I share your blog with my myspace group?

    There’s a lot of people that I think would really enjoy your content. Please let me know. Thanks

    Reply
  4. cmyojtgccza@gmail.comDecember 24, 2012 ב 8:09 am

    Both reveal the hidden thoughts of the perpetrators.Posted by: Yonatan | Nov 16, 2012 6:46:12 PM | 39

    Reply
  5. FortierJanuary 6, 2013 ב 4:07 pm

    Those endorphins are our natural anti-depressant, and a bonus is that they reduce the intensity of pain.
    An ar�te extends to the left of the horn and three cirques are visible below.
    I kept reading the negative stories about how bad and evil I was for what I said.
    Postpartum depression has many features in common with major depression.
    Now before you roll your eyes and go'”Oh great, more exhausting therapy. The non depressed spouse typical expresses their frustration with criticism, which makes the depression worse.

    Reply
  6. BorgesJanuary 28, 2013 ב 5:52 pm

    Well written post. Highly recommended.

    Reply