Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Document style SOAP web service without JAX-B artifacts

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • 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
 
Himai Minh
Ranch Hand
Posts: 1361
7
  • 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
Java MySQL Database PHP
  • 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: 1361
7
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic