Sudheer Palyam
Sudheer Palyam

Reputation: 2519

soap webservice to return a pojo instead of xml

I'm quite new to webservices, recently started implementing Soap Webservice using Spring-WS and client using Axis and Spring. As i understood, we send xml as request for webservice and we get back response xml. These request/response Xmls can then be marshalled/unmarshalled.

Is there a way to directly return a pojo from webservice and get it on client side with out xml marshall/unmarshalling?

Upvotes: 1

Views: 1706

Answers (2)

dstarh
dstarh

Reputation: 5076

We always end up using Apache Axis and using WSDL2JAVA which produces pojo's for you and hides the service implementation. For the marshaling you can use something like XMLBeans to easily marshal between xml and pojos.

Also see Spring WS Client - How to create mapping POJO for WSDLs without using Axis

Upvotes: 2

Dave
Dave

Reputation: 898

Short answer : no.

Upvotes: 1

Related Questions