• 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

I've got error while while get a collection data(entity)

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I've got error while while get a collection data(entity) from database trough web services.

Error i've got:

org.xml.sax.SAXParseException: Premature end of file.




First of all, i'm using:

- Axis2
- Tomcat 5.5 as server

I've created the database call "jeap_quiz" and put a table in it, named "book".
Book Table contains these fields:

Field Type Collation Null Key Default Extra Privileges Comment
--------- ------------ ----------------- ------ ------ ------- ------ ------------------------------- -------
isbn varchar(3) latin1_swedish_ci YES (NULL) select,insert,update,references
title varchar(100) latin1_swedish_ci YES (NULL) select,insert,update,references
author varchar(100) latin1_swedish_ci YES (NULL) select,insert,update,references
publisher varchar(100) latin1_swedish_ci YES (NULL) select,insert,update,references

I've created a WSDL to describe the service that will be used to extract data from my database.
Here is the detail I've made:




The WSDL is success to create the files below:
- Book.java
- BookHandler.java
- BookHandlerService.java
- BookHandlerServiceLocator.java
- BookServiceSoapBindingImpl.java
- BookServiceSoapBindingSkeleton.java
- BookServiceSoapBindingStub.java

I've modified the code in the SoapBindingImpl become this one:



Here is the client that consume the service:




I Need your help to solve this problem so much..
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic