Inherited properties do not appear in soap sample on asmx file

前端 未结 3 699
小鲜肉
小鲜肉 2020-12-10 15:02

I have two classes, WebServiceRequest and OrderRequest. Each class has properties. OrderRequest inherits from WebServiceRequest - like so:

    public class W         


        
3条回答
  •  青春惊慌失措
    2020-12-10 15:40

    I managed to stumble back-asswords into the solution for my problem, even after Microsoft confirmed it as a bug (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=520200) and I had given up and marked John's answer as accepted. Here's the solution:

    http://code.msdn.microsoft.com/WsdlHelpGenerator/Release/ProjectReleases.aspx?ReleaseId=412

    Go there, download the file, then add the following line under the system.web section of your Web.config file:

    
     
    
    

    The href property should point to the relative location of your file within your project. Thanks for your help John.

提交回复
热议问题