Inherited properties do not appear in soap sample on asmx file

前端 未结 3 692
小鲜肉
小鲜肉 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:38

    It should not be necessary to use [XmlInclude].

    You seem to be judging this to be a problem because of the appearance of the help page (what you get in the browser when you hit the .asmx URL). Don't do that. Instead, look to see what is actually returned.


    Update: The OP created a Connect bug for this issue. This bug was resolved as "won't fix" on 1/11/2010:

    We have confirmed that the inherited properties do not show up in SOAP Sample on the browser and that is indeed a bug in the product.

    At this point, this area is in maintainance mode, and no active work is planned.

提交回复
热议问题