• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt on WSDL checkin and proxy creation in cxf

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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





 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic