Hello!
Meanwhile i did the same, create (config) more proxy with fixed address,
and dynamic choose one.
Thanx
Csaba
On 2018-06-21 13:42, James Carman wrote:
What I do in these situations is generate multiple client proxies for each
endpoint and then put a dynamic proxy in front of them to do the switching
between them. The client proxies aren’t too expensive to create.
On Wed, Jun 13, 2018 at 11:18 AM Tóth Csaba <[email protected]> wrote:
Hello!
I need to put a client into the webapp what communicate over ssl and
before every call need to evaluate and maybe change the endpoint url.
I set up the system via cxf-servlet.xml:
<jaxws:client id="LDAPRequesterBean"
serviceClass="ihe.iti.hpd._2010.ProviderInformationDirectoryPortType"
address="https://myserver.com/mypath">
<jaxws:binding>
<soap:soapBinding version="1.2" mtomEnabled="true" />
</jaxws:binding>
</jaxws:client>
<bean id="LDAPClientBean" class="mypackage.LDAPClient" >
<property name="lDapRequesterBean" ref="LDAPRequesterBean"/>
</bean>
<http:conduit name="https://myserver_1/.*">
<http:tlsClientParameters>
...
</http:conduit>
<http:conduit name="https://myserver_1/.*">
<http:tlsClientParameters>
...
</http:conduit>
and in the client I change the endpoint:
endpoint = //evaluate and change it, if needed
BindingProvider bindingProvider = (BindingProvider)
lDapRequesterBean;
bindingProvider.getRequestContext()
.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint);
And its working, for the first time. (endpoint A)
If It changed the url (endpoint B) (the 2nd call must go to another
endpoint), I get SSL error.
After I restart the tomcat, and try first with this url (endpoint B),
its working, but next not working with the first URL (endpoint A)
I think, its some caching problem, but not find where, and how can I
turn off
Thanx
Csaba
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus