我有发送传真的 .net 应用程序,我正在考虑使用 hylaFAX 发送传真。
我找不到如何从 .net 调用 hylafax 服务器。是否有任何库或任何我可以用来从.net 调用 hylafax 的东西?
我在 hylafax 机器上开发和托管了 SOAP webservice(用 java 编写并使用 xfire webservices 托管在 tomcat 中),我从 .net 调用了 web 服务
Web 服务代码将执行 hylafax 操作的命令行,请参见部分代码。我过去做过,效果很好。
public class HylaFaxService{
public String sendFax(String faxno, byte[] bytContent){
// sendfax -n -d 5551212 -d 5551313 /etc/networktemp/f1.pdf
// 1. save the bytContent in some temp file say /etc/networktemp/f1.pdf
// 2. now call the hylafax sendcommand
Runtime.getRuntime().exec("sendfax -n -d 5551212 -d 5551313 /etc/networktemp/f1.pdf");
}
}
HylaFAX 是一个用于 UNIX 系统的电信系统。
您可以将 Hylafax 设置为接受电子邮件以发送传真或将其设置为打印机,然后您就可以使用它进行打印。
但它需要在 Linux/Unix 机器上运行。如果您有任何问题,请查看 hylafax 邮件列表。它有点慢,但你会在几天内得到答案。