• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cutting-edge strategy for SOAP to SQL? Deserialize SOAP string?

 
Sebi Tamberg
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

Coming from C#, I am quite unexperienced in Java. What I already have found out is that in Java there are plenty of ways of doing something. So here is a rather general question:

I would like to know what is the cutting-edge recommended strategy in Java to carry out following workflow:


1. Call a web service (JAX?)
2. Map the response to a web service conform object
3. Map the web service conform object on a local object (and forget about the mapped one)
4. Store the local object in the database (Hibernate?)

In particular, I am running into difficulties at 2. Having got the web service response as a string, I need to get the information into an object. I've tried to do so by deserializing, however, I wonder

a) if it is the correct strategy to deserialize manually or if there is some kind of automation in Java and
b) if yes, how this is done? I've tried XStream, but it seems to have difficulties with the tags (i.e. do they really need to point to the package path of my object? If yes, what if my SOAP response does not do so?)

Another question is this: I've noticed an intensive use of annotations (attributes?) for mappings. What is this strategy referred to? Any tutorials, sources etc?

Thank you very much for your comments.

T.S.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic