473,399 Members | 3,106 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,399 software developers and data experts.

webservice limitations?

all,
while converting a .net class file to a xml webservice i have encountered
some problems. First I cannot seem to be able to pass optional parameters to
a web method. I have also found problems with the sqldatareader as a "byref"
parameter of a web method. This problem entails not being able to return a
datareader from a webservice. I also tried to return it via a function and
had no luck. Are these limitiations of xml webservices or am I not being
creative enough?

For some scenarios instead of using optional parameters I have created
overloaded functions and used the "messagename" property of the webmethod to
uniquely identify the individual function when publishing the webmethod.

I have not found any real solution for the sqldatareader problem.

Please help!
Nov 23 '05 #1
2 4872
Yes these are very much limitations of web services. So would even
argue this is by You can't pass anything by reference, nor do they
support optional parameters.

Nov 23 '05 #2
returning a dataReader from a webservice is like
sending someone an oceanliner for valentines day.

It doesn't make any sense.

The philosophy of webservices is message-oriented integration. you need to
think in terms of sending and receiving discrete messages, not sending and
receiving objects such as datareader.

check this:
http://webservices.xml.com/pub/a/ws/2003/09/30/soa.html
re: "optional params are not supported"
True, if you are thinking in terms of VB calls.
But not true, if you are thinking in terms of extensible messages, with
optional pieces of those messages. In other words, the message itself is
not optional, but the contents of the message may vary. You can do this
with webservices.

-Dino
"Keenan Newton" <ka*********@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Yes these are very much limitations of web services. So would even
argue this is by You can't pass anything by reference, nor do they
support optional parameters.

Nov 23 '05 #3

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

Similar topics

8
by: DraguVaso | last post by:
Hi, I'm new to WebServices, and I'm doing some tests (with a small VB.NET-application) to know the performance-difference between a WebService and the 'normal'-way of getting data (just...
6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
6
by: Brad | last post by:
I have a web service which returns a collection of class object (see below). I want to consume this service in another web application by binding it to a List control The data returns from the...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
2
by: Atul | last post by:
In my winform application, to access webmethod, we create a webservice proxy object. For the first time, when winform application is started, for creating proxy object(e.g. MyWebServiceProxy oProxy...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
2
by: Dave | last post by:
How can you pass an entire XML Document to a webservice (do you do this with a SOAP envelope body?). Say a supplier sends or posts the entire updated product & price list to your webservice. ...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.