We have a requirement where we need to create web service consumer from thirdy WSDL and we are trying to achieve this by re-using CXF web services stack.
I am new to CXF and have very basic knowledge of it. I have written a very simple program using CXF where I read WSDL and create DynamicClient out of it and invoke the remote service and it works fine. But the issue here is , with every request I need to pass the WSDL info and maybe internally CXF reads the WSDL and creates the
dynamic proxy out of it (I am not sure but it looks so).
Is there any way, so that WSDL information need not to be passed with every web service request?
Basically,CXF will store WSDL info in the system(instead of parsing wsdl info everytime with request and creating dynamic client) and DynamicClient is retrieved based on the WSDL Info that was stored in the system.
Hi!
Have you seen the wsdl_first sample in the "sample" directory in the binary distribution of Apache CXF?
I think you will be better off by using static client-side artifacts, rather than a dynamic client, if you want to avoid access to the WSDL.
Best wishes!
Most probabaly, I need to parse the entire WSDL and cache the WSDL info programatically if I want to avoid WSDL parsing each call and static artifact both.
And everytime I create DynamicProxy, I need to feed the wsdl data to dynamic proxy from cache that will save lots of time.
This is the only solution I see now.
Thanks Ivan for reply
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
a bit of art, as a gift, the permaculture playing cards