Leonardo Vannucci
2018-09-17 13c46f877d0540f22b16f80facd7e60de74490fa
dg1cloud-core/src/main/java/it/digione/dg1cloud/ws/client/isd/IsdConfig.java
....@@ -8,8 +8,6 @@
88 import org.springframework.ws.client.support.interceptor.ClientInterceptor;
99 import org.springframework.ws.soap.security.wss4j2.Wss4jSecurityInterceptor;
1010
11
-import it.digione.dg1cloud.ws.client.SOAPConnector;
12
-
1311 @Configuration
1412 public class IsdConfig {
1513
....@@ -19,6 +17,7 @@
1917 public Jaxb2Marshaller marshaller() {
2018 Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
2119 marshaller.setContextPath("it.isharedoc.schemas.instance");
20
+ marshaller.setMtomEnabled(true);
2221 return marshaller;
2322 }
2423
....@@ -30,12 +29,13 @@
3029 wss4jSecurityInterceptor.setSecurementPassword(isdProperties.getPassword());
3130 wss4jSecurityInterceptor.setSecurementPasswordType(WSConstants.PW_TEXT);
3231 wss4jSecurityInterceptor.setSecurementUsernameTokenNonce(true);
32
+ wss4jSecurityInterceptor.setSecurementUsernameTokenCreated(true);
3333 return wss4jSecurityInterceptor;
3434 }
3535
3636 @Bean
37
- public SOAPConnector soapConnector(Jaxb2Marshaller marshaller, Wss4jSecurityInterceptor wsSecurityInterceptor) {
38
- SOAPConnector client = new SOAPConnector();
37
+ public IsdSOAPConnector soapConnector(Jaxb2Marshaller marshaller, Wss4jSecurityInterceptor wsSecurityInterceptor) {
38
+ IsdSOAPConnector client = new IsdSOAPConnector();
3939 client.setDefaultUri(isdProperties.getEndpoint().getInstance());
4040 client.setMarshaller(marshaller);
4141 client.setUnmarshaller(marshaller);