VENTES: 1-800-867-1389

 locked
ServiceBus ACS Endpoint REST POST returns 404

    Question

  • 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 ) );

    lundi 12 décembre 2011 03:57

Réponses

  • 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
    lundi 12 décembre 2011 05:30