Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Created April 27, 2015 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonashackt/379e23e68096c39e2b57 to your computer and use it in GitHub Desktop.
Save jonashackt/379e23e68096c39e2b57 to your computer and use it in GitHub Desktop.
JAXBDataBinding Spring-Configuration Bean, which should be set to the Apache CXF Endpoint
@Bean
public JAXBDataBinding jaxbDataBinding() {
JAXBDataBinding jaxbDataBinding = new JAXBDataBinding();
Map<String,String> namespaceMap = new HashMap<String, String>();
namespaceMap.put("http://ws.cdyne.com/WeatherWS/", "weather");
jaxbDataBinding.setNamespaceMap(namespaceMap);
return jaxbDataBinding;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment