1 Reply Latest reply on Sep 30, 2009 8:23 AM by mgw4jc

    Reading SOAP Headers in web service

    Chr1ssy

      I am writing a web service in ColdFusion 8 that will read the following SOAP envelope.  

       

         <?xml version="1.0" encoding="utf-8"?>
         <soap:Envelope>
          <soap:Header>
           <WSSecurity>
            <Search>1</Search>
            <User>2</User>
            <Account>3</Account>

            <Password>pass</Password>
           </WSSecurity>
          </soap:Header>
          <soap:Body>
           <SessionTransfer>
            <SearchCriteria>Message</SearchCriteria>
           </SessionTransfer>
          </soap:Body>
         </soap:Envelope>

       

      This is the first time I have ever wrote a webservice.  I have consumed them before.  So my problem is I cannot read the SOAP header!!  In the cfc it gets pass the IsSOAPRequest.  So I think the value coming in is correct.  The request is all there except the headers.  I have read about the getSOAPRequestHeader but that appears to be useful for the person consuming this werbservice and not on my end writing the service.  I could be wrong (and probably am)!  Please help!!

       

      Thanks