简体   繁体   English

从WSDL生成服务合同

[英]Generating Service Contract from a WSDL

I have a WSDL that I need to generate a ServiceContract (OperationContract, DataContract)... 我有一个WSDL,我需要生成一个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. 我找到了一种方法为ASMX WebServices做到这一点,但似乎无法在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 但是生成的接口不会反序列化进入的调用,因此服务实现的所有请求参数都为null

Contract first tool for WCF WCF的合同第一工具

http://wscfblue.codeplex.com/ http://wscfblue.codeplex.com/

确保您拥有与当前服务定义匹配的最新WSDL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM