Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help for calling web service  RSS feed

 
Sumeet Shah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using jboss4.0.4.GA. Also, generated WSDL using wstools. Using JAXB1.0 to generate java objects. When I am invoking webserive, I am getting following error:
javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: javax.xml.bind.JAXBException: Failed to parse source: Class com.test.gateway.ws.jaxb.TReference has no public constructors or the class reflects a primitive type or void - with linked exception:
org.jboss.xb.binding.JBossXBException
...

Any one faced similar issue?
Thanks in adavance for help...




 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sumeet,

Have you got through this problem?

I can't make out much from the information provided. Can you post your WSDL and TReference class? As a quick tip, seldom we may have to tweak source code that is generated from webservice APIs or JAXB (I never had problems with JAXB generated code though!).

 
Sumeet Shah
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naren,
Thanks for help. Now my problem is solved. With JAXB 2.0, there was no issue. No need to change any code. With JAXB1.0, it generates interfaces and classes that implement interfaces. In my webservice, it is interfaces as parameters. And error was like "Class com.test.gateway.ws.jaxb.TReference has no public constructors or the class reflects a primitive type or void - with linked exception". But, now no issues with JAXB2.0, as it doesn't generate any interfaces.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!