Posted: Thu Feb 12, 2015 2:44 am Post subject: IIB9: Encrypting Parts of a Message
Partisan
Joined: 27 May 2014 Posts: 338 Location: Mumbai
Hi
I've to create a soap message that looks like as follows.
Code:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://services.ycs.com"
xmlns:xsd="http://model.ycs.com/xsd">
<soapenv:Header/>
<soapenv:Body>
<ser:serviceCall>
<ser:naradaRequest>
<xsd:requestHeader>
<xsd:apiUserId>String</xsd:apiUserId>
<xsd:apiPasswd>String</xsd:apiPasswd>
<xsd:apiKey>String</xsd:apiKey>
<xsd:channelType>String</xsd:channelType>
<xsd:clientId>String</xsd:clientId>
<xsd:msgRefNo>String</xsd:msgRefNo>
<xsd:msgTimeStamp>String</xsd:msgTimeStamp>
<xsd:sessionKey> {Place the Encrypted Session key} </xsd:sessionKey>
<xsd:token> {Place the Signed Data} </xsd:token>
</xsd:requestHeader>
<xsd:requestBody>
<xsd:request> {Place the Encrypted XML string} </xsd:request>
</xsd:requestBody>
</ser:naradaRequest>
</ser:serviceCall>
</soapenv:Body>
</soapenv:Envelope>
The elements of interest are :
sessionKey : the encrypted symmetric Key (AES256), algo RSA/CBC/PKCS1Padding.
token : the signed data
request : the encrypted data , symmetric key, AES/CBC/PKCS5Padding
Is it possible to achieve the above result by using policy sets?
From what I've been able to read & try in the samples, I suppose this isn't possible , and we'll have to fall back to JCN's ..
It'll be super if there's a way to achieve this via configuration or mapping nodes.. _________________ Regards
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum