public final void setContextPaths(String... contextPaths) { this.jaxb2Marshaller.setContextPaths(contextPaths); }
public final void setContextPaths(String... contextPaths) { this.jaxb2Marshaller.setContextPaths(contextPaths); }
m.setContextPaths( "net.exogeni.orca.manage.beans", "net.exogeni.orca.manage.proxies.soap.beans.actor",
protected void initClient() { client = new WebServiceTemplate(); Jaxb2Marshaller m = new Jaxb2Marshaller(); m.setContextPaths( "net.exogeni.orca.manage.beans", "net.exogeni.orca.manage.proxies.soap.beans.actor", "net.exogeni.orca.manage.proxies.soap.beans.authority", //"net.exogeni.orca.manage.proxies.soap.beans.broker", "net.exogeni.orca.manage.proxies.soap.beans.clientactor", "net.exogeni.orca.manage.proxies.soap.beans.container", "net.exogeni.orca.manage.proxies.soap.beans.serveractor", "net.exogeni.orca.manage.proxies.soap.beans.servicemanager" ); Map<String, Object> mp = new HashMap<String, Object>(); mp.put(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m.setMarshallerProperties(mp); client.setMarshaller(m); client.setUnmarshaller(m); client.setDefaultUri(url); // for SSL connections installs all-trusting trust-manager NullHostVerifierMessageSender ss = new NullHostVerifierMessageSender(); ss.myInit(); client.setMessageSender(ss); }
@Override public void setConfiguration(XmlStringToObjectConfiguration configuration) { this.configuration = configuration; marshaller = new Jaxb2Marshaller(); if (StringUtils.isNotEmpty(configuration.getContextPath())){ marshaller.setContextPath(configuration.getContextPath()); } else if (ArrayUtils.isNotEmpty(configuration.getContextPaths())){ marshaller.setContextPaths(configuration.getContextPaths()); } else if (ArrayUtils.isNotEmpty(configuration.getClassesToBeBound())){ marshaller.setClassesToBeBound(configuration.getClassesToBeBound()); } marshaller.setUnmarshallerProperties(configuration.getUnmarshallerProperties()); marshaller.setMarshallerProperties(configuration.getMarshallerProperties()); if (configuration.getValidationEventHandler() != null) { marshaller.setValidationEventHandler(configuration.getValidationEventHandler()); } try { marshaller.afterPropertiesSet(); } catch (Exception e) { throw new ConfigurationException(e.getMessage()); } }
@Override public void setConfiguration(XmlToObjectConverterConfiguration configuration) { this.configuration = configuration; marshaller = new Jaxb2Marshaller(); if (StringUtils.isNotEmpty(configuration.getContextPath())){ marshaller.setContextPath(configuration.getContextPath()); } else if (ArrayUtils.isNotEmpty(configuration.getContextPaths())){ marshaller.setContextPaths(configuration.getContextPaths()); } else if (ArrayUtils.isNotEmpty(configuration.getClassesToBeBound())){ marshaller.setClassesToBeBound(configuration.getClassesToBeBound()); } marshaller.setUnmarshallerProperties(configuration.getUnmarshallerProperties()); marshaller.setMarshallerProperties(configuration.getMarshallerProperties()); if (configuration.getValidationEventHandler() != null) { marshaller.setValidationEventHandler(configuration.getValidationEventHandler()); } try { marshaller.afterPropertiesSet(); } catch (Exception e) { throw new ConfigurationException(e.getMessage()); } }