Usage of Use="Optional" on a web method parameter...

Discussion in 'ASP .Net Web Services' started by Sinex, May 1, 2007.

  1. Sinex

    Sinex Guest

    Hi,

    I have a webmethod. It takes an int parameter. I want this to get
    serialized as an XMLAttribute...so I used the XMLAttributeAttribute
    decoration and it works fine. Now, I want to specify that this attribute is
    optional (in the schema it should show up as Use = "Optional"). How do I do
    this. And how will my method function if the client doesnt pass the
    parameter?



    ....Sinex
     
    Sinex, May 1, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ahmed Moustafa
    Replies:
    6
    Views:
    70,093
    grizzleybear
    Apr 17, 2012
  2. Otto Wyss
    Replies:
    6
    Views:
    450
    Jeff Flinn
    Nov 9, 2004
  3. John Harkin
    Replies:
    0
    Views:
    218
    John Harkin
    Apr 13, 2004
  4. UJ

    Optional parameter in a web service?

    UJ, Dec 27, 2005, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    1,150
  5. Varun Goel
    Replies:
    1
    Views:
    135
    Axel Etzold
    May 14, 2008
Loading...

Share This Page