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..