You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by COURTAULT Francois <Fr...@gemalto.com> on 2017/09/08 13:19:09 UTC

WSDL caching

Hello everyone,

We are using apache-cxf 3.1.10 in TomEE 7.0.3.
In our application, we have JAX-WS client code which targets a remote endpoint.

My question is quite basic:

-          when the JAX-WS client code is called the first time, an HTTP call is performed in order to get the remote endpoint WSDL and then an HTTP with a SOAP request is sent, right ?

-          then if we target the same remote with the same client, only the SOAP request is sent (looks like the WSDL is cached at client side), right ?

Do you confirm this behavior ?

Best Regards.
________________________________
This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited.
E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.

Re: WSDL caching

Posted by Daniel Kulp <dk...@apache.org>.

> On Sep 8, 2017, at 9:19 AM, COURTAULT Francois <Fr...@gemalto.com> wrote:
> 
> Hello everyone,
> 
> We are using apache-cxf 3.1.10 in TomEE 7.0.3.
> In our application, we have JAX-WS client code which targets a remote endpoint.
> 
> My question is quite basic:
> 
> -          when the JAX-WS client code is called the first time, an HTTP call is performed in order to get the remote endpoint WSDL and then an HTTP with a SOAP request is sent, right ?
> 
> -          then if we target the same remote with the same client, only the SOAP request is sent (looks like the WSDL is cached at client side), right ?
> 
> Do you confirm this behavior ?

Correct.   The WSDL is needed to wire up the various methods and determine the schema and any various policy things.  However, that is all held onto in a cache so as long as you don’t discard the client and have to re-create it, we don’t need to retrieve it again.


-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com