generate wcf server code from wsdl files

后端 未结 1 886
北海茫月
北海茫月 2021-01-25 12:53

Greetings, I would like to generate some contract based on wsdl file. I used svcutil but I suspect it generated it wrong as all contract methods have void returned type. Is ther

相关标签:
1条回答
  • 2021-01-25 13:19

    Generated operation contract is correct. You WSDL specifies request/response operation (= two-way) with empty response. ProcessMethodResponse element is wrapper element for the response message but it does not contain any subelements = void response.

    If you want to return ProcessMethodResponse you have to use message contracts. You can instruct svcutil to use message contracts by /mc or /messageContract switch.

    0 讨论(0)
提交回复
热议问题