Announcement Announcement Module
Collapse
No announcement yet.
Using HashMaps at WSDL? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using HashMaps at WSDL?

    Hi,

    i defined an operation with WSDL and which should return an object which is derived from a HashMap. That's why the object has a method with two parameters.
    Code:
    put(fieldname,value)
    So, this object isn't a bean anymore because of the two parameters. How can i specify such an object with WSDL? Is the following WSDL code correct? It's looking somehow odd.
    Code:
    <xsd:complexType name="MyHashObject">
      <xsd:sequence>
        <xsd:element name="put"  type="cas:TwoStrings" minOccurs="0" nillable="true"/>
    ...
    <xsd:complexType name="TwoStrings">
      <xsd:sequence>
        <xsd:element name="string" type="xsd:string" nillable="true" minOccurs="2" maxOccurs="2" />
      </xsd:sequence>
    </xsd:complexType>
    Is it allowed to specify types in WSDL which are no beans?

    How can i transfer the MyHashObject with all data? I mean, if i specify the operation with two paramteres a client can generate a class with that info, but the content of HashMap ist't transfered automatically(with Spring Marshall/Unmarshall), is it?

    Cheers,

    Ingo
Working...
X