1 Reply Latest reply on Sep 28, 2006 3:41 PM by c_eric_ray

    WSDL mapping of java.util.Map is wrong

    vulkman

      Hi there!

      I've got a problem with the mapping of my return-value which is of type java.util.Map:

      <snip>
      public Map isAvailable(@WebParam(name="address") Address address...
      </snip>

      Using Jboss 4.0.3. and JAX-RPC this is resulting in the following WSDL-output:

      <complexType name="map">

      <complexContent>

      <restriction base="soap11-enc:Array">
      <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:mapEntry[]"/>
      </restriction>
      </complexContent>
      </complexType>

      <complexType name="mapEntry">

      <sequence>
      <element name="key" type="anyType"/>
      <element name="value" type="anyType"/>
      </sequence>
      </complexType>

      Using JBoss 4.0.4. with JAX-WS it looks as follows:

      <complexType name="Map">

      <sequence>
      <element name="empty" type="boolean"/>
      </sequence>
      </complexType>

      So my question is: How can I change this type-translation?!

      Please help me, I am quite desperate...

      Kr,
      Volker