My DocuSign Connect Listener cannot deserialize the XML it's receiving. The Envelope is always null. I have decorated both my class and it's interface with the [ServiceBehavior(Namespace = "http://www.docusign.net/API/3.0")] and decorated the Operation Contract with XmlSerializerFormat. Does anyone know what I'm doing wrong?
I don't know what you mean by https://www.docusign.net/API/3.0/, that is not a valid url.
Answer
In my listeners I use a suitable XML library (platform/stack specific) to pull values and documents out of the notification messages.
These days, there are often XML libraries that are more convenient than the standard libxml2 and its various wrappers. For example, BeautifulSoup for Python
You can see working examples of a DocuSign Connect/eventNotification listener in various languages and stacks:
Java
Node JS
C#
PHP
Python
Also, check out the webhook recipe for more information.
Debugging, the logging facility for the connect messages is also very helpful. See the DocuSign Admin panel, the "Integrations" section, the "Connect" item for access to the logs.
Related
When you buy a flight and receive a confirmation email, GMail recognizes it's a flight and adds departure/return tabs at the top of the message.
Using GMail API, I would like to use that information to get all flights from my inbox. Is this possible?
Content that is outside the message body of an email is not accessible from the GMail API. So you won't be able to access the info in any auto-generated tabs.
However, GMail may have auto-labeled the messages as "Travel". If that's the case then you can leverage the GMail API to filter messages using the "Travel" label.
You'll then have to parse the email message for the desired information.
Writing a custom parser can be difficult. However, if the message is annotated so that it conforms to specifications outlined by Google and Schema.org, parsing flight information will be considerably easier. One can assume that flight confirmation messages that trigger the auto-generation of those tabs have flight/reservation specific mark-up embedded within them (but you should probably verify that the email contains said mark-up all the same).
The following links discuss how vendors should embed these special mark-up into their messages:
https://developers.google.com/gmail/markup/getting-started
https://developers.google.com/gmail/markup/reference/flight-reservation#basic_flight_confirmation
You should be able to use those docs to build a custom parser that can detect and parse the required mark-up schema or better yet leverage an open-source library to do so.
Twilio provides some documentation that explains how to create interactive voice experiences, for example, how to prompt for key-press from the caller and offer different menus or perform actions based on it.
However I cannot find any information on how I might be able to fetch data from a third-party service based on user input.
For example, suppose a user enters his zipcode into the keypad, I would like to fetch the weather from a weather API and return it to the user in speech form.
Is this possible? And if yes, how?
Very possible. You can take a look at the documentation below but the key widget is the HTTP Request Widget.
Studio Widget Library
https://www.twilio.com/docs/studio/widget-library#http-request
The relevant line is:
"JSON: If your HTTP Widget returns valid JSON, you should be able to access it via widgets.MY_WIDGET_NAME.parsed" variable.
Studio User Guide - Working with Variables
https://www.twilio.com/docs/studio/user-guide#working-with-variables
I have set a web hook URL for docusign API. when any update from document signer come, i will get update about envelop. but how can i get the response? What is the format. Can someone show me a example?
In order to receive and process webhook notifications from DocuSign Connect, you'll need to create an application to "listen" for (and process) the notifications. DocuSign provides sample applications like this in a variety of languages -- you can use this link to find those samples on GitHub: https://github.com/docusign?utf8=%E2%9C%93&q=connect.
For example, here's the webhook sample in PHP: https://github.com/docusign/recipe-010-webhook-php.
You will get response from DocuSign in an XML format, You can find more details at https://www.docusign.com/blog/dsdev-adding-webhooks-application/,
https://www.docusign.com/supportdocs/ndse-admin-guide/Content/connect-technical-details.htm and Guide is available at https://www.docusign.com/supportdocs/pdf/connect-guide.pdf
is it possible to print/log the request response while using the Netsuite API, is there any property we need to set in the nsclient.properties file that might help.
I am trying to find this so that while integrating with NetSuite, in case of any issues, I don't have to go check the API request/response logs in NetSuite.
regards,
Moin
Requests and responses are logged within NetSuite itself. You need to have the Admin role to see them.
I don't think so. I'm not pretty sure that there is any inbuilt feature in NetSuite that allows you to log the request and response of your deployed Restlet. In Netsuite there is a method called :
nlapiLogExecution(logType, title, details)
Which you can use for temporal logging/Debugging. However, it doesn't persist your logging data permanently, so you can't use the same later. Yeah, Of-course you can find many workarounds to get your task done. Create a custom record with appropriate fields for logging then inside your restlet you can write the code to create a log file for each req/resp.
I would like to implement the DocuSign Connect as a rest listener.
I cannot find anywhere a complete documentation of the xml schema that the listener will receive.
I know that there is an example in the pdf:
http://764be237d39fdfa0985f-37a6c1f0731907180d9764651d02bea9.r5.cf2.rackcdn.com/DocuSign_Connect_Service_Guide.pdf
but I am wondering if there is a more formal description like for example an xsd.
You can also reference the complete XSD here: https://www.docusign.net/api/3.0/schema/dsx.xsd
Each Connect message will contain an EnvelopeStatus object and DocumentPDF objects -- the full structure of these objects is specified in the DocuSign WSDL: https://www.docusign.net/api/3.0/schema/dsapi.wsdl.
Taken from the DocuSign Connect Service Guide (http://764be237d39fdfa0985f-37a6c1f0731907180d9764651d02bea9.r5.cf2.rackcdn.com/DocuSign_Connect_Service_Guide.pdf):
"The XML post from DocuSign contains the EnvelopeStatus object along with DocumentPDF objects, if the configuration has the checkbox to include the push of the documents.
The DocuSign 3.0 API WSDL file that contains definitions for both structures is located on the DocuSign website. It can be found at: https://www.docusign.net/api/3.0/api.asmx?wsdl."