Does your Debug.write print out valid data for the "XML:" statement?
Your dataset needs to be declared as type="http" I believe to make it
agree to POST data, otherwise it
looks like a 'local' dataset.

On Wed, Mar 18, 2009 at 12:01 PM, Charles Watt <[email protected]> wrote:
> I'm trying to post some XML data to my server.  Used to be pretty simple:
>
>         myPostData += '\n\n' + this.datapath.serialize();
>         Debug.write('XML: ', myPostData);
>         wrTemplate.setPostBody(myPostData);
>         wrTemplate.doRequest();
>
> No matter what I do the body of the post contains nothing but the "__lzbc__"
> cache buster.
>
> <class name="writedataset" extends="dataset"
>         type="http"
>         querytype="POST"
>         request="false">
>     <attribute name="baseURL" type="string" value="" />
>     <handler name="onerror">
>         Debug.write(this.getSrc() + ': error');
>     </handler>
>     <handler name="ontimeout">
>         Debug.write(this.getSrc() + ': timed out');
>     </handler>
> </class>
>
> <writedataset name="wrTemplate"
> baseURL="http://192.168.9.11/cgi-bin/dcsrm/servers"/>
>
> I've tried explicitly setting both "cacheable" and "clientcacheable" true,
> both on my dataset defintion and dynamically prior to calling doRequest.  My
> post body is always overwritten with __lzbc__.
>
> Any thoughts?
> Charlie Watt
> Racemi
>
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to