this will create a valid xml header to send along, over cfsavecontent:

<!---create xml--->
<cfxml variable="apisend">
<SMS>   
 <authentification>      
  <username></username>      
  <password></password>   
 </authentification>   
 <message>      
  <sender></sender>      
  <text></text>   
 </message>   
 <recipients>      
  <gsm messageId=“clientmsgID1“></gsm>      
  <gsm messageId=“clientmsgID2“></gsm>      
  <gsm messageId=“clientmsgID3“></gsm>      
  <gsm messageId=“clientmsgID4“></gsm>
 </recipients>
</SMS>
</cfxml>

<!---send--->
<cfhttp url="http://www.myserver.com/AddOn/myService/XML/XMLInput"; 
method="POST" throwOnError="Yes" charset="utf-8" result="getresp">
<cfhttpparam type="XML" value="#apisend#">

</cfhttp> 
<!---dump the response--->
<cfdump var="#getresp.filecontent#">



>> Okay, this should be a nut-cracker on this Blog.
>> 
>> I need someone to develop a coldfusion script that will communicate to 
>> a server/service using XML POST.
>> 
>> Parameters are: 
>> 
>> <SMS>
>   
>> <authentification>
>      
>> <username></username>
>      
>> <password></password>
>   
>> </authentification>
>   
>> <message>
>      
>> <sender></sender>
>      
>> <text></text>
>   
>> </message>
>   
>> <recipients>
>      
>> <gsm messageId=“clientmsgID1“></gsm>
>      
>> <gsm messageId=“clientmsgID2“></gsm>
>      
>> <gsm messageId=“clientmsgID3“></gsm>
>      
>> <gsm messageId=“clientmsgID4“></gsm>
>   
>> </recipients>
>> </SMS>
>> 
>> 
>> service url is:: http://www.myserver.com/AddOn/myService/XML/XMLInput.
>
>No replies yet.
>
>Okay let me step this up a little bit.
>
>$20.00 (Taxable) for anyone on cracks this one.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327704
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to