*Result and *ResultSpecified parameters in WCF service?

前端 未结 6 359
[愿得一人]
[愿得一人] 2021-01-03 11:19

In my WCF Service I have a function, for example:

bool ValidateLogin(string user, string password)

after I hosted it in windows azure and a

6条回答
  •  再見小時候
    2021-01-03 11:42

    Setting the XmlSerializerFormat Style to RPC did the trick for me. I.e.

    [OperationContract, XmlSerializerFormat(Style = OperationFormatStyle.Rpc)]
    bool ValidateLogin(string user, string password)
    

    It changes the way the wsdl is generated, from:

    
        
    
    
        
    
    

    To:

    
        
        
    
    
        
    
    

    This article propose a different solution, but also contains some extra explanations: http://www.codeproject.com/Articles/323097/WCF-ASMX-Interoperability-Removing-the-Annoying-xx

提交回复
热议问题