Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Reading SOAP Headers in web service

New Here ,
Sep 29, 2009 Sep 29, 2009

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

TOPICS
Advanced techniques
563
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 30, 2009 Sep 30, 2009
LATEST

Try GetHttpRequestData()

It returns a structure with the content, headers, and other CGI stuff.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources