• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Document style SOAP web service without JAX-B artifacts

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading Martin kalin's book

Here is the code for document style service


I tried to publish the Web service without generating Jax-B artifacts with wsgen command.

But still I was able to publish the web service.

Book mentions that when you publish document style soap service without first generating the Jax-B artifacts that are required to publish the service you will get Runtime Exception

But I didn`t get any exception and was able to publish the service , Does it mean that no JAx-B artifacts are required for this service. I checked the package there was no class files for JAX-B artifacts
 
Ranch Hand
Posts: 1751
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With JDK 1.6 or above, the JAXB artifacts will be automatically generated. Navigated to the folder where your class files are. You may be able to see those generated classes.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Himai ,

I am able to access the web service without generating the Jax-b artifacts.


Navigated to the folder where your class files are. You may be able to see those generated classes.



But there is no Jax-B artifacts generated in the folder.

How this is possible ? I am using JDK 1.7 and JRE 1.8
 
Himai Minh
Ranch Hand
Posts: 1751
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think in chapter 2 or 3 of Java Web Service Up and Running, there is an example showing how to pass objects as arguments in those @webMethod's.
In the example, there is an object called "Team".
JAXB artifacts are generated for Team from the schema in the WSDL.
 
mooooooo ..... tiny ad ....
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!