{Stuck}通过Docusign php为模板填充数据

时间:2015-12-03 07:51:01

标签: php soap docusignapi

我正在为DocuSign使用SOAP API。这是模拟账户。

所以,我已经基于sendatemplate.php创建了我的代码,我使用templatereference类来创建我的FieldData,这是数组中的结果

Array ( [0] => TemplateReference Object ( [TemplateLocation] => Server 
[Template] => 2ade4fe1-9b7b-49eb-af2e-xxxxxxxxx [Document] => 
[RoleAssignments] => Array ( [0] => TemplateReferenceRoleAssignment Object ( 
[RoleName] => Signer1 [RecipientID] => 1 ) ) [FieldData] => 
TemplateReferenceFieldData Object ( [DataValues] => Array ( [0] => 
TemplateReferenceFieldDataDataValue Object ( [TabLabel] => Company [Value] 
=> Otto ) ) ) [AdditionalTabs] => [Sequence] => [TemplateAttachments] => ) )

然后我使用RequestStatusResponse,这是我的结果:

RequestStatusResponse Object
(
    [RequestStatusResult] => EnvelopeStatus Object
        (
            [RecipientStatuses] => stdClass Object
                (
                    [RecipientStatus] => Array
                        (
                            [0] => RecipientStatus Object
                                (
                                    [Type] => Signer
                                    [Email] => xxxxxx@yahoo.com
                                    [UserName] => xxxxx
                                    [RoutingOrder] => 1
                                    [Sent] => 2015-12-02T22:56:01.317
                                    [Delivered] => 2015-12-02T22:56:13.567
                                    [Signed] => 
                                    [Declined] => 
                                    [DeclineReason] => 
                                    [Status] => Delivered
                                    [RecipientIPAddress] => xxxxxxxx
                                    [ClientUserId] => 1
                                    [AutoNavigation] => 
                                    [IDCheckInformation] => 
                                    [RecipientAuthenticationStatus] => 
                                    [CustomFields] => stdClass Object
                                        (
                                        )

                                    [TabStatuses] => stdClass Object
                                        (
                                            [TabStatus] => Array
                                                (
                                                    [0] => TabStatus Object
                                                        (
                                                            [TabType] => SignHere
                                                            [Status] => Active
                                                            [XPosition] => 1333
                                                            [YPosition] => 964
                                                            [Signed] => 
                                                            [TabLabel] => Signature 1
                                                            [TabName] => Signature
                                                            [TabValue] => 
                                                            [DocumentID] => 
                                                            [PageNumber] => 
                                                            [OriginalValue] => 
                                                            [ValidationPattern] => 
                                                            [RoleName] => 
                                                            [ListValues] => 
                                                            [ListSelectedValue] => 
                                                            [ScaleValue] => 
                                                            [CustomTabType] => 
                                                        )

                                                    [1] => TabStatus Object
                                                        (
                                                            [TabType] => Custom
                                                            [Status] => Active
                                                            [XPosition] => 989
                                                            [YPosition] => 916
                                                            [Signed] => 
                                                            [TabLabel] => Address
                                                            [TabName] => Address
                                                            [TabValue] => 
                                                            [DocumentID] => 
                                                            [PageNumber] => 
                                                            [OriginalValue] => 
                                                            [ValidationPattern] => 
                                                            [RoleName] => 
                                                            [ListValues] => 
                                                            [ListSelectedValue] => 
                                                            [ScaleValue] => 
                                                            [CustomTabType] => 
                                                        )

                                                    [2] => TabStatus Object
                                                        (
                                                            [TabType] => FullName
                                                            [Status] => Active
                                                            [XPosition] => 989
                                                            [YPosition] => 872
                                                            [Signed] => 
                                                            [TabLabel] => Name 1
                                                            [TabName] => Name
                                                            [TabValue] => 
                                                            [DocumentID] => 
                                                            [PageNumber] => 
                                                            [OriginalValue] => 
                                                            [ValidationPattern] => 
                                                            [RoleName] => 
                                                            [ListValues] => 
                                                            [ListSelectedValue] => 
                                                            [ScaleValue] => 
                                                            [CustomTabType] => 
                                                        )

                                                    [3] => TabStatus Object
                                                        (
                                                            [TabType] => Company
                                                            [Status] => Active
                                                            [XPosition] => 683
                                                            [YPosition] => 252
                                                            [Signed] => 
                                                            [TabLabel] => Company
                                                            [TabName] => Company
                                                            [TabValue] => 
                                                            [DocumentID] => 
                                                            [PageNumber] => 
                                                            [OriginalValue] => 
                                                            [ValidationPattern] => 
                                                            [RoleName] => 
                                                            [ListValues] => 
                                                            [ListSelectedValue] => 
                                                            [ScaleValue] => 
                                                            [CustomTabType] => 
                                                        )

                                                )

                                        )

                                    [RecipientAttachment] => 
                                    [AccountStatus] => 
                                    [EsignAgreementInformation] => 
                                    [FormData] => 
                                    [RecipientId] => 
                                )

                        )

                )

我没有看到我的公司值已填充。

请帮助!!!

我正在使用PHP代码执行此操作。

0 个答案:

没有答案