ServiceBus ACS Endpoint REST POST returns 404
-
lundi 12 décembre 2011 03:57
I am trying to get a SWT from the ACS endpoint for my service bus, but I keep getting a 404 "Not Found". The acsEndpoint is the same value that I see in the Management Endpoint field on my AppFabric => Service Bus screen. I don't know what I am missing?
The code I am using is
string serviceName = "xxx";
string acsEndpoint = "https://" + serviceName + "-sb.accesscontrol.windows.net/";
string relyingParty = "http://" + serviceName + ".accesscontrol.windows.net/";
var postData = new NameValueCollection
{
{ "wrap_scope" , relyingParty },
{ "wrap_name" , issuerName },
{ "wrap_password", issuerPassword },
};
var webClient = new WebClient ();
byte[] responseBuffer = webClient.UploadValues ( acsEndpoint, "POST", postData );
Console.WriteLine ( Encoding.UTF8.GetString ( responseBuffer ) );
Toutes les réponses
-
lundi 12 décembre 2011 05:30
I figured it out.. the correct url is
string acsEndpoint = "https://" + serviceName + "-sb.accesscontrol.windows.net/WRAPv0.9/";
- Marqué comme réponse __Anthony__ lundi 12 décembre 2011 17:43

