问题标签 [cosign-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
103 浏览

digital-signature - CoSign API:SPML WS - 用户管理查询

我正在尝试使用 CoSign SPML WS 创建一个新用户。

我正在使用的代码(C#.NET)如下。有人可以告诉我是否PSOIdentifierType.ID正确(即“用户的 ID”)以及目标 ID 应该是什么,我认为它应该是空白的,因为用户还不存在。

0 投票
1 回答
154 浏览

digital-signature - CoSign API:使用 DSS Web 服务设置日期格式

尝试使用 DSS Web 服务为签名字段指定日期格式时遇到问题。这是我的代码:

我尝试按如下方式签署文件:

我从 ResponseBaseType 对象得到以下响应:

urn:oasis:names:tc:dss:1.0:resultmajor:Insufficient Information Error parsing OptionalInput SAPISigFieldSettings

如果我不指定日期格式,它可以正常工作。有任何想法吗?

0 投票
1 回答
930 浏览

digital-signature - CoSign API:从 suds 生成的 Python 客户端发送 SOAP

我需要从 Python 访问签名设备。为此,我使用 suds 从位于https://cosigndemo.arx.com:8080/sapiws/dss.asmx?wsdl的 WSDL 生成了一个 Python 客户端。然后,我使用生成的客户端构建了一个简单的签名请求,该请求或多或少与 ARX 提供的 Java 示例中所示的相同(只是,我要求的是不可见的签名)。问题是,当我将请求发送到演示设备时,我收到的回报如下:

这是我编写的 Python 代码:

这是(至少我认为)它发送到设备的 SOAP:

请注意,出于空间原因,我在这里用“...”替换了(非常长的)Base64Data 内容。为什么它不起作用?

更新由于答案而解决了问题。这是向 PDF 添加 sig 的工作代码:

0 投票
1 回答
273 浏览

digital-signature - CoSign 的时间戳服务

我在编写使用 SAPI 签署 PDF 的 PHP 脚本方面取得了进展。示例代码很有帮助,但我尝试利用其他一些 SAPI 功能并有几个问题:

我试图让签名加盖时间戳。所以基本上我在 PHP 示例中添加了以下代码:

不幸的是,现在代码不起作用。我想我在正确的位置添加了标志。任何人都可以对此有所了解吗?我回来的错误是:

0 投票
1 回答
292 浏览

c# - CoSign API:如何通过 C# SAPI 启用多页签名?

我需要能够获取多页 PDF 并在每一页上应用相同的签名。该功能是否通过 SAPI 公开?我的文档中的页数会有所不同,我更愿意自动执行此操作,而不必询问最终用户文档中有多少页。

0 投票
1 回答
287 浏览

digital-signature - CoSign API:使用 SAPI 签署 PDF 流?

在我的项目中,我将使用来自 PDF 的流。我可以即时添加自定义签名以进行流式传输吗?我已经下载了示例缓冲区标志。它签署文件,但没有地方签名。在我的项目中,我需要在适当的位置添加自定义签名,如 PDF 示例:

0 投票
1 回答
229 浏览

digital-signature - CoSign API:SAPI 用户管理(添加编辑删除)示例?

我的应用程序使外部签名者能够签署文档。——不是雇员的签名者。我的应用程序将为他们创建一个 CoSign 数字证书。然后他们将签署文件,然后应该从系统中删除用户。我希望我的应用程序以编程方式创建/删除用户。

是否有 SAPI 用户管理 API 的 C# 示例?

0 投票
1 回答
1357 浏览

digital-signature - CoSign API:如何使用 web 服务和 java 签署 docx

我想在 CoSign 系统中签署 Word docx 文件。我希望签名的文件是 Word 文档;我不希望它转换为 PDF。我正在使用 Java。我正在使用下面的测试程序,但它不起作用。

0 投票
1 回答
76 浏览

digital-signature - CoSign API: Controlling the font size in the signature block

Is there any way to control the font size in a signature field when a user signs a document using the web service?

I'm referring specifically to the name, title and date attributes--as well as their respective labels--and not the graphical signatures.

In the API Guide -- under Appendix C: SAPI ENUMS Part II: SAPICrypt -- I see SAPI_ENUM_CONF_ID_PDF_FONT_SIZE. But it looks like this is specific to SAPICrypt and not the SAPI Web Service.

0 投票
1 回答
118 浏览

digital-signature - CoSign API: How to display the signer's title in a signature

How do I display the user's title in a signature field?

I've tried setting the Description and Job Title properties, but it doesn't show up in the signature, even when I include SAPI_ENUM_DRAWING_ELEMENT_TITLE in the signature appearance's flag.