469,636 Members | 1,555 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,636 developers. It's quick & easy.

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


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


May 1 '07 #1
1 2885
I believe you can use <XMLIgnore()to make it optional and mention this in
the description for the webservice or you can always overload the webmethod.

May 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Clark Nu | last post: by
2 posts views Thread by Steve | last post: by
reply views Thread by shai.halevi | last post: by
6 posts views Thread by .rhavin grobert | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.