Hello All,
I followed Glen Mazza's tutorial for creating a web service using CXF
through WSDL first approach. I used the approach to write a web service that
returns a arraylist. However, when i tried to extend further to return
hashmap, i failed. I modified the wsdl segment as follows:-
<xsd:element name="LaunchVMsResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Mymap">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="entry">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="key" type="xsd:string"/>
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
but this one creates a list of <item> object. The litrerature says we need
to write a marshal / unmarshal. I am completely helpless here.Can anyone
guide me to do this ? I am not that proficient in web services in firsxt
place but i am willing to do it,
thanks in advance
--
View this message in context:
http://old.nabble.com/Hashmap-binding-CXF-tp28286731p28286731.html
Sent from the cxf-user mailing list archive at Nabble.com.