• 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

Webservices + Jrun

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using JRUN to deploy my webservices.
I wrote a java interface, HPExampleJRUN.java
Did java2wsdl and wsdl2java. Both are successful.
I got 5 java files generated thru wsdl2java,

HPExampleJRUNService.java
HPExampleJRUNServiceLocator.java
HPExampleJRUNWSSoapBindingImpl.java
HPExampleJRUNWSSoapBindingStub.java
HPExampleJRUNWSSoapBindingImplSkeleton.java


compiled them and placed all of them in the JRUN web application directory. Added a service element in server-config.wsdd.
Opened a browser and typed in http://localhost:8101/travelnet/services/HPExampleJRUN?wsdl
it gave me wsdl.

Now I wrote a Client that uses this webservice.
I got the following error:
An Axis Fault occurred: java.lang.InstantiationException: jrun.com.example.HPExampleJRUN

Looks like i am something is going wrong with the invoke method. Here is the entire code:



Can someone help me with this, couldn't understand why this error is generated.
Thanks,
KHP
 
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic