Hi,
WSIF does not provide a way to plug in alternative implementations of the WSIFService interface. So CustomServiceImpl is never used, which is why you see that problem.
In other words, this sample does not work, it is predicated on support that isn't there. The sample docs say this.
Thanks,
Nirmal.
| "Amos Sonnenwirth" <[EMAIL PROTECTED]>
02/27/2003 10:29 AM
|
To: <[EMAIL PROTECTED]> cc: Subject: RE: MultiBinding Sample using WSIF's dynamic invocation |
I tried the custom factory example.
When diving a little into the code , i found a probelm in the CustomServiceImpl.java at the getPort() method, :
...
if (binding instanceof JavaBinding)
return getPort(port.getName());
...
I found that this condition is never true , although, there is a java binding .
Is this a bug ?
Amos
-----Original Message-----
From: Nirmal Mukhi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 3:03 PM
To: [EMAIL PROTECTED]
Subject: Re: MultiBinding Sample using WSIF's dynamic invocation
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
