Making a value-type property optional in WSDL generated by ASP.NET

Discussion in 'ASP .Net Web Services' started by Bryan, Aug 4, 2005.

  1. Bryan

    Bryan Guest

    Hello all,

    Is there a way to mark a value-type property on a class as optional when
    being used as a parameter to a web service? The problem is that I don't want
    the consumer of the web service to be required to set a value on this
    property. In the set{} of the property I have some logic that should only
    happen if the consumer explicitly wants it to.

    On another note, is there any way to control the order that properties are
    deserialized by ASP.NET? Say I require that property B is set before I can
    set property A. Can that be achieved?

    Bryan, Aug 4, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.