• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 sending back a java bean class from service

 
Kaustabh Singha Roy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using Axis2 1.3 as my WS engine. I want to send back a user devined value object from the web service. I searched a lot but didn't got any idea how to do this. Please offer me some idea.

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis2 comes with a number of interesting examples in the "samples" directory; pojo, pojoguide and quickstartxmlbeans look like they might be what you're looking for.
 
Kaustabh Singha Roy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, yes that solves a part of my problem. But if the service is written in some other language(not in java) then I suppose some more coding will be required. or the same code will work there also?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to build interoperable web services you need to restrict yourself to data types that can be modelled by schemas and WSDL, modulo the restrictions placed upon it by the Web Services Basic Profile.

Take a look at the WSDL exposed by that service to see if there's anything in it that doesn't look like a datatype that Java can handle. Or you could just run a tool like wsdl2java over it, create a Java client from that, run it, and see what happens :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!