title: Using Azure Service Bus in java
body: <p>I'm trying to subscribe to an Azure service bus topic in java. To do that, I need to create a ServiceBusContract instance. In every example I found, they do it like this:</p>
  
  <pre><code>String issuer = "&lt;obtained from portal&gt;";
  String key = "&lt;obtained from portal&gt;";
  Configuration config = 
  ServiceBusConfiguration.configureWithWrapAuthentication(
      “HowToSample”,
      issuer,
      key);  
  ServiceBusContract service = ServiceBusService.create(config);
  </code></pre>
  
  <p>from: <a href="https://www.windowsazure.com/en-us/develop/java/how-to-guides/service-bus-topics/">link</a></p>
  
  <p>However if you take a look at the <a href="http://dl.windowsazure.com/javadoc/com/microsoft/windowsazure/services/serviceBus/ServiceBusConfiguration.html">javadoc</a>, there is no configureWithWrapAuthentication method with 3 String parameters!</p>
  
  <p>I'm using the 0.3.1 version jar of the azure api.</p>
  
  <p>How do I create a ServiceBusContract using these new(?) configureWithWrapAuthentication methods? Or is there something I overlooked?</p>