Thanks for your answer.
I need separates proxies because even if all web methods return XML, their meaning is different :
The first method called is to authenticate the user. So I after receiving the result, I only need to send an event to know if authenticate succeed or not.
The other methods called return XML data that I parse to create different VO, depending of the called method.
About my "problem" of webservice instantiation, here is how I did :
- First, using a ConfigProxy, I read from a config file the webservice URL
- In this ConfigProxy, when I receive the result, I instantiate a WebserviceProxy with the received URL
- Then, in the other proxies, I retrieve this WebServiceProxy and use it to call the different web methods
But I am not sure it is the best practice ...