简体   繁体   中英

get all data from webservice. no parameters asp.net c#

i have an asp.net / c# web application and i was given a webservice that gives me all the info about a client. all i got to do is call the method and pass the client id and i get all his info. i wanted to get a list of all clients using that same method but if i dont pass a id it gives me an error. do you guys know of any way to do this?

i call it like this:

webservice.method(id);

i tried to do it like this:

webservice.method();

but it gives me an error

The web service would have to be designed to allow the method to be called without any parameters. It doesn't happen automatically. Talk to the publisher of the web service to possibly get support for this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM