• 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
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

class from xsd

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I need to send some xml messages with soap 1.2 asyncronous.
First I need to generate java classes from xsd file of those xml. The problem is when using jaxb 2.0, I cannot generate those classe. There are some errors. I tried xmlbeans and again error.
I tried with jdk 1.5 and 1.6 as java_home.

What should I do?
a.JPG
[Thumbnail for a.JPG]
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that the xsd file is not in classpath.
 
Ranch Hand
Posts: 729
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose you have jdk installed at c:\program files\java\jdk1.x.y_zz. Add the -compiler option to the command line like this.

That would take out the major obstacle encountered.
 
Marian Tataru
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replies.
There are severals xsd files and a wsdl file, not only one xsd file like I said in previous post. All of them are interconnected. I managed to generate java classes using wsdl2java from axis2. Know I have a lot of java classes for xml data and a skeleton, a skeleton interface, a MessageReceiverInOut and a stub. I suppose the stub send the xml data over http with soap headers and skeleton is the receiver. Know I must implement bussiness logic in skeleton and stub I think.
 
Marian Tataru
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm stuck in another problem:
When I try to generate client stub from https://xx.xx.xx.xx/dgw/ris-europe?wsdl with wsdl2java it throws some errors like in picture.
I installed the certificate in java from that site using command: keytool -import -trustcacerts -keystore cacerts -storepass changeit -noprompt -alias mycert -file certeduj.cer
error.JPG
[Thumbnail for error.JPG]
errors
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!