Oops, forgive the brain fart. XML is a complex value, you need to
convert it to a string first. All you need to do is wrap your xml
variable with toString() and it should work.

Francois Lévesque on the road

On 2009-10-19, at 8:31, Anene Isioma Wealth <[email protected]>
wrote:

>
> even worse, after removing the cfsave tag, i get this error:
>
> Complex object types cannot be converted to simple values.
> The expression has requested a variable or an intermediate
> expression result as a simple value, however, the result cannot be
> converted to a simple value. Simple values are strings, numbers,
> boolean values, and date/time values. Queries, arrays, and COM
> objects are examples of complex values.
> The most likely cause of the error is that you are trying to use a
> complex value as a simple one. For example, you might be trying to
> use a query variable in a <CFIF> tag. This was possible in
> ColdFusion 2.0 but creates an error in later versions.
>   Sincerely,
> Chuka I.W. Anene
> Chief Software Eng./CEO
> Quorium Solutions
> www.quorium.org
> 07029609185,07032696113
>
>
>
>
> ________________________________
> From: Francois Levesque <[email protected]>
> To: cf-talk <[email protected]>
> Sent: Mon, October 19, 2009 1:23:54 PM
> Subject: Re: Sending XML Post via cfhttp
>
>
> You shouldn't have a cfsavecontent in there. Just use the xml variable
> (declared in your cfxml tag) in your cfhttp call.
>
> Francois L�vesque on the road
>
> On 2009-10-19, at 8:22, Chuka Anene <[email protected]> wrote:
>
>>
>>
>> ">
>>
>> <cfxml variable="XML">
>> <cfsavecontent variable="c">
>> <XML>
>> <EngineDocList>
>> <DocVersion>1.0</DocVersion>
>> <EngineDoc>
>> <ContentType>SMS</ContentType>
>>
>> <SMS>
>>   <authentification>
>>       <username>Quorium</username>
>>       <password>Anene</password>
>>   </authentification>
>>   <message>
>>       <sender>Q-sms Inc.</sender>
>>       <text>Testing XMl Post</text>
>>       <flash>1</flash>
>>       <type>longSMS</type>
>>   </message>
>>   <recipients>
>>       <gsm messageId="clientmsgID1">2347032696113</gsm>
>>   </recipients>
>> </SMS>
>>
>> </EngineDoc>
>> </EngineDocList>
>> </XML>
>> </cfsavecontent>
>> </cfxml>
>>
>>       <cfhttp method="post" url="#server#">
>>            <cfhttpparam type="xml" value="#c#" name="anything">
>>       </cfhttp>
>>
>>
>> This above code gives this error:
>>
>> An error occured while Parsing an XML document.
>>
>> Premature end of file.
>>
>>
>> Does anyone have any ideas?
>>
>>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:327315
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to