soap

Spring WS: How to apply Interceptor to a specific endpoint

对着背影说爱祢 提交于 2021-01-21 09:27:53
问题 I have multiple working SOAP Web Services on a Spring application, using httpBasic authentication, and I need to use WS-Security instead on one of them to allow authentication with the following Soap Header. <soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"> <wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs

Migration JAXWS application from java 8 to java 11

两盒软妹~` 提交于 2021-01-20 18:59:07
问题 I am looking for compatible combination of org.apache.cxf:cxf-spring-boot-starter-jaxws with jaxws-api/jaxws-ri on java 10+. Our application works fine on java 8. Also on java 9&10 with --add-modules=java.se.ee. But, when i remove this option and add following dependecies: compile group: 'javax.xml.ws', name: 'jaxws-api', version: '2.3.0' compile group: 'com.sun.xml.ws', name: 'jaxws-ri', version: '2.3.0.2', ext: 'pom' compile group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.3.0.2', ext

error on downloading files from Oracle UCM

岁酱吖の 提交于 2021-01-07 01:37:38
问题 headers and soap body set right, with docID requests. see below headers = {'content-type': 'text/xml','charset':'UTF-8'} body_ID="""<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM"> <soapenv:Header/> <soapenv:Body> <ucm:GenericRequest webKey="cs"> <ucm:Service IdcService="GET_FILE"> <ucm:Document> <!--Zero or more repetitions:--> <ucm:Field name="dID">{docID}</ucm:Field> </ucm:Document> </ucm:Service> </ucm:GenericRequest> <

error on downloading files from Oracle UCM

有些话、适合烂在心里 提交于 2021-01-07 01:37:13
问题 headers and soap body set right, with docID requests. see below headers = {'content-type': 'text/xml','charset':'UTF-8'} body_ID="""<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM"> <soapenv:Header/> <soapenv:Body> <ucm:GenericRequest webKey="cs"> <ucm:Service IdcService="GET_FILE"> <ucm:Document> <!--Zero or more repetitions:--> <ucm:Field name="dID">{docID}</ucm:Field> </ucm:Document> </ucm:Service> </ucm:GenericRequest> <

Handling SOAP Fault in Spring Boot WebServiceTemplate

假如想象 提交于 2021-01-05 12:55:13
问题 I am new to SOAP, trying to run a sample SOAP client using Spring Boot How the SOAP fault, Exceptions or Errors are handled while using WebServiceTemplate public class CountryClient extends WebServiceGatewaySupport { private static final Logger log = LoggerFactory.getLogger(CountryClient.class); public GetCountryResponse getCountry(String country) { GetCountryRequest request = new GetCountryRequest(); request.setName(country); log.info("Requesting location for " + country); GetCountryResponse

Handling SOAP Fault in Spring Boot WebServiceTemplate

不问归期 提交于 2021-01-05 12:54:44
问题 I am new to SOAP, trying to run a sample SOAP client using Spring Boot How the SOAP fault, Exceptions or Errors are handled while using WebServiceTemplate public class CountryClient extends WebServiceGatewaySupport { private static final Logger log = LoggerFactory.getLogger(CountryClient.class); public GetCountryResponse getCountry(String country) { GetCountryRequest request = new GetCountryRequest(); request.setName(country); log.info("Requesting location for " + country); GetCountryResponse

Add Saml Assertion to a custom binding

China☆狼群 提交于 2020-12-15 16:41:47
问题 I have this CustomBinding: var sec = new AsymmetricSecurityBindingElement( new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.Never), new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.AlwaysToRecipient)); sec.MessageSecurityVersion = MessageSecurityVersion.WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; sec.SecurityHeaderLayout = SecurityHeaderLayout.Strict; sec

Add Saml Assertion to a custom binding

半世苍凉 提交于 2020-12-15 16:38:52
问题 I have this CustomBinding: var sec = new AsymmetricSecurityBindingElement( new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.Never), new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.AlwaysToRecipient)); sec.MessageSecurityVersion = MessageSecurityVersion.WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; sec.SecurityHeaderLayout = SecurityHeaderLayout.Strict; sec

Add Saml Assertion to a custom binding

被刻印的时光 ゝ 提交于 2020-12-15 16:35:51
问题 I have this CustomBinding: var sec = new AsymmetricSecurityBindingElement( new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.Never), new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.AlwaysToRecipient)); sec.MessageSecurityVersion = MessageSecurityVersion.WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; sec.SecurityHeaderLayout = SecurityHeaderLayout.Strict; sec

Add Saml Assertion to a custom binding

浪子不回头ぞ 提交于 2020-12-15 16:35:30
问题 I have this CustomBinding: var sec = new AsymmetricSecurityBindingElement( new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.Never), new X509SecurityTokenParameters(X509KeyIdentifierClauseType.Any, SecurityTokenInclusionMode.AlwaysToRecipient)); sec.MessageSecurityVersion = MessageSecurityVersion.WSSecurity10WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; sec.SecurityHeaderLayout = SecurityHeaderLayout.Strict; sec