473,324 Members | 2,239 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,324 software developers and data experts.

Can a webservice return a HashTable as a result?

I am trying to implement a webservice that returns a HashTable as a result

<WebMethod()> Public Function GetAppData() As Hashtable
Dim List As New Hashtable
'omitted code
Return List
End Function

but I get the following message. Can anyone tell me what is going on?

An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll

Additional information: Server was unable to process request. --> Method
wsCommon.GetAppData can not be reflected. --> There was an error reflecting
'GetAppDataResult'. --> The type System.Collections.Hashtable is not
supported because it implements IDictionary.
--
wr
Nov 23 '05 #1
4 12629
Hello WhiskyRomeo,

These are the supported data types... http://support.microsoft.com/default...326791Anything
not in these types will give a serialization error

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I am trying to implement a webservice that returns a HashTable as a
result

<WebMethod()> Public Function GetAppData() As Hashtable
Dim List As New Hashtable
'omitted code
Return List
End Function
but I get the following message. Can anyone tell me what is going on?

An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
system.web.services.dll

Additional information: Server was unable to process request. -->
Method wsCommon.GetAppData can not be reflected. --> There was an
error reflecting 'GetAppDataResult'. --> The type
System.Collections.Hashtable is not supported because it implements
IDictionary.

Nov 23 '05 #2
Dilip,

Thanks for the response.

Unfortunately the KB article in this link is no longer available. I too
have been looking for such an article and so far searches involving web
services, data types have failed.

WR

"Dilip Krishnan" wrote:
Hello WhiskyRomeo,

These are the supported data types... http://support.microsoft.com/default...326791Anything
not in these types will give a serialization error

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I am trying to implement a webservice that returns a HashTable as a
result

<WebMethod()> Public Function GetAppData() As Hashtable
Dim List As New Hashtable
'omitted code
Return List
End Function
but I get the following message. Can anyone tell me what is going on?

An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
system.web.services.dll

Additional information: Server was unable to process request. -->
Method wsCommon.GetAppData can not be reflected. --> There was an
error reflecting 'GetAppDataResult'. --> The type
System.Collections.Hashtable is not supported because it implements
IDictionary.


Nov 23 '05 #3
Hello WhiskyRomeo,
Try removing the anything from the url and u shud be good.Looks like my
reader mangled the url

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Dilip,

Thanks for the response.

Unfortunately the KB article in this link is no longer available. I
too have been looking for such an article and so far searches
involving web services, data types have failed.

WR

"Dilip Krishnan" wrote:
Hello WhiskyRomeo,

These are the supported data types...
http://support.microsoft.com/default...;326791Anythin
g not in these types will give a serialization error

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I am trying to implement a webservice that returns a HashTable as a
result

<WebMethod()> Public Function GetAppData() As Hashtable
Dim List As New Hashtable
'omitted code
Return List
End Function
but I get the following message. Can anyone tell me what is going
on?
An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
system.web.services.dll

Additional information: Server was unable to process request. -->
Method wsCommon.GetAppData can not be reflected. --> There was an
error reflecting 'GetAppDataResult'. --> The type
System.Collections.Hashtable is not supported because it implements
IDictionary.

Nov 23 '05 #4
Dillip,

I didn't see that. Anyway that is good information, but I previously got a
similar error when I tried to return an array of strings. Yet, this document
says that arrays of primitive types is supported.

Bill

"Dilip Krishnan" wrote:
Hello WhiskyRomeo,
Try removing the anything from the url and u shud be good.Looks like my
reader mangled the url

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Dilip,

Thanks for the response.

Unfortunately the KB article in this link is no longer available. I
too have been looking for such an article and so far searches
involving web services, data types have failed.

WR

"Dilip Krishnan" wrote:
Hello WhiskyRomeo,

These are the supported data types...
http://support.microsoft.com/default...;326791Anythin
g not in these types will give a serialization error

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I am trying to implement a webservice that returns a HashTable as a
result

<WebMethod()> Public Function GetAppData() As Hashtable
Dim List As New Hashtable
'omitted code
Return List
End Function
but I get the following message. Can anyone tell me what is going
on?
An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
system.web.services.dll

Additional information: Server was unable to process request. -->
Method wsCommon.GetAppData can not be reflected. --> There was an
error reflecting 'GetAppDataResult'. --> The type
System.Collections.Hashtable is not supported because it implements
IDictionary.


Nov 23 '05 #5

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

Similar topics

0
by: jerome | last post by:
Hello, I would to use a HashTable in a Webservice (i want that my WebMethod take a hashTable in Parameter) My compilation returns the error message (it's a translation): "Hashtable type is...
7
by: Peter Kirk | last post by:
Hi I am trying to write a web service. This web service is a "generic webservice" for our solution - that is, it should be able to return different data depending on who calls it. For...
1
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
4
by: jens Jensen | last post by:
Hello, I need to call a webservice with an System.Xml.XmlDocument objet and read the return value into and System.Xml.XmlDocument. The webservice was written with an oracle tool and wrapped...
1
by: Matt Kemmerer | last post by:
I'm trying to return a HashTable froma WebMethod. This fails with a not supported method because HashTable implements IDictionary. What I'm doing right now instead is stuffing my data into a...
2
by: =?Utf-8?B?S2FseWFu?= | last post by:
Hi, I have to make multiple calls (about 400K) to a webservice which returns a string. And currently it takes about a week to make all the calls. Instead of waiting for the webservice result ...
1
by: =?Utf-8?B?d2R1ZGVr?= | last post by:
I have a web service hosting a WCF library, which works fine but produced a strange signature when interacting with vs 2005/2.0 clients. My method takes 3 strings and returns a bool as below. ...
4
by: Jonathan | last post by:
I have a SQL stored procedure for adding a new record in a transactions table. It also has two return values: CounterID and IDKey. I want to create a webservice that accepts the 10 input...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.