コード例 #1
0
  /**
   * 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;
  }
コード例 #2
0
  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;
  }
コード例 #3
0
ファイル: QueryConf.java プロジェクト: elegenstein-tgm/dez07
 @Bean
 public Jaxb2Marshaller marshaller() {
   Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
   marshaller.setContextPath("aBergler.eBraendli.wsdl");
   return marshaller;
 }
コード例 #4
0
ファイル: Infrastructure.java プロジェクト: Rodjers/Intelecom
 @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;
 }
コード例 #6
0
 @Bean
 public Unmarshaller unmarshaller() {
   Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
   marshaller.setContextPath("springbook.user.sqlservice.jaxb");
   return marshaller;
 }