| .. | .. |
|---|
| 8 | 8 | import org.springframework.ws.client.support.interceptor.ClientInterceptor; |
|---|
| 9 | 9 | import org.springframework.ws.soap.security.wss4j2.Wss4jSecurityInterceptor; |
|---|
| 10 | 10 | |
|---|
| 11 | | -import it.digione.dg1cloud.ws.client.SOAPConnector; |
|---|
| 12 | | - |
|---|
| 13 | 11 | @Configuration |
|---|
| 14 | 12 | public class IsdConfig { |
|---|
| 15 | 13 | |
|---|
| .. | .. |
|---|
| 19 | 17 | public Jaxb2Marshaller marshaller() { |
|---|
| 20 | 18 | Jaxb2Marshaller marshaller = new Jaxb2Marshaller(); |
|---|
| 21 | 19 | marshaller.setContextPath("it.isharedoc.schemas.instance"); |
|---|
| 20 | + marshaller.setMtomEnabled(true); |
|---|
| 22 | 21 | return marshaller; |
|---|
| 23 | 22 | } |
|---|
| 24 | 23 | |
|---|
| .. | .. |
|---|
| 30 | 29 | wss4jSecurityInterceptor.setSecurementPassword(isdProperties.getPassword()); |
|---|
| 31 | 30 | wss4jSecurityInterceptor.setSecurementPasswordType(WSConstants.PW_TEXT); |
|---|
| 32 | 31 | wss4jSecurityInterceptor.setSecurementUsernameTokenNonce(true); |
|---|
| 32 | + wss4jSecurityInterceptor.setSecurementUsernameTokenCreated(true); |
|---|
| 33 | 33 | return wss4jSecurityInterceptor; |
|---|
| 34 | 34 | } |
|---|
| 35 | 35 | |
|---|
| 36 | 36 | @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(); |
|---|
| 39 | 39 | client.setDefaultUri(isdProperties.getEndpoint().getInstance()); |
|---|
| 40 | 40 | client.setMarshaller(marshaller); |
|---|
| 41 | 41 | client.setUnmarshaller(marshaller); |
|---|