• 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

Need help for calling web service

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...




 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic