aspose file tools*
The moose likes Web Services and the fly likes I've got error while while get a collection data(entity) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "I Watch "I New topic
Author

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

Rikky Hasibuan
Greenhorn

Joined: May 21, 2009
Posts: 5
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..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I've got error while while get a collection data(entity)