How to declare the return type of a SOAP method as a map (in its WSDL)?

I am adding a method to the SOAP service. I would like this method to be able to return the map. More specifically, this is a map of lists (vectors / arrays). How can I capture this in my WSDL?

+4
source share
1 answer

Here is the XSD type for a regular card from line to line:

<xsd:complexType name="MapDataType"> <xsd:sequence> <xsd:element name="Pair" maxOccurs="unbounded" minOccurs="0"> <xsd:complexType> <xsd:sequence> <xsd:element name="Key" type="xsd:string" maxOccurs="1" minOccurs="1"/> <xsd:element name="Value" type="xsd:string" maxOccurs="1" minOccurs="1"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> 

Is this what you want? You will need to use this as the return type.

I'm not sure what you mean by "listing mapping"

+3
source

All Articles