I want to consume the Distributor Mangement Service in C#. I am createing the request XML but could not Generate the Shared Secret for new idstributor being added. The requst XML in ACS Admin Console is as folloing:
http://192.168.0.61:8080/admin/ManageDistributor
<request action="create" auth="builtin" xmlns="http://ns.adobe.com/adept">
<nonce>rNfAkgAAAA4=</nonce>
<expiration>2011-06-20T12:07:58-00:00</expiration>
<distributorData>
<name>Shafqat</name>
<distributorURL>http://www.shafqat.com</distributorURL>
<notifyURL>http://www.shafqat.com/notify</notifyURL>
<description>description shfqat</description>
<maxLoanCount>9</maxLoanCount>
<linkExpiration>19</linkExpiration>
<sharedSecret>Bln2cAmnWpY+oUM8fhy8A2l+tko=</sharedSecret>
</distributorData>
<hmac>8SnrEtwNnDoXF4r4e0g8y27fveo=</hmac>
</request>
I don't know how to generate SharedSecret ?
Can any one help ? its Urgent.
Thanks
The source code of my service :
xml for creating distributor:
<request action="create" auth="builtin" xmlns="http://ns.adobe.com/adept">
<nonce>rNfAkgAAAA4=</nonce>
<expiration>2011-06-20T12:07:58-00:00</expiration>
<distributorData>
<name>Shafqat</name>
<distributorURL>http://www.shafqat.com</distributorURL>
<notifyURL>http://www.shafqat.com/notify</notifyURL>
<description>description shfqat</description>
<maxLoanCount>9</maxLoanCount>
<linkExpiration>19</linkExpiration>
<sharedSecret>Q1nKX1RjimoVy5jzayWcYXe4xuU=</sharedSecret>
</distributorData>
<hmac>8SnrEtwNnDoXF4r4e0g8y27fveo=</hmac>
</request>
C# Source:
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri("http://192.168.0.61:8080/admin/ManageDistributor"));
request.Method = "POST";
request.ContentType = "text/xml";
StreamWriter writer = new StreamWriter(request.GetRequestStream());
writer.Write(Encoding.UTF8.GetBytes(xml));
writer.Close();
HttpWebResponse webReaponse = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(webReaponse.GetResponseStream());
Response.Write(reader.ReadToEnd());
reader.Close();
North America
Europe, Middle East and Africa
Asia Pacific