Azure HPC Scheduler: Running an SOA client outside of Azure

Proposed Answer Azure HPC Scheduler: Running an SOA client outside of Azure

  • mercoledì 16 novembre 2011 17:19
     
     

    This question is in regards to the recently released Windows Azure HPC Scheduler.

    I've been able to deploy a simple SOA service within Azure using the AzureSampleService project. The included sample code (SOAHelloWorldAzureClient) is made to run from the head node. How would modify this code to run from outside of Azure? I've tried to use "mynamespace.cloudapp.net" as the head node when calling Session.CreateSession but I get the error "Fail to get the cluster name". I've specified the correct username and password. I've also tried setting the TransportScheme to TransportScheme.WebAPI.

    My understanding is that CreateSession makes a call to a WebAPI exposed by the Azure Scheduler. Is it possible that this WebAPI isn't mounted by the AzureSampleService project by default?

     

Tutte le risposte

  • giovedì 17 novembre 2011 07:49
     
     
    you need to import the cert (you used when deploying the cluster) to your client, otherwise the server won't be translated.
  • giovedì 17 novembre 2011 17:51
     
     
    I confirmed that the certificate is installed on the machine. Is there something I need to do in the code to get Session.CreateSession to use the certificate?
  • venerdì 18 novembre 2011 22:21
     
     Risposta suggerita
    I've resolved this issue. Looking at the samples I needed to set the ServicePointManager.ServerCertificateValidationCallback property. Thanks for your help.
  • giovedì 24 novembre 2011 03:22
     
     
    Besides the way of setting ServicePointManager.ServerCertificateValidationCallback, you can also import the cert (.pfx) into Trusted People store.