asmx asp.net webservice return multiple classes wsdl
问题 We are developing a webservice for a client. We are not supose to throw SoapExceptions, so instead, we catch every exception server side, and return a custom Exception class. Public Class Order ... End Class Public Class MyException ... End Class And then in my webservice a function (webmethod): Public Function GetOrder(ByVal id As Integer) As Object Try ... Return New Order() Catch ex As Exception Return New MyException(ex.Message) End Try End Function The problem now is, that since my