Advertisement

07.11.2008 at 01:02PM PDT, ID: 23558521
[x]
Attachment Details

How do I add optional parameters to a webmethod?

Asked by imonfireDAMMIT in Web Services for .Net, Microsoft Visual Basic.Net

Tags: vb.net 8, Attribute "WebMethod" cannot be applied to a method with optional parameters.

I have a webmethod that I need to change so that I can pass it optional parameters. It doesn't seem to want to accept these parameters and before I write a new webmethod I would like to know if anyone knows how to get around this. The webmethod already takes in 5 parameters. Start Free Trial
[+][-]07.12.2008 at 12:14AM PDT, ID: 21988004

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2008 at 03:11PM PDT, ID: 21994455

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Services for .Net, Microsoft Visual Basic.Net
Tags: vb.net 8, Attribute "WebMethod" cannot be applied to a method with optional parameters.
Sign Up Now!
Solution Provided By: ororiole
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628