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 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.
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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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 ...
|
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.
...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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)...
|
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
|
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...
|
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...
| |