Just FYI: Maps aren't directly supported with JAXB. In 2.1, if you
look in the java_first_jaxws sample, it shows what is needed to get
Maps working. You need to write a TypeAdapter for the it, but you
can use the code in that sample as an example. It's not very hard.
That said, it won't work with 2.0.x.
Dan
On May 23, 2008, at 6:25 PM, Kit Plummer wrote:
Hey,
Beating my head on this...pardon my ignorance - new to CXF.
I've got a simple service that looks like this:
@WebService
public interface SettingsManager {
Boolean addSetting(@WebParam(name="namespace") String namespace,
@WebParam(name="settingName") String settingName,
@WebParam(name="settingValue") String
settingValue);
String getSetting(@WebParam(name="namespace") String namespace,
@WebParam(name="settingName")String param);
HashMap<String, String>
getAllSettings(@WebParam(name="namespace")String namespace);
Boolean deleteSetting(@WebParam(name="namespace") String namespace,
@WebParam(name="settingName")String param);
List<String> list(@WebParam(name="namespace") String namespace);
}
With no special data bindings the HashMap returned by getAllsettings
is always empty. So, tried to use the Aegis data binding, but as
soon as I do anything with my Spring config the service breaks
completely. Here's the snip from the config:
<jaxws:endpoint id="GlobalSettings"
implementor="com.accenture.manager.settings.GlobalSettingsManager"
address="/globalSettings">
<!-- signed and encrypted -->
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<bean
class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="Signature" />
<entry key="signaturePropFile" value="server-
sign.properties" />
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
</jaxws:endpoint>
Any pointers to get me going in the right direction? Maybe with a
JAXB configuration?
TIA,
Kit
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog