Announcement

Collapse
No announcement yet.

CMS SOAP Request Message Header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CMS SOAP Request Message Header

    I am trying to send 270 messages to Medicare via an HTTPS sender in Mirth. I have everything configured, the certs imported and selected on the destination, and the envelope created but I am struggling to create the SOAP header. Below is the example header given in the companion guide (https://www.cms.gov/Research-Statist...nnectivity.pdf) but I cannot figure out where I need to place our cert info and how to digitally sign it.

    I have no prior experience with this, so any help would be greatly appreciated.

    Thanks. I am on Mirth 3.2.2

    <soap:Header>
    <wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity- utility-1.0.xsd">
    <wsu:Timestamp wsu:Id="id-155">
    <wsu:Created>${timeStamp}</wsu:Created>
    <wsu:Expires>${timeStamp}</wsu:Expires>
    </wsu:Timestamp>
    <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token- profile-1.0#X509v3" wsu:Id="X509-0E4E74F95B0421C31C135515946875040">{{{BST HERE}}}</wsse:BinarySecurityToken>
    <ds:Signature Id="SIG-44" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
    <ds:Reference URI="#id-43">
    <ds:Transforms>
    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
    <InclusiveNamespaces PrefixList="ns1 soap" xmlns="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:Transform>
    </ds:Transforms>
    <dsigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
    <dsigestValue>cKtVDws5KS70zUTfNB90jcz/F5K/GwIiDF09aEV2fMA=</dsigestValue>
    </ds:Reference>
    <ds:Reference URI="#id-155">
    <ds:Transforms>
    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
    <InclusiveNamespaces PrefixList="ns1 soap" xmlns="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:Transform>
    </ds:Transforms>
    <dsigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
    <dsigestValue>tu65ngGe0dl2f2f3iwN/phOQBDXEPFVw2u6/1ZKmX/A=</dsigestValue>
    </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>{{{Encoded Signature Value }}}</ds:SignatureValue>
    <ds:KeyInfo Id="KI-0E4E74F95B0421C31C135515946875041">
    <wsse:SecurityTokenReference wsu:Id="STR0E4E74F95B0421C31C135515946875042">
    <wsse:Reference URI="#X509-0E4E74F95B0421C31C135515946875040" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
    </wsse:SecurityTokenReference>
    </ds:KeyInfo>
    </ds:Signature>
    </wsse:Security>
    </soap:Header>
Working...
X