ebXML Module 7.1 SP1 | Understanding and Using webMethods EBXML Module | Installing and Using ebxml Module | ebXML Module Security Features | Configuring S/MIME Support | S/MIME Support - Sample
 
S/MIME Support - Sample
For example, you perform the following procedures to set the TPA parameters to send XML signed and S/MIME signed and encrypted message and receive signed acknowledgment for ebXML Message Service Version 2.0 Specification.
*To set the TPA parameters for sending XML signed and S/MIME encrypted messages, and receiving signed acknowledgment
1. Start the Trading Networks Console.
2. Open the agreement for edit:
a. From Trading Networks Console, select View > Agreements.
b. Select the agreement you would like to edit. ClickEdit.
The Agreements Details screen appears.
c. On the right side of the Agreement Details screen, click Set Inputs.
The input for com.wm.estd.ebxml.documents appears.
Note:
You can edit the TPA parameters in an agreement only if the Agreement Status is Proposed. For information about changing the TPA agreement status, see the webMethods Trading Networks Administrator’s Guide for your release.
3. Modify the default TPA parameters, as necessary. For a list of the TPA parameters and the valid values for individual parameters, see Trading Partner Agreement Parameters Version 2. 0 and Trading Partner Agreement Parameters Version 2. 0.
4. For signed asynchronous acknowledgment, set the following TPA parameters as shown below:
Parameter
Value
CollaborationProtocolAgreement.PartyInfo.DeliveryChannel.MessagingCharacteristics: syncReplyMode
None
CollaborationProtocolAgreement.PartyInfo.DeliveryChannel.MessagingCharacteristics:ackRequested
Signed
5. To create an XML signed ebXML Envelope using SHA1 hash algorithm and RSA signature algorithm, set the following TPA parameters as shown below:
Parameter
Value
CollaborationProtocolAgreement.PartyInfo.CollaborationRole.ServiceBinding.CanSend. ThisPartyActionBinding.BusinessTransactionCharacteristics: isNonRepudiationRequired
true
CollaborationProtocolAgreement.PartyInfo.DocExchange.ebXMLSenderBinding.SenderNonRepudiation:NonRepudiationProtocol
http://www.w3.org/2000/09/xmldsig#
CollaborationProtocolAgreement.PartyInfo.DocExchange.ebXMLSenderBinding.SenderNonRepudiation:HashFunction
http://www.w3.org/2000/09/xmldsig#sha1
CollaborationProtocolAgreement.PartyInfo.DocExchange.ebXMLSenderBinding.SenderNonRepudiation:SignatureAlgorithm
http://www.w3.org/2000/09/xmldsig#rsa-sha1
6. Set the TPA parameters for S/MIME signature and tripleDES encryption algorithm, as shown below:
Parameter
Value
CollaborationProtocolAgreement.PartyInfo.CollaborationRole.ServiceBinding.CanSend.ThisPartyActionBinding.BusinessTransactionCharacteristics. isConfidential
persistent or transient-and-persistent to enable the S/MIME signing and encryption feature
CollaborationProtocolAgreement.PartyInfo.DocExchange.ebXMLReceiverBinding.ReceiverDigitalEnvelope.DigitalEnvelopeProtocol:body
S/MIME
CollaborationProtocolAgreement.PartyInfo.DocExchange.ebXMLReceiverBinding.ReceiverDigitalEnvelope.DigitalEnvelopeProtocol:version
2.0
CollaborationProtocolAgreement.PartyInfo.DocExchange.ebXMLReceiverBinding.ReceiverDigitalEnvelope.EncryptionAlgorithm:body
tripleDES
7. For each payload, set the following TPA parameters as shown below:
Parameter
Value
CollaborationProtocolAgreement.Packaging.CompositeList.Encapsulation.id
sig+enc_001
CollaborationProtocolAgreement.Packaging.CompositeList.Encapsulation:mimetype
application/pkcs7-mime
CollaborationProtocolAgreement.Packaging.CompositeList.Encapsulation:mimeparameters
smime-type="signed-*encrypted-*"
CollaborationProtocolAgreement.Packaging.CompositeList.Encapsulation.Constituent:idref
c_001
Note:
This parameter value is set assuming that there is an entry in the SimplePart section of the TPA with an idc_001.
8. Package the message by setting the following TPA parameter as shown below:
Parameter
Value
CollaborationProtocolAgreement.Packaging.CompositeList.Composite:id
xmlSignAndEncComposite
CollaborationProtocolAgreement.Packaging.CompositeList.Composite.Constituent:idref
Sample-Envelope
CollaborationProtocolAgreement.Packaging.CompositeList.Composite.Constituent.idref: excludedFromSignature
false
CollaborationProtocolAgreement.Packaging.CompositeList.Composite.Constituent:idref
sig+enc_001
CollaborationProtocolAgreement.Packaging.CompositeList.Composite.Constituent.idref:excludedFromSignature
false