This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie question on Axis

 
Rick Crawford
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all. I'm doing some experimenting with Apache Axis. I've successfully deployed a couple of trivial web services, and am even to the point of returning and serializing JavaBeans from the service. Life is good. But now I have a question that I’m kind of stuck on.
I’m trying to figure out how to write a Java client to use one of my web services that returns a JavaBean, but this time I don't want to depend on Bean serialization on the client to pull out the pieces of data within the class. The scenario is that of a client who doesn’t have access to my compiled Java classes.
What I think I need to do is to invoke the service as per normal, then somehow ask the return result for the soap response, parsing the XML myself for the individual pieces and parts. Is this the correct approach for a scenario like this? I’ve been reading about and experimenting with the MessageContext and Message classes thinking they would give me a handle to the actual soap response, but so far I don’t have anything that works.
Thanks in advance for any suggestions,
Rick <><
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic