This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wsgen generated artifacts with marshaling - unmarshaling  RSS feed

 
Ramy Nady
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dears ,

wsgen takes service implementation as input and generates artifacts with WSDL if needed.
The generated artifacts always contains JAX-B annotations.

I understand marshaling - unmarshaling to convert from java to XML and vice versa.

But I need to know how exactly this marshaling - unmarshaling used after generating the artifacts ?
It used while sending Soap message requests / response ?
When marshaling - unmarshaling happening ?

Kindly clarify.

Thanks in advance.
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It happens 4 times:
1. Client calls service method -> WS runtime marshalls method call and request object to XML -> XML is sent over network
2. Server receives request -> WS runtime unmarshalls XML back into java request object -> Process the request
3. Server returns a response object or throws exception -> WS runtime marshalls the response object or exception object to response XML -> response XML is sent back over network
4. Client receives response XML -> WS runtime unmarshalls response XML back into java response object or exception object

This is the usual web service flow. There are some variants such as one-way messages where service does not send any response, and so the last 2 steps don't occur.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!