Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Re: Webservice configuration on: May 11, 2010, 12:18:40
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 ...
2  Announcements and General Discussion / Architecture / Webservice configuration on: May 05, 2010, 11:25:04
Hi,

I am building my first PureMVC app, and I am more familiar with Mate.

My app is reading a XML config file at startup. This XML config file contains the location of a webservice WSDL. Then, my app has to query some web methods  of this webservice.

Here are my question: I am implementing a Proxy per WebMethod, but in each of these Proxy I am initializing a WebService (Load WSDL ...) using the config oject I pass in the notification.
Is there a way to avoid this ? By initializing only one WebService and using it in the differents Proxy ?

Thanks !
Pages: [1]