Hello,
I have setup a digital signature for my Service.
Evrything works fine in my spring client prototype
But my WCF prototype is expecting a security header on the response.
Anything i try to add via securementActions just produces the following soap error:Code:<bean id="securityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"> <property name="validationActions" value="Signature" /> <property name="validationSignatureCrypto" ref="cryptoFactoryBean" /> <property name="secureResponse" value="true"/> <property name="securementActions" value="Signature"/> </bean> <bean id="cryptoFactoryBean" class="org.springframework.ws.soap.security.wss4j.support.CryptoFactoryBean"> <property name="keyStorePassword" value="123456" /> <property name="keyStoreLocation" value="classpath:/keystore.p12" /> <property name="keyStoreType" value="pkcs12" /> </bean>
The problem is i seem to need to use MutualCertificate in WCF. I can seem to use one way certfificate with wsHttpBinding as it hashes the whole request and its never seen as a payload.Code:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode xmlns="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Server</faultcode> <faultstring>SOAP Envelope can not have children other than SOAP Header and Body</faultstring> <detail></detail></soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
Can anyone give me a pointer on how to add a signature to my response?


Reply With Quote