﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Newsgator Forums / NewsGator API / Extras  / ClipPosts / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Newsgator Forums</description><link>http://forum.newsgator.com/</link><webMaster>info@newsgator.com</webMaster><lastBuildDate>Wed, 07 Jan 2009 13:54:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ClipPosts</title><link>http://forum.newsgator.com/Topic10643-8-1.aspx</link><description>Yeah, that's the trouble, ASP.NET won't marshal the array argument in a POST.  This one has to go up as SOAP, unless I deploy a simpler version that clips only one post at a time, but that will take some time to get out to production.</description><pubDate>Thu, 29 Dec 2005 11:39:10 GMT</pubDate><dc:creator>Gordon Weakliem</dc:creator></item><item><title>ClipPosts</title><link>http://forum.newsgator.com/Topic10643-8-1.aspx</link><description>I wasn't entirely sure if we could issue POST statements for the ClipPosts as there was no form or sample in the docs. None the less, with this code:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;br&gt;function ngtoolkitClip(link, page) {&lt;br&gt;	var which = link || page;&lt;br&gt;	var postidXMLHttpRequest = new XMLHttpRequest();&lt;br&gt;	postidXMLHttpRequest.open('POST',"http://services.newsgator.com/ngws/svc/PostItem.asmx/GetPostId");&lt;br&gt;	postidXMLHttpRequest.setRequestHeader('X-NGAPIToken','6CE7A0D1DDF64CAA85D775B19B5714C6');&lt;br&gt;	postidXMLHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");  &lt;br&gt;	postidXMLHttpRequest.onreadystatechange= function () {&lt;br&gt;		if (postidXMLHttpRequest.readyState==4) {&lt;br&gt;			var response = postidXMLHttpRequest.responseText;&lt;br&gt;			var match = response.match("&amp;lt;string xmlns=\"http:\/\/services.newsgator.com/ngws/svc/PostItem.asmx\"&amp;gt;([^`]*?)&amp;lt;\/string&amp;gt;");&lt;br&gt;			var clipXMLHttpRequest = new XMLHttpRequest();&lt;br&gt;			clipXMLHttpRequest.open('POST',"http://services.newsgator.com/ngws/svc/PostItem.asmx/ClipPosts");&lt;br&gt;			clipXMLHttpRequest.setRequestHeader('X-NGAPIToken','6CE7A0D1DDF64CAA85D775B19B5714C6');&lt;br&gt;			clipXMLHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");  &lt;br&gt;			clipXMLHttpRequest.onreadystatechange= function () {&lt;br&gt;				if (clipXMLHttpRequest.readyState==4) {&lt;br&gt;					var response = clipXMLHttpRequest.responseText;&lt;br&gt;					alert(match[1]);&lt;br&gt;					alert(response);&lt;br&gt;&lt;br&gt;				}&lt;br&gt;			}&lt;br&gt;			clipXMLHttpRequest.send("postId=" + match[1] + "&amp;folderId=0");&lt;br&gt;		}&lt;br&gt;	}&lt;br&gt;	postidXMLHttpRequest.send("url=" + link);&lt;br&gt;	&lt;br&gt;}&lt;/pre&gt;&lt;br&gt;&lt;br&gt;response comes back as&lt;br&gt;&lt;br&gt;&lt;blockquote&gt;ClipPosts Web Service method name is not valid&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;Any ideas on what I'm doing wrong?</description><pubDate>Thu, 29 Dec 2005 02:15:12 GMT</pubDate><dc:creator>Arvind</dc:creator></item></channel></rss>