Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2005

Tip: Looking for answers? Try searching our database.

Creating a Web Service that calls a SP with optional params

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ross - 06 Aug 2005 00:06 GMT
Hi folks

This is just a general question.

Suppose I have a SP that has several params and this includes one optional
param.

If I have all the params as args for the WS, and suppose for a particular
case there is no data in the calling app for the optional param in the SP
(note that there are no optional params for the WS because of SOAP).

Would the following approach work?

For the calling app - have a value for the optional SP param set to a value
that will never happen (eg say 0 for an int datatype that is say a foreign
key).

For the WS - have some code included that would check for that value and
then in the call to the SP - dont include a value for the optional param.

Hope somebody can help.  Thanks in advance.

Kind regards

Ross Petersen
Sherif El-Metainy - 06 Aug 2005 23:19 GMT
Yes, it would work.
> Hi folks
>
[quoted text clipped - 22 lines]
>
> Ross Petersen
Ross - 07 Aug 2005 07:51 GMT
Thanks Sherif

Your blood's worth bottling.

Kind regards

Ross Petersen

> Yes, it would work.
> > Hi folks
[quoted text clipped - 23 lines]
> >
> > Ross Petersen

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.