• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAXWS with Frontend CXF API vs WSDL top down approach  RSS feed

Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am creating and consuming JAXWS in java,

1) Where it is better to create a WS using frontend API like JaxwsServerFactorybean (produce)& JaxwsProxyFactoryBean (consume)or use the WSDL contract based approach?
2) By using the frontend API you dont have relay on the WSDL as much as it can be generated through the SEI with ?wsdl typed in the browser, hence WSDL is not used for generating the java classes to be used for consuming the WS as it is with WSDL contract based approach? In which we will use wsimport or wsdl2java to generate the java classes to comsume the WS?

Now tell me know which approch we need to use , i feel using front end api is easier and using this we can add more features of CXF like LoggingInInterceptor,LoggingOutInterceptor,SOAPHandlers,Handlerchain, etc by setting those in JaxwsServerfactoryBean which is not possible if we genereate the java classes from WSDL (using contract first approach)?

Please clarify and let me know your opinion any links on these as which one to choose is highly appreciated.


You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!