- 16 Dec 2024
- 1 Minute à lire
- SombreLumière
- PDF
genRequest (Command)
- Mis à jour le 16 Dec 2024
- 1 Minute à lire
- SombreLumière
- PDF
Availability: OneSpan Authentication Server 3.7 and later
Scenario: Signature
The genRequest command requests OneSpan Authentication Server to generate a request message, which can be used to initiate a signature validation transaction using Secure Channel.
You can define the transaction data fields either with the SIGNFLD_REQUEST_BODY attribute or with a data field list and the SIGNFLD_TRANSACTION_TITLE attribute. If you decide to use a data field list, you need to define keys and values for each data field and add them to the dataFieldList element.
Parameters
Parameter name | Data type | Description |
---|---|---|
attributeSet | SignatureAttributeSet | Required. A set containing zero or more attribute fields. See Table: genRequest (Supported input attributes). |
dataFieldList | DataFieldList | Optional. A list of key/value pairs to specify the transaction data fields to sign (see DataFieldList (Data type)). |
Parameter name | Data type | Description |
---|---|---|
results | SignatureResults | Required. Result structure containing return and status codes and a list of zero or more result attribute fields. See Table: genRequest (Supported output attributes). |
DataFieldList (Data type)
Element name | Data type | Description |
---|---|---|
dataField | DataField | Optional. A key/value pair to specify a data field to sign (see DataField (Data type)). |
DataField (Data type)
Element name | Data type | Description |
---|---|---|
key | String | Required. The key of the data field. |
value | String | Required. The value of the data field. |
The following attributes can be specified in the attributeSet input parameter of this command:
The following attributes will be specified in the results output parameter of this command:
For more information about the specific attributes, see Table: SOAP signature field attributes.
Examples
Generate a request by specifying the transaction data fields with the SIGNFLD_REQUEST_BODY attribute:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <sig:genRequest xmlns:sig="http://www.vasco.com/IdentikeyServer/IdentikeyTypes/Signature" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <attributeSet> <attributes> <value xsi:type="xsd:string">jane.doe</value> <attributeID>SIGNFLD_USERID</attributeID> </attributes> <attributes> <value xsi:type="xsd:string">SOAP Signature Client</value> <attributeID>SIGNFLD_COMPONENT_TYPE</attributeID> </attributes> <attributes> <value xsi:type="xsd:string">001081F4DCF4B9F4DCF4BCF4...</value> <attributeID>SIGNFLD_REQUEST_BODY</attributeID> </attributes> </attributeSet> </sig:genRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Generate a request by specifying the transaction data fields with the dataFieldList element:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <sig:genRequest xmlns:sig="http://www.vasco.com/IdentikeyServer/IdentikeyTypes/Signature" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <attributeSet> <attributes> <value xsi:type="xsd:string">jane.doe</value> <attributeID>SIGNFLD_USERID</attributeID> </attributes> <attributes> <value xsi:type="xsd:string">SOAP Signature Client</value> <attributeID>SIGNFLD_COMPONENT_TYPE</attributeID> </attributes> <attributes> <value xsi:type="xsd:string">My transaction</value> <attributeID>SIGNFLD_TRANSACTION_TITLE</attributeID> </attributes> </attributeSet> <dataFieldList> <dataField> <key>key1</key> <value>value1</value> </dataField> <dataField> <key>key2</key> <value>value2</value> </dataField> </dataFieldList> </sig:genRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope>