Announcement Announcement Module
Collapse
No announcement yet.
Writing problem in web services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Writing problem in web services

    Hi,

    I am using Spring, jboss and java 1.5. For web services jax-ws. The problem is the service published is having a method which is writing the List<Object> as shown below:::

    Code:
    public List<Object> method(String querytoexec)
    {
         javax.persistence.Query query;
         query = entityManager.createQuery(where);
         return  query.getResultList();
    }
    at client side when i am accessing the service i am getting [#document: null] as first object for each record.. For example if i send a query to execute as below::::

    Code:
    List<Object> test=WebService.method("select Code ,Name,Loc from Master_table");
    	  System.out.println("The test is:::::::"+test);
    I am getting the result as [#document: null], DTR5509, DTR5509, [#document: null], TH/SD/SS-037, Singh Durbar.........
    Here i am not binding to any persistence object. Can any one tell me why i am getting document: null.

    Waiting for reply....

    With Regards,
    Naveen..
Working...
X