title: Call a webservice from javascript
body: <p>I would like to call a webservice from javascript.</p>
  
  <p>I tried:</p>
  
  <pre><code>var locator = new Service1Locator();
  var wsdlURL = new URL(address);
  var proxy = locator.getBasicHttpBinding_IService1(wsdlURL);
  var result = proxy.execute("John Doe");
  </code></pre>
  
  <p>taken from : <a href="https://stackoverflow.com/questions/2147983/mirth-connect-javascript-to-call-a-webservice">Mirth Connect: javascript to call a webservice</a> but it neither works nor do I understand it.</p>
  
  <p>Can anyone help me please?</p>
  
  <p>Lily</p>