Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Try GetHttpRequestData()
It returns a structure with the content, headers, and other CGI stuff.