Hello Friends, I have one design question for you. We have webservice running in Dev.Server. IT takes a string at a tiem and return complex type. Let us assume string is the MOBILENUMBER
Now, In the website- reporting module, the user selects multiple mobile number, For each selected mobile number a call has to be done to the above mentioned webservice. My question, how to design this in client.
1. Can i have looping of selected m.number list and call the webservice 2. Can i have multithreading here? If threading can be done, can anyone advise some walkthrough how to proceed with this?
Its been sometime since I worked with Web Services, but as far as I remember you could collect these phone number in an array and send them across to the Web Service.
Process the array over there and return back an array containing whatever the result is. Most probably you will face issues with declaring type of the Array and its contents on the response. Look into Castor in achieving this.
Let me know if you have some doubts.
Oh forgot to mention, the above can be achieved only if the both the Web Service itself and the client is being created by you. If the Web Service is already existing then looping can some problems in performance. Again depends on the number of calls made to the Web Service.