wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "I Watch "I New topic

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

Rikky Hasibuan

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..
I agree. Here's the link: http://aspose.com/file-tools
subject: I've got error while while get a collection data(entity)
Similar Threads
order of request parameters causing unexpected subelement exception
soap fault return empty <detail> element.
Consuming a web service using Java
Axis2 - Handlers for SOAP headers
calling a .net web service from server