473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help with Web methods....please.

Is it possible from a vb.net application, to pass an command object to web
method in a web service. I want to be able to invoke a stored procedure
remotely and get a dataset back from the webservice. The stored procedure
has several parameters, so I figure if I can construct the command object
and append the parameters to it, I could then pass the command object to the
service and get my results. I'm open for suggestions on other ways to
accomplish this.

Russ.
Nov 21 '05 #1
1 1010
Russell Verdun wrote:
Is it possible from a vb.net application, to pass an command object to
web method in a web service. I want to be able to invoke a stored
procedure remotely and get a dataset back from the webservice. The
stored procedure has several parameters, so I figure if I can
construct the command object and append the parameters to it, I could
then pass the command object to the service and get my results. I'm
open for suggestions on other ways to accomplish this.


It's not possible to pass Microsoft's command object because it can't be serialized by the XmlSerializer. However it is possible to create your own schema definition for what features of the command object you'd like to accept and then take an instance of that document and translate it to a command object inside of your web method.

Something like:

<command text="SELECT * FROM SomeTable WHERE someField > @someValue">
<parameters>
<parameter name="@someValue" value="1" type="xsd:int"/>
</parameters>
</command>

HTH,
Drew
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: max reason | last post by:
A method in one of my classes needs to call one of 256 other methods in the same class based on an unsigned 8-bit value (0x00 to 0xFF). How is this done? Everything I try generates errors. ...
3
by: outofmymind | last post by:
Hi, i've been practicing again......my exam is tomorrow :( and this is another practice question that my instructor told us to practice on, its not that easy, it was from a past final exam paper,...
3
by: rox59 | last post by:
I need anyone's help!!! i have to build a list of methods that will be available for decoupled components to add and call functions from another components, so far i am using delegates to add...
2
by: slizorn | last post by:
hi guys, i need to make a tree traversal algorithm that would help me search the tree.. basically i need to read in a text file... shown below H H,E,L E,B,F B,A,C A,null,null c,null,D
2
by: slizorn | last post by:
hi guys, i need to make a tree traversal algorithm that would help me search the tree.. creating a method to search a tree to find the position of node and to return its pointer value basically i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.