[jboss-user] [JBossWS] - WSDL mapping of java.util.Map is wrong

vulkman do-not-reply at jboss.com
Wed Sep 27 17:41:05 EDT 2006


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974689#3974689

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974689



More information about the jboss-user mailing list