Hi,
I have a web-application developed with Spring & Hibernate to which I have to add an Axis Web Service. The service should return a list of objects from the domain of the web application. Do you have any idea why Axis won't map my java types to xml types? All I get is this:
<complexType name="ArrayOf_xsd_anyType">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/>
</restriction>
</complexContent>
</complexType>
Any ideas would be appreciated. I have to mention that all the objects that I am trying to map are Java beans. I use them for hibernate too. Here is the service from the wsdd file:
<service name="NewsWebService" provider="java:RPC">
<parameter name="allowedMethods" value="*" />
<parameter name="className" value="addnews.ws.NewsWS" />
<namespace>http://addnews</namespace>
<beanMapping languageSpecificType="java:addnews.domain.News"
qname="ns1:News" xmlns:ns1="http://domain.addnews" />
<beanMapping languageSpecificType="java:addnews.domain.NewsCategory"
qname="ns1:NewsCategory" xmlns:ns1="http://domain.addnews" />
<beanMapping languageSpecificType="java:addnews.domain.Sources"
qname="ns1:Sources" xmlns:ns1="http://domain.addnews" />
</service>
Thanks,