How to get exception information when calling JSON web service

后端 未结 2 1636
野的像风
野的像风 2021-01-21 00:09

In .NET 3.5, I had the following code:

[WebService(Namespace = \"http://kitchenpc.com/schemas/\")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
         


        
2条回答
  •  心在旅途
    2021-01-21 00:47

    The exception types are not serializable. Use FaultException instead.

    throw new FaultException(..);
    

提交回复
热议问题