1 Reply Latest reply on Dec 19, 2012 1:00 PM by BKBK

    SOAP cfhttpparam header syntax


      I have been working for days trying to figure out this web service header issue.



      Format I need to send Header in:


       <wsse:Security soap:mustUnderstand="1">
        <wsse:UsernameToken namespaces>
                  <wsse:Password Type="type info">password</wsse:Password>
                  <wsu:Created>date created</wsu:Created>



      What I have


      <cfsavecontent variable="soapHeader">
              <wsse:Security soap:mustUnderstand="1">
                  <wsse:UsernameToken namespaces>
                      <wsse:Password Type="type info">myPassword</wsse:Password>
              value="#trim( soapHeader )#"/> 
              value="#trim( soapBody )#"/>


      It's connecting to the destination but my header syntax isn't correct. I feel like I should be using cfhttpparam's to include the header data, but I'm not sure of the syntax I should be using there.  Because in the 'Format I need to send Header in' it's written like 'wsse:Security' and within that 'wsse:UsernameToken namespaces'.


      How do I format my httpparams to include my fields correctly?

      I tried :

      cfhttpparam      type="header"      name="Security:UsernameToken"

      But it didn't work.


      Any help would be appreciated.

      Thank you.