Results 1 to 2 of 2
- 01-23-2012, 03:34 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 1
- Rep Power
- 0
Return custom object in Java Webservice
Hello,
I have simple Java Web Service but I need return a some serializable object (some members of the class) as XML but I don't know how... In .NET it was so easy, in response Class you should add
[Serializable]
[System.Xml.Serialization.XmlRoot(Namespace="someth ing")]
class responseClass.... {
public returnMember = 'Hello, world';
}
was in XML
<returnMember>Hello, world</returnMember>
How I can do this in Jave Web Services?? It's possible without AXIS2 or something like this? Thanks. No idea
- 01-23-2012, 04:58 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
How to return object or class from functions using Java Native Interface
By shai1981 in forum Advanced JavaReplies: 0Last Post: 10-03-2011, 08:27 AM -
Listen for changes in a custom Object?
By ozzyman in forum New To JavaReplies: 12Last Post: 05-16-2011, 11:25 PM -
Is this a good approach for a custom object-relational mapping in Java?
By visual-kinetic in forum JDBCReplies: 5Last Post: 12-15-2010, 02:22 AM -
Reg:How to write xsl for an response soap object of webservice and then transver to h
By narayana@gmail.com in forum New To JavaReplies: 0Last Post: 03-02-2010, 08:07 AM -
Consuming web service with return custom object
By dream_ in forum NetworkingReplies: 1Last Post: 04-16-2009, 06:56 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks