Hi,
In case there is no preferred port, the default mechanism picks the first port and does the invocation. The ports are stored in a list, and java provides no claims about which object is retrieved first by an iterator, so you can assume it will be random.
You can specify a preferred port on the service using the setPreferredPort method in the WSIFService class.
We plan to also fix the code so that the runtime can discover your own implementation of WSIFService. This would allow you to, for example, override the getPort() method to use your own algorithm for selecting the default port. The custom binding sample does exactly this, but since we currently don't have support for discovering alternative WSIFService implementations, the sample doesn't work (but it gives you some idea of what might be possible).
Thanks,
Nirmal.
| "Amos Sonnenwirth" <[EMAIL PROTECTED]>
02/26/2003 05:35 AM
|
To: <[EMAIL PROTECTED]> cc: Subject: MultiBinding Sample using WSIF's dynamic invocation |
Hi,
I ran the multibinding sample using DII, without mentioning the preferred port . (The WSDL contains Java and SOAP ports)
My quesrion is, in case of not choosing a preferred port , what kind of logic is being used in order to invoke the service ? Why SOAP mechanism is being chosed although there is java port which is more likely in this situation .
Thanks in advanced
Amos
