A shared secret is 20 bytes of binary data. I would suggest using random data... (and it is base64 encoded in the XML)
Here is my c# code for creating distributor:
<request action="create" auth="builtin" xmlns="http://ns.adobe.com/adept">
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());
HttpWebResponse webReaponse = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(webReaponse.GetResponseStream());
i could not get anything in response and niether distributor is created ? can you guess whats wrong with code?
With no response at all I would suspect that your handling of the HTTPWebRequest class is off. What happens when you use curl to do a post?
I am not using CURL. This is simple asp.net/C# (.net framwork 4.0) code. When i execute that i gives error about content type. Invalid content type.
Oh so you are getting a response. I had noticed that you are setting the Content-Type to 'text/xml' instead of the correct value "application/vnd.adobe.adept+xml" - you will want to fix that.
Jim i am very thankful to you for your quick response to my questions. My problem have been soleve . it was a problem with generating hmac. i have got the solution. If anybody interested in C# version of UploadTool i will send the source code to him........