strange behaviour calling method of wcf from powershell using new-webproxyservice

前端 未结 2 1630
自闭症患者
自闭症患者 2020-12-19 18:40

Can someone explain this to me:

I builded an really simple wcf service for testing purposes.
Consuming service from powershell using New-WebServiceProxy I found

2条回答
  •  时光取名叫无心
    2020-12-19 19:20

    Experimenting with your answer, and then finally discover this answer, it seems all your problems will go away if you simply add [XmlSerializerFormat] to the operation contract, and the method signature will return to normal. At least my problems did when testing against a 2.0 .Net framework and powershell.

提交回复
热议问题