COLDFUSION

From CDYNE Wiki
Jump to: navigation, search

NotifyPhoneBasic

<cfsavecontent variable=soapBody>
<cfoutput>
<?xml version='1.0' encoding='utf-8'?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NotifyPhoneBasic xmlns="http://ws.cdyne.com/NotifyWS/">
<PhoneNumberToDial>17575449510</PhoneNumberToDial>
<CallerID>18009843710</CallerID>
<CallerIDname>Test</CallerIDname>
<VoiceID>1</VoiceID>
<TextToSay>Hello, this is a test.</TextToSay>
<LicenseKey>f01d89fd-5155-5455-5585-e84ab8de8591</LicenseKey>
</NotifyPhoneBasic>
</soap:Body>
</soap:Envelope>
</cfoutput>
</cfsavecontent>
<cfhttp
url="http://ws.cdyne.com/NotifyWS/PhoneNotify.asmx"
method=POST
result=httpResponse>
<cfhttpparam
type=header
name=SOAPAction
value="http://ws.cdyne.com/NotifyWS/NotifyPhoneBasic"
/>
<cfhttpparam
type=xml
value="#trim( soapBody )#"
/>
</cfhttp>
<cfoutput>
#xmlParse( httpResponse.fileContent )#
</cfoutput>
Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key