2

I have a WSDL that I need to generate a ServiceContract (OperationContract, DataContract)...

I have found a way to do it for ASMX WebServices but can't seem to find how to do it in WCF.

I have tried running

svcutil AuthPartnerWSDL.wsdl  /i /messagecontract /tcv:version35

but the resulting interface doesn't deserialize the call coming in so all the request parameters to the service implementation are null

kay.one
  • 7,622
  • 6
  • 55
  • 74
  • Small correction of terminology: what you're referring to as "webservices" are "ASMX Web Services", sometimes known as "ASP.NET Web Services". WCF services are web services if they use SOAP or REST. – John Saunders Jul 24 '09 at 00:45

2 Answers2

8

Contract first tool for WCF

http://wscfblue.codeplex.com/

kay.one
  • 7,622
  • 6
  • 55
  • 74
  • even then, why would it be down voted? isn't it a valid answer? – kay.one Jul 25 '09 at 15:50
  • It's valid, but if the answer was from someone else, it would be a fairly bad answer. It's not considereed good to just throw in a link. BTW, you might edit this answer to say a little more about this tool: why is it useful? How does it answer your question, etc. – John Saunders Jul 25 '09 at 16:01
  • Similar utility for VS2013, VS2017 here: https://github.com/WSCF/WSCF (VS2019 support TBD at the time of this comment) – AlbinoDrought May 23 '19 at 22:00
0

Make sure you have the most updated WSDL that matches the current service definition.

JP Alioto
  • 44,864
  • 6
  • 88
  • 112