Results 1 to 2 of 2
- 04-15-2009, 07:07 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
Consuming web service with return custom object
Hi to all.
I'm writing a method java around with i'll write a web service (with jdeveloper).
I want my method has this signature:
public Employee method1 (String str1)
{
}
where Employee is a private custom class I define in the same java source of method1 (I'm writing a java class with a method and than with jdeveloper automatically I'll wrap this class in a web service).
Question is: how can consumer of my web service use returned object (of custom class Employee) if he does not know this custom class?
Class Employee is private in java source...
when he calls web service i think he'll have similar as follows:
Employee em= webServ.method1("test");
but he does not know Employee class. How could he use retuned object of web service?
Thanks
- 04-16-2009, 06:56 AM #2
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
Similar Threads
-
Return an object to use in another method
By TidusSolan in forum New To JavaReplies: 3Last Post: 03-19-2009, 08:00 PM -
how to pass an arraylist from an object back to the parent object that it was created
By george_a in forum New To JavaReplies: 1Last Post: 03-04-2009, 06:14 PM -
Consuming a Web Service using Java
By gopikrishnatb in forum Web FrameworksReplies: 2Last Post: 03-02-2009, 09:59 AM -
How I can return an object?
By CFW in forum New To JavaReplies: 4Last Post: 01-14-2009, 10:54 AM -
how to return an object from an arraylist
By elizabeth in forum New To JavaReplies: 1Last Post: 07-30-2007, 06:57 PM


LinkBack URL
About LinkBacks

Bookmarks