How to map xsd to a HashMap object
I have written a java webservice with a method which takes HashMap as input parameter.Inside that method i add a key/value pair to the hashmap object and return it. i designed a BPEL with a partner link to the above designed webservice. I imported a simple xsd in my BPEL process and assigned it request message of my BPEL.XSD that i have imported to my BPEL project has a complext type which has two elements. Complext type is as shown.
<xsd:complexType name="empRequest">
<xsd:sequence>
<xsd:element name="empNo" type="xsd:int"/>
<xsd:element name="empName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
My expectation is when i map this [b]empRequest complext type to hashmap obect exposed by input variable of invoke object ,
input to the webservice method should a hashmap of size 2 with two keys (empNo, empName) with corresponding values that i key in as inputs.
Any ideas how we can implement this?