/** * Method for creating the Marshaller for device management. * * @return Jaxb2Marshaller */ @Bean public Jaxb2Marshaller deviceManagementMarshaller() { LOGGER.debug("Creating Device Management Marshaller Bean"); final Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setContextPath( this.environment.getRequiredProperty( PROPERTY_NAME_MARSHALLER_CONTEXT_PATH_DEVICE_MANAGEMENT)); return marshaller; }
private static WebServiceTemplate createWebServiceTemplate(URI defaultURI) throws SOAPException { SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory(MessageFactory.newInstance()); messageFactory.setSoapVersion(SOAP_11); HttpComponentsMessageSender httpSender = new HttpComponentsMessageSender(); httpSender.setConnectionTimeout(1200000); httpSender.setReadTimeout(1200000); Jaxb2Marshaller serviceMarshaller = new Jaxb2Marshaller(); serviceMarshaller.setContextPath("org.apromore.model"); WebServiceTemplate webServiceTemplate = new WebServiceTemplate(messageFactory); webServiceTemplate.setMarshaller(serviceMarshaller); webServiceTemplate.setUnmarshaller(serviceMarshaller); webServiceTemplate.setMessageSender(httpSender); webServiceTemplate.setDefaultUri(defaultURI.toString()); return webServiceTemplate; }
@Bean public Jaxb2Marshaller marshaller() { Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setContextPath("aBergler.eBraendli.wsdl"); return marshaller; }
@Bean Jaxb2Marshaller jaxb2Marshaller() { Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller(); jaxb2Marshaller.setContextPath("no.lyse.ikt.ms.intelecom.schemas"); return jaxb2Marshaller; }
@Bean public Jaxb2Marshaller marshaller() { Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setContextPath("net.lkrnac.book.eiws.chapter03.ws.boot.model"); return marshaller; }
@Bean public Unmarshaller unmarshaller() { Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); marshaller.setContextPath("springbook.user.sqlservice.jaxb"); return marshaller; }