<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Thycotic Community - Secret Server - using AddSecret webservice - Messages</title>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<description>Thycotic Community - Secret Server - using AddSecret webservice - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Sun, 16 Jan 2011 19:25:15 GMT</pubDate>
<lastBuildDate>Sun, 16 Jan 2011 19:25:15 GMT</lastBuildDate>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[Hmp!...<br/><br/>Just done what I should have done before posting and googled on the error message and found:<br/>&lt;a href="http://www.thycotic.com/products_secretserver_forums.html?postid=1732"&gt;http://www.thycotic.com/products_secretserver_forums.html?postid=1732&lt;/a&gt;<br/><br/>Answer is that you need to provide entries for *all* fields in the template.<br/><br/>I now have a Ruby class that does most of the basic SS operations via SOAP.  It need a bit of polishing and some more work to add the rest of the Actions but the difficult stuff is done.<br/><br/>I'll put it up on github and post a note here when I do.<br/><br/>Russell]]></description>
<pubDate>Sun, 16 Jan 2011 19:25:15 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[mumble -- stripped all the tags even though I put it in ''<br/><br/>Is there a way to post "code" ?]]></description>
<pubDate>Sun, 16 Jan 2011 19:04:21 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[THanks!<br/><br/>Doh! I'd spent hours peering at that!<br/><br/>now getting very close with my program sending what appears to be the correct XML for the AddSecret SOAP:<br/><br/><br/>	<br/>		root<br/>		6BMg2lcuC$qO<br/>		test.insec<br/>	<br/>	075aef4f3a257bc2f398cf....<br/>	6007<br/>	Test pw<br/>	<br/>		111<br/>		110<br/>		108<br/>	<br/><br/><br/><br/>but SS comes back with the error: "Secret Template is out of date."<br/><br/>What exactly is it trying to tell me?<br/>]]></description>
<pubDate>Sun, 16 Jan 2011 19:02:04 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Jonathan J</title>
<description><![CDATA["&lt;a href="https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx/?wsdl""&gt;https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx/?wsdl"&lt;/a&gt;<br/><br/>You have a forward slash between .asmx and ?.  That shouldn't be there.<br/><br/>&lt;a href="https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx?wsdl"&gt;https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx?wsdl&lt;/a&gt;]]></description>
<pubDate>Thu, 23 Dec 2010 13:27:15 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[I am getting a error return from soap -- about two pages of html, sigh...<br/><br/>I think this is the crucial bit:<br/><br/>User: UOA\svc-secretserver" /&gt;<br/>			<br/>			<br/>			<br/>				<br/>					<br/>						Application Error<br/>						<br/>InvalidOperationExceptionRequest format is unrecognized for URL unexpectedly ending in '/'.<br/>						<br/>						See technical details<br/>						<br/>						System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/'.<br/><br/>and here is my little test program:<br/><br/>require 'rubygems'<br/>require 'savon'<br/>require 'pp'<br/><br/>#"secretserver.auckland.ac.nz", "secretserver", 'rful011', password, '', 'EC'<br/><br/>client = Savon::Client.new "&lt;a href="https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx/?wsdl""&gt;https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx/?wsdl"&lt;/a&gt;<br/><br/>resp = client.authenticate! { |soap|<br/>  soap.input = [<br/>     "Authenticate",  {"xmlns" =&gt; "urn:thesecretserver.com"}<br/>    ]<br/>  soap.body =  {:username=&gt;'rful011', :password=&gt; 'xxxx'}<br/>}<br/><br/>pp resp<br/><br/>]]></description>
<pubDate>Tue, 30 Nov 2010 12:53:51 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[making progress <img src="images/smilies/smile.gif" border=0 alt="smile" /><br/><br/>I found the problem that was causing grief yesterday.  an extraneous '?' in the url.<br/><br/>I've also moved from get to post - that was when I spotted the problem in the url.<br/><br/>Now I am getting a "500" response from IIS:<br/><br/>url:<br/>&lt;a href="https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx/AddSecret"&gt;https://secretserver.auckland.ac.nz/secretserver/webservices/SSWebService.asmx/AddSecret&lt;/a&gt;<br/><br/>body of post:<br/>Token=3af74a6737ee7ecfa8eb5eebc42bb26a0ba8e1d72c5e162a6b460fd089eb3f8e9186007ff9b578d7a7b5e7de912b0bd01491e7fddc8d43b748701e63f26699466fdbb95f9a23cbbc1a1f54da6f88ea5d59727ac5d221e651c3931b06a8747ab73fe8300c455c5ca94b5e8f0f97aab67d&secretTypeId=6004&secretName=testpw&secretFieldIds=93&secretFieldIds=94&secretFieldIds=91&secretItemValues=test&secretItemValues=root&secretItemValues=tickle.insec&folderId=<br/><br/>Server Response:<br/><br/>#, @headers={"cache-control"=&gt;["private"], "content-length"=&gt;["103"], "content-type"=&gt;["text/plain; charset=utf-8"], "server"=&gt;["Microsoft-IIS/7.5"], "x-aspnet-version"=&gt;["2.0.50727"], "x-powered-by"=&gt;["ASP.NET"], "date"=&gt;["Tue, 30 Nov 2010 01:20:23 GMT"], "connection"=&gt;["close"]}&gt;<br/><br/>clearly something is not kosher with my addsecret request.<br/><br/>I have also has a look at SOAP -- it is anything but simple <img src="images/smilies/upset.gif" border=0 alt="upset" />  I notice that soap4r has been dropped from the Ruby distro and I am having issues with savon.  Isn't IT wonderful, but it keeps us in a job <img src="images/smilies/smile.gif" border=0 alt="smile" />]]></description>
<pubDate>Tue, 30 Nov 2010 12:01:56 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[Thanks Kevin!<br/><br/>yes, the apparent html puzzled me too.  All the other call return xml as expected.<br/><br/>And thanks for pointing out the issues with GET -- I knew there was a reason I should be using POST.  Doh!  <br/><br/>I've not used SOAP before but will certainly look at soap4r in the longer term.  In the meantime I have a short term project that we need the script for..]]></description>
<pubDate>Mon, 29 Nov 2010 13:05:22 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Kevin</title>
<description><![CDATA[Hi Russell,<br/><br/>Thanks for taking the time to write a Ruby script! I'd be very interested in seeing your results.<br/><br/>Regarding your issue, the missing end tag from "br" and got "td" makes me think that the server is responding with HTML, not XML/SOAP. An HTML response typically means a server-side exception occurred. You'd need to be able to access the raw results to see why.<br/><br/>Working with XML SOAP can be tricky - have you considered using a gem that makes working with SOAP easier? soap4r is a popular gem for that. There are a few reasons why using SOAP with an HTTP POST have benefits.<br/><br/>1. Currently an HTTP GET will log the query string into the IIS logs. If you call AddSecret with a password in the query string, that password is now stuck in an IIS log file somewhere.<br/><br/>2. I've had limited success with query strings, posting an XML SOAP chunk seems to offer better results.<br/><br/>I'll see if I can make any headway on this myself.]]></description>
<pubDate>Mon, 29 Nov 2010 07:38:27 GMT</pubDate>
</item>
<item>
<link>http://www.thycotic.com/forums/messages.aspx?TopicID=318</link>
<title>Message from Russell F</title>
<description><![CDATA[HI folks<br/><br/>I am currently writing a Ruby class to interface to SS.  I have nearly everything going now but I am having problems with the AddSecret method.<br/><br/>I am using the http GET method and the docs are clear for the other method but I am not sure I have the right interpretation for Add:<br/><br/>here is the url I am using (slightly sanitised):<br/>&lt;a href="https://ss.auckland.ac.nz/webservices/SSWebService.asmx/?AddSecret&Token=2fe4e154....65d&secretTypeId=6004&secretName=testpw&secretFieldIds=93&secretFieldIds=94&secretFieldIds=91&secretItemValues=test&secretItemValues=root&secretItemValues=tickle.insec"&gt;https://ss.auckland.ac.nz/webservices/SSWebService.asmx/?AddSecret&Token=2fe4e154....65d&secretTypeId=6004&secretName=testpw&secretFieldIds=93&secretFieldIds=94&secretFieldIds=91&secretItemValues=test&secretItemValues=root&secretItemValues=tickle.insec&lt;/a&gt; <br/><br/>i.e. a list of secretTypeId's followed by a list of secretItemValues.   Is this the way it is supposed to work?<br/><br/>The ruby xml stuff is barfing on what comes back from the web server and I can not easily get at the raw output<br/><br/>/home/rful011/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:341:in `pull': Missing end tag for 'br' (got "td") (REXML::ParseException)<br/>Line: 82<br/>Position: 5393<br/><br/>Any idea as to what is wrong.<br/><br/>BTW I intend to post this on Github when it is done.<br/><br/>Russell]]></description>
<pubDate>Sun, 28 Nov 2010 19:27:45 GMT</pubDate>
</item>
</channel>
</rss>
