• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wsgen generated artifacts with marshaling - unmarshaling

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic