stinkysGTI
stinkysGTI

Reputation: 611

DocuSign - UsernameToken is expected but not present

I'm trying to embed DocuSign within a site using a custom pdf and found this was pretty useful: DocuSign SDK

Using the examples, I was able to get it working and dynamically adding in collected data before the user signs. However, I've found that it's required to be logged in because it throws the following error otherwise:

UsernameToken is expected but not present in the security header of the incoming message.

I currently have a form that submits to the embeddocusign.php file that's in the \PHP\DocuSignSample folder within the repository I linked to before.

My question is, how do I go about getting this to work without having the user log in?

Upvotes: 0

Views: 171

Answers (1)

Amit K Bist
Amit K Bist

Reputation: 6818

Are you setting anything in the header of the SOAP call? You need to pass IntegratorKey, UserName and its password in the SOAP security header. I would suggest you also explore the DocuSign REST API instead of SOAP as all new features are only available in REST API only, check SDK at https://github.com/docusign/docusign-php-client

Upvotes: 1

Related Questions