Re: Dynamic versus Stub invocations?
Aleksander Slominski <[email protected]> Thu, 24 Nov 2005 11:40:32 -0500
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
Andrzej Jan Taramina wrote: >Is there a reason to prefer dynamic versus stub invocations? > >The stub version has much simpler code...so I was wondering what, if any, the >benefits of dynamic invocation would be? > > i think the difference is in way code is used: 1) for stub - you actually know which service you invoke so you use its portType and referenced types/schemas to generate stub and code indeed is cleaner/simpler to read. 2) for di - you do not know which service you are going to invoke because user will tell you and ten you build GUI or HTML to allow user input data (for example Xydra) and then you want to pass data and do dynamic invocation; also di is handy for testing best, alek -- The best way to predict the future is to invent it - Alan Kay