title: Webservice Exception Javascript DWR
body: <p>I'm trying to unravel a Webservice work and replicating it's call, but I've been unable to do it.</p>
  
  <p>In <a href="http://soap.pentasecurity.cl/Soap2014Web/Poliza.do?idSponsor=OTY2ODMxMjA=#" rel="nofollow">this</a> website, if you input, for example, <code>HY6210</code> a new window appears with data already filled in.
  Using Firebug I was able to determine it was calling
  <a href="http://soap.pentasecurity.cl/Soap2014Web/dwr/call/plaincall/ventaVehiculo.buscarVehiculoDWR.dwr" rel="nofollow">this link</a>,
  but no matter what I do in terms of parameters, headers, and cookies, I always get either:</p>
  
  <pre><code>throw 'allowScriptTagRemoting is false.';
  //#DWR-REPLY
  if (window.dwr) dwr.engine._remoteHandleBatchException({ name:'java.lang.SecurityException',         message:'Call IDs may only contain Java Identifiers' });
  else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({  name:'java.lang.SecurityException', message:'Call IDs may only contain Java Identifiers' });
  </code></pre>
  
  <p>or</p>
  
  <pre><code>throw 'allowScriptTagRemoting is false.';
  //#DWR-REPLY
  if (window.dwr) dwr.engine._remoteHandleBatchException({name:'org.directwebremoting.extend.ServerException',    message:'The specified call count is not a number'    });
  else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number' });
  </code></pre>
  
  <p>Any ideas on what I'm doing wrong?</p>