• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on WSDL checkin and proxy creation in cxf  RSS feed

 
Namrata Jaiswal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

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.

Thanks in advance,
Namrata





 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Namrata Jaiswal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But at the same time, we need to generate proxy at runtime but not at deployment time.

Regards,
Namrata
 
Namrata Jaiswal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!