Elton Stoneman

  Home  |   Contact  |   Syndication    |   Login
  120 Posts | 0 Stories | 3602 Comments | 0 Trackbacks

News

Archives

Post Categories

[Source: http://geekswithblogs.net/EltonStoneman]

If you're hosting WCF services in IIS and try accessing the WSDL using ServiceDescriptionImporter.Import, you'll get an error saying Unable to import binding BasicHttpBinding_IXyzService…

WCF separates out its schemas into logical components, which ServiceDescriptionImporter and other clients (including the ESBSimpleSamples ServiceClient generator) can't work with, as they're expecting a single flat WSDL.

Christian Weyer from Thinktecture has a solution here: Improving WCF Interoperability: Flattening your WSDL. If you download and build his sample project, copy Thinktecture.ServiceModel.Extensions.Description.dll to your service bin folder and amend your .svc description to use the Thinktecture factory:

<% @ServiceHost Language=C# Service="Xyz.XyzService" Factory="Thinktecture.ServiceModel.Extensions.Description.FlatWsdlServiceHostFactory " %>

- this will return a flattened WSDL, so tools expecting one file will work correctly.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Wednesday, July 30, 2008 12:23 PM

Feedback

# re: Flattening WSDL from WCF Services 4/30/2010 2:25 PM Staff Handbook
I struggle to use IIS sometimes so will bookmark this page for future reference. Thanks a bunch Mr Elton!

# re: Flattening WSDL from WCF Services 5/12/2010 10:13 AM Cool Computer Tricks
You have to register the 'behaviour element extension' or you get problems with this method...

# re: re: Flattening WSDL from WCF Services 5/12/2010 3:12 PM Awsome Stuff
I didn't have any problems using the method though and I didn't register the extension?

# re: Flattening WSDL from WCF Services 5/13/2010 4:07 PM Chris
Strange because I had lots of problems with it!

# re: Flattening WSDL from WCF Services 5/13/2010 4:08 PM Steven Davis
Me tooooo!!!!

# re: Flattening WSDL from WCF Services 5/26/2010 2:40 AM platinum protection35
That’s pretty good article, I really like the tips you have given..Thank you so much for sharing this information. I have bookmarked this page for future use.

# re: Flattening WSDL from WCF Services 6/30/2010 9:35 AM Book App
I am still having problems please help:S

# re: Flattening WSDL from WCF Services 7/7/2010 6:20 AM Flavio Santos
Works great!!

# re: Flattening WSDL from WCF Services 7/10/2010 11:28 AM Yorkshire Wedding Photographer
Superb stuff, thank you for this insight!

# re: Flattening WSDL from WCF Services 7/29/2010 4:38 AM USANA-57
Pretty informative post and really impressive thinking,I like the presentation and your style of writing.Keep blogging.

# re: Flattening WSDL from WCF Services 11/16/2010 8:49 AM Search Engine Optimisation
Thanks again, always useful stuff I find on here.

# re: Flattening WSDL from WCF Services 11/16/2010 8:50 AM Daily Forex Trading
Always finding golden nuggets of information on here Elton, nice one!

# re: Flattening WSDL from WCF Services 11/25/2010 2:31 AM sikiş
Good post thanks for sharing.


# re: Flattening WSDL from WCF Services 12/14/2010 12:28 AM forex
thanks for the post.. good to be updated.

# re: Flattening WSDL from WCF Services 12/18/2010 1:13 AM Rob Poulos
The basic steps required to create a WCF service that is hosted in IIS.The hosting options for WCF services are significantly enhanced in Microsoft .NET Framework 3.0.Thanks..

# re: Flattening WSDL from WCF Services 12/22/2010 2:15 PM Trading Systems
Yup I had problems too.

# re: Flattening WSDL from WCF Services 12/24/2010 5:10 AM Tents
I think I will definitely get benefit from your content.I really like it.I m glad to find this type of site.

# re: Flattening WSDL from WCF Services 1/10/2011 12:14 AM college football bowl prediction
Can't find a solution to this online..

# re: Flattening WSDL from WCF Services 3/8/2011 5:59 AM Sam
This is a lame method. About time somebody at MS created a right-click solution.

# re: Flattening WSDL from WCF Services 5/4/2011 9:30 PM Orlando Monaco
I just wanted to thank you for this article. I have been trying to call a .NET WCF Web Service from KSOAP2 on Android and this resolved my problem. Thanks again..


# re: Flattening WSDL from WCF Services 5/13/2011 5:46 AM best online universities
I try to read the solution in Christian Weyer. I cannot fully understand the solution.

# re: Flattening WSDL from WCF Services 6/25/2011 6:58 AM marine battery charger
You wrote something that people could understand and made the subject intriguing for everyone. I love it.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: