This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Jax-RPC Vs SAAJ

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am able to generate IBM websphere JAX-RPC stub from a third party vendor( Websphere commerce server) WSDL but not Axis. Axis stub generation (WSDL2Java ) is throwing Nullpointer exception. I don't want to know why Axis stub generation is failing.My responsibility is to consume webservice. I was asked to change one of classes( XXX_deser.java) to resolve run time exception( Class cast exception) from other team, who is providing the service . I am againist to this but no option for me. I have to choose best solution out of JAX-RPC which was changed to rectify runtime exceptions ,SAAJ. Can you tell me which gives the best solution in this case?
I perfer SAAJ instead of JAX-RPC with stub class changes. Generated Web service client source code should not changed. What do you think ?
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We don't have enough information to give an opinion about which one is better in your scenario, but in general, I prefer higher-level APIs (like JAX-RPC) over lower-level ones (like SAAJ).

Having said that, JAX-RPC has been obsolete for years, and will likely be removed from the next JEE version. So any new development should be done using its successor JAX-WS.
 
srinivas srinivasmeenavalli
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for details
 
My, my, aren't you a big fella. Here, have a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!