HighTechTalks DotNet Forums  

SQLParameter array in Web Service

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss SQLParameter array in Web Service in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Doogie
 
Posts: n/a

Default SQLParameter array in Web Service - 03-26-2007 , 06:04 PM






I was finishing a design on a web service and at the review a question
was raised about my using a SQLParameter array as a parameter to a
method in the web service. The preference the person had was to use
xml instead. If I understood him correctly he indicated that DotNet
converts everything to xml anyways in a web service and so by using
the array I might be creating some unnecessary overhead?

I was curious about how I could determine the actual amount of
overhead that might be caused by something like this?


Reply With Quote
  #2  
Old   
John Saunders
 
Posts: n/a

Default Re: SQLParameter array in Web Service - 03-27-2007 , 01:49 PM






"Doogie" <dnlwhite (AT) dtgnet (DOT) com> wrote

Quote:
I was finishing a design on a web service and at the review a question
was raised about my using a SQLParameter array as a parameter to a
method in the web service. The preference the person had was to use
xml instead. If I understood him correctly he indicated that DotNet
converts everything to xml anyways in a web service
It's not a matter of .NET doing the conversion. Web Services almost always
use XML.

You should not use platform-specific types in a web service if you intend
any other platform to understand them. A Java application will not
understand SQLParameter.

Out of curiosity, why are you passing SQLParameter values in a web service?

John




Reply With Quote
  #3  
Old   
Doogie
 
Posts: n/a

Default Re: SQLParameter array in Web Service - 03-28-2007 , 02:34 PM



Hi John,
The short version is that we were planning a type of process to send
stored proc calls to a table in our database that are "process heavy"
and take a while to execute. A SQL job was going to pick them up and
actually run them. So we were sending the proc name, and info on the
parameters to the web service which would then insert that info into a
table that the SQL job would read and then execute accordingly. Thus
I need an array of some kind that users of the web service can shoot
me off their parameter info.

But, since I posted the question, the design was put on hold. Seems
they want to wait until we get SQL 2005 completely installed on all
our sql servers first.

Thanks though for the input!



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.