| |

VerySource

 Forgot password?
 Register
Search
View: 729|Reply: 5

Hashtable writing Web Services

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-7 21:30:01
| Show all posts |Read mode
[WebMethod (Description = "aaa")]
public string aaa (Hashtable ht)
{

}

Compilation appears: The type System.Collections.Hashtable is not supported because it implements IDictionary.

Is there any way for everyone
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-6 16:15:01
| Show all posts
Instead of Hashtable, use serializable objects
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-8-1 13:30:01
| Show all posts
What I said upstairs is correct, webservice parameter types must be serializable, such as int, string, dataset, etc.
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-8-8 17:00:01
| Show all posts
Yes, in fact, such transmission is problematic, you don’t use Hashtable as parameters
But you can use binary serialization, a netizen asked you the same question just now
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-19 08:30:02
| Show all posts
If you use hashtable as the return value in java
How to call c#? Has anyone encountered it?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-19 09:15:01
| Show all posts
String[]
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list