WCF Service Proxy throws exception when more than one parameter is used in [OperationContract] method

后端 未结 4 1062
忘了有多久
忘了有多久 2020-12-10 06:12

I have a WebServiceHost that is being used to host some web services in a console app. I added a service reference to it in my client app and create the proxy like so:

4条回答
  •  感动是毒
    2020-12-10 06:27

    Two solutions I found:

    If you can remove

    From

    
      
        
          
        
      
    
    

    If you cannot, I had to add the attribute

    [WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest)]
    

    Above the Operation Contact Method

提交回复
热议问题