Skip to content

Commit

Permalink
Sobre escritura de URL
Browse files Browse the repository at this point in the history
A diferencia de la versión para PHP, ésta no tomaba el parámetro URL del objeto sino que tomaba el que estaba dentro del archivo .wsdl lo que causaba un timeout ya que AFIP parece no estar atendiendo el puerto 80. Como el archivo tenia http y no https el comando getPersona no funcionaba. Revisar si se puede generar nuevo tag para que aparezca también el cambio de @GrrAmd2 y que npm baje la última versión con estos cambios.
  • Loading branch information
pdrappo authored Nov 14, 2020
1 parent 675e475 commit 78de57c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Class/AfipWebService.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ module.exports = class AfipWebService {
};

this.soapClient = await soap.createClientAsync(this.WSDL, soapClientOptions);
/* Sobre escribir la URL del archivo .wsdl */
this.soapClient.setEndpoint(this.URL);
}

// Call to SOAP method
Expand All @@ -85,4 +87,4 @@ module.exports = class AfipWebService {
//Return response parsed as JSON
return result;
}
}
}

0 comments on commit 78de57c

Please sign in to comment.