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

Reply via email to