• 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

Dynamic Client example in Ivan Kriz's tutorial

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the section (4.9) JAX-WS Web Service Clients a sentence says:
A JAX-WS web service client can be either a dynamic client, for which no artifacts have been generated

Now if I jump to the example for creating a Dynamic client in the immediate next sub-section I see that the program uses classes such as:
- ObjectFactory
- PrintNumber

There are occurrences of these classes in the method: createOnewayRequestPayload()

As per the definition if the artifacts are not generated then do these classes need to coded by hand?
If yes, then the code for these two classes is missing in the example.

Please clarify.
 
Ranch Hand
Posts: 2198
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
The example may be a little unclear in that the JAXB classes are excluded from the client artifacts - this may be inappropriate.
The logic behind this is that SAAJ, or some other alternative, could have been used to generate the requests and interpret the responses from the service.
Including such code in the example would, in my opinion, have shifted the focus from the dynamic client example to an exercise in generating and interpreting XML.
Yes, the classes you mention are generated by the XJC JAXB schema compiler.
By the way, my last name is still Krizsan.
Best wishes!
 
Kumar Sonu
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ivan for the clarification.
And I am terribly sorry for the calling you with the wrong name. I sometimes pay the price for typing too fast
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic