Wednesday, November 30, 2016

Configure ESB 5.0.0 to send requests through Basic Authenticated HTTP Proxy ( Squid )

This article explains how to send requests through HTTP proxy which is secured by basic authentication.

Configuration at HTTP Proxy ( Squid )


Add the below section in /etc/squid3/squid.conf

auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwords
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users

http_port 3128


Also make sure you have enabled the ports. For testing have enabled all ports in my configuration. Based on your requirement only enable the known ports for security reasons.

acl SSL_ports port 1-65535
acl Safe_ports port 1-65535

Setting up the user for HTTP Proxy


sudo htpasswd -c /etc/squid3/passwords ajanthandocusign 

Configuration at WSO2 ESB 5.0.0



Here the back end endpoint I'm calling is HTTPS, due to that the axis2.xml configurations for proxyProfiles need to be added under the PassThroughHttpSSLSender section. Here you can see the targerHosts set as “ demo.docusign.net”. This is the docusign API HTTPS host name and by providing this only the requests to “ demo.docusign.net” will be routed through HTTP proxy and others will the connected directly.

<transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender">
        <parameter name="non-blocking" locked="false">true</parameter> 
        <parameter name="keystore" locked="false">
            <KeyStore>
                <Location>repository/resources/security/wso2carbon.jks</Location>
                <Type>JKS</Type>
                <Password>wso2carbon</Password>
                <KeyPassword>wso2carbon</KeyPassword>
            </KeyStore>
        </parameter>
        <parameter name="truststore" locked="false">
            <TrustStore>
                <Location>repository/resources/security/client-truststore.jks</Location>
                <Type>JKS</Type>
                <Password>wso2carbon</Password>
            </TrustStore>
        </parameter>
       <parameter name="HostnameVerifier">AllowAll</parameter>
       <parameter name="proxyProfiles">
       <profile>
    <targetHosts>demo.docusign.net</targetHosts>
    <proxyHost>localhost</proxyHost>
    <proxyPort>3128</proxyPort>
    <proxyUserName>ajanthandocusign</proxyUserName>
    <proxyPassword>ajanthandocusign</proxyPassword>
       </profile>      
 </parameter>


            <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
    </transportSender>

Sample API


<api xmlns="http://ws.apache.org/ns/synapse" name="DocusignAPI" context="/testDocSign">
   <resource methods="POST" uri-template="/">
      <inSequence>
         <log level="custom">
            <property name="STATUS" value="----------------DocusignAPI Invoked-------------"/>
         </log>
         <property name="POST_TO_URI" value="true" scope="axis2"/>
         <docusign.init>
            <apiUrl>https://demo.docusign.net</apiUrl>
            <apiVersion>v2</apiVersion>
            <integratorKey>4cd4663d-b437-49c7-b0a6-4df9b6663520</integratorKey>
            <userName>ajanthane@wso2.com</userName>
            <password>EasternProvince1</password>
            <blocking>false</blocking>
         </docusign.init>
         <call>
            <endpoint>
               <http method="GET" uri-template="https://demo.docusign.net/restapi/v2/accounts/2062967/templates"/>
            </endpoint>
         </call>
         <respond/>
      </inSequence>
   </resource>
</api>

Result Verification


By enabling the DEBUG logs at log4j.properties for

log4j.category.org.apache.synapse.transport=DEBUG
log4j.logger.org.apache.synapse.transport.http.wire=DEBUG

We can verify it by the below wso2carbon.log

[2016-11-30 18:16:21,117] DEBUG - TransportUtils createSOAPEnvelope using Builder (class org.apache.synapse.commons.builders.XFormURLEncodedBuilder) selected from type (application/x-www-form-urlencoded)
[2016-11-30 18:16:21,118]  INFO - LogMediator STATUS = ----------------DocusignAPI Invoked-------------
[2016-11-30 18:16:21,118] DEBUG - RelayUtils Content Type is application/x-www-form-urlencoded
[2016-11-30 18:16:21,123] DEBUG - RelayUtils Content Type is application/x-www-form-urlencoded
[2016-11-30 18:16:21,128]  INFO - TimeoutHandler This engine will expire all callbacks after GLOBAL_TIMEOUT: 120 seconds, irrespective of the timeout action, after the specified or optional timeout
[2016-11-30 18:16:21,132] DEBUG - TargetConnections Trying to get a connection {tls}->http://localhost:3128->https://demo.docusign.net:443
[2016-11-30 18:16:21,133] DEBUG - HostConnections Creating new connection pool: {tls}->http://localhost:3128->https://demo.docusign.net:443
[2016-11-30 18:16:21,135] DEBUG - ConnectCallback Connected to remote address: localhost/127.0.0.1:3128 from local address: /127.0.0.1:36335
[2016-11-30 18:16:21,138] DEBUG - TargetHandler http-outgoing-1: Connected (org.apache.synapse.transport.passthru.connections.HostConnections@6ecc458a)
[2016-11-30 18:16:21,139] DEBUG - HostConnections New connection {tls}->http://localhost:3128->https://demo.docusign.net:443 is added to the free list
[2016-11-30 18:16:21,140] DEBUG - DeliveryAgent Submitting new request to the connection: http-outgoing-1
[2016-11-30 18:16:21,143] DEBUG - LoggingNHttpClientConnection http-outgoing-1: Produce output
[2016-11-30 18:16:21,143] DEBUG - TargetHandler http-outgoing-1: Request ready
[2016-11-30 18:16:21,145] DEBUG - TargetHandler http-outgoing-1: Sending CONNECT request to http://localhost:3128
[2016-11-30 18:16:21,145] DEBUG - LoggingNHttpClientConnection http-outgoing-1: CONNECT demo.docusign.net:443 HTTP/1.1
[2016-11-30 18:16:21,145] DEBUG - headers http-outgoing-1 >> CONNECT demo.docusign.net:443 HTTP/1.1
[2016-11-30 18:16:21,146] DEBUG - headers http-outgoing-1 >> Host: demo.docusign.net:443
[2016-11-30 18:16:21,147] DEBUG - headers http-outgoing-1 >> Proxy-Connection: Keep-Alive
[2016-11-30 18:16:21,147] DEBUG - headers http-outgoing-1 >> Proxy-Authorization: Basic YWphbnRoYW5kb2N1c2lnbjphamFudGhhbmRvY3VzaWdu
[2016-11-30 18:16:21,147] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "CONNECT demo.docusign.net:443 HTTP/1.1[\r][\n]"
[2016-11-30 18:16:21,147] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Host: demo.docusign.net:443[\r][\n]"
[2016-11-30 18:16:21,147] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Proxy-Connection: Keep-Alive[\r][\n]"
[2016-11-30 18:16:21,147] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Proxy-Authorization: Basic YWphbnRoYW5kb2N1c2lnbjphamFudGhhbmRvY3VzaWdu[\r][\n]"
[2016-11-30 18:16:21,148] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "[\r][\n]"
[2016-11-30 18:16:21,672] DEBUG - LoggingNHttpClientConnection http-outgoing-1: Consume input
[2016-11-30 18:16:21,672] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "HTTP/1.1 200 Connection established[\r][\n]"
[2016-11-30 18:16:21,672] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "[\r][\n]"
[2016-11-30 18:16:21,672] DEBUG - headers http-outgoing-1 << HTTP/1.1 200 Connection established
[2016-11-30 18:16:21,673] DEBUG - TargetHandler http-outgoing-1: HTTP/1.1 200 Connection established
[2016-11-30 18:16:21,676] DEBUG - TargetHandler http-outgoing-1: Tunnel established
[2016-11-30 18:16:22,623] DEBUG - LoggingNHttpClientConnection http-outgoing-1: Produce output
[2016-11-30 18:16:22,624] DEBUG - TargetHandler http-outgoing-1: Request ready
[2016-11-30 18:16:22,626] DEBUG - LoggingNHttpClientConnection http-outgoing-1: GET https://demo.docusign.net/restapi/v2/accounts/2062967/templates HTTP/1.1
[2016-11-30 18:16:22,626] DEBUG - headers http-outgoing-1 >> GET https://demo.docusign.net/restapi/v2/accounts/2062967/templates HTTP/1.1
[2016-11-30 18:16:22,627] DEBUG - headers http-outgoing-1 >> Accept-Language: en-US,en;q=0.8
[2016-11-30 18:16:22,627] DEBUG - headers http-outgoing-1 >> Accept-Encoding: gzip, deflate
[2016-11-30 18:16:22,627] DEBUG - headers http-outgoing-1 >> X-DocuSign-Authentication: {"Username":"ajanthane@wso2.com","Password":"EasternProvince1","IntegratorKey":"4cd4663d-b437-49c7-b0a6-4df9b6663520"}
[2016-11-30 18:16:22,628] DEBUG - headers http-outgoing-1 >> Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
[2016-11-30 18:16:22,628] DEBUG - headers http-outgoing-1 >> Postman-Token: 50297aed-16db-083f-5ecb-df76b3675402
[2016-11-30 18:16:22,628] DEBUG - headers http-outgoing-1 >> Content-Type: application/x-www-form-urlencoded
[2016-11-30 18:16:22,629] DEBUG - headers http-outgoing-1 >> Accept: */*
[2016-11-30 18:16:22,629] DEBUG - headers http-outgoing-1 >> Cache-Control: no-cache
[2016-11-30 18:16:22,629] DEBUG - headers http-outgoing-1 >> Host: demo.docusign.net
[2016-11-30 18:16:22,630] DEBUG - headers http-outgoing-1 >> Connection: Keep-Alive
[2016-11-30 18:16:22,630] DEBUG - headers http-outgoing-1 >> User-Agent: Synapse-PT-HttpComponents-NIO
[2016-11-30 18:16:22,631] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "GET https://demo.docusign.net/restapi/v2/accounts/2062967/templates HTTP/1.1[\r][\n]"
[2016-11-30 18:16:22,632] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Accept-Language: en-US,en;q=0.8[\r][\n]"
[2016-11-30 18:16:22,632] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Accept-Encoding: gzip, deflate[\r][\n]"
[2016-11-30 18:16:22,633] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "X-DocuSign-Authentication: {"Username":"ajanthane@wso2.com","Password":"EasternProvince1","IntegratorKey":"4cd4663d-b437-49c7-b0a6-4df9b6663520"}[\r][\n]"
[2016-11-30 18:16:22,633] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop[\r][\n]"
[2016-11-30 18:16:22,633] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Postman-Token: 50297aed-16db-083f-5ecb-df76b3675402[\r][\n]"
[2016-11-30 18:16:22,634] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Content-Type: application/x-www-form-urlencoded[\r][\n]"
[2016-11-30 18:16:22,634] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Accept: */*[\r][\n]"
[2016-11-30 18:16:22,634] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Cache-Control: no-cache[\r][\n]"
[2016-11-30 18:16:22,635] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Host: demo.docusign.net[\r][\n]"
[2016-11-30 18:16:22,635] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "Connection: Keep-Alive[\r][\n]"
[2016-11-30 18:16:22,636] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]"
[2016-11-30 18:16:22,636] DEBUG - wire HTTPS-Sender I/O dispatcher-1 << "[\r][\n]"
[2016-11-30 18:16:23,056] DEBUG - LoggingNHttpClientConnection http-outgoing-1: Consume input
[2016-11-30 18:16:23,057] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "HTTP/1.1 200 OK[\r][\n]"
[2016-11-30 18:16:23,057] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "Cache-Control: no-cache[\r][\n]"
[2016-11-30 18:16:23,057] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "Content-Length: 1856[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "Content-Type: application/json; charset=utf-8[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "X-RateLimit-Reset: 1480510800[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "X-RateLimit-Limit: 1000[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "X-RateLimit-Remaining: 998[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "Date: Wed, 30 Nov 2016 12:46:20 GMT[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "{[\r][\n]"
[2016-11-30 18:16:23,058] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "  "envelopeTemplates": [[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "    {[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "templateId": "e67870f4-737d-4300-b6fe-3b842eed5924",[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "name": "SampleAjan1",[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "shared": "true",[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "password": "",[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "description": "Sample",[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "lastModified": "2016-11-29T08:49:32.6230000Z",[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "pageCount": 1,[\r][\n]"
[2016-11-30 18:16:23,059] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "uri": "/templates/e67870f4-737d-4300-b6fe-3b842eed5924",[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "folderName": "Templates",[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "folderId": "b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "folderUri": "/folders/b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "owner": {[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "        "userName": "Ajanthan E",[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "        "email": "ajanthane@wso2.com",[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "        "userId": "4ef8cdca-77c1-41b8-9a11-23461baa9c3f"[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      },[\r][\n]"
[2016-11-30 18:16:23,060] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "emailSubject": "Please DocuSign: Buddha-Quotes-4.jpg",[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "emailBlurb": "",[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "signingLocation": "Online",[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "authoritativeCopy": "false",[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "enableWetSign": "true",[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "allowMarkup": "false",[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "allowReassign": "true"[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "    },[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "    {[\r][\n]"
[2016-11-30 18:16:23,061] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "templateId": "3f75ab09-2e0d-4493-846b-f1d7c7bdbfbd",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "name": "Untitled 11/29/2016",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "shared": "true",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "password": "",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "description": "",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "lastModified": "2016-11-29T08:16:12.5070000Z",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "uri": "/templates/3f75ab09-2e0d-4493-846b-f1d7c7bdbfbd",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "folderName": "Templates",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "folderId": "b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "folderUri": "/folders/b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "owner": {[\r][\n]"
[2016-11-30 18:16:23,062] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "        "userName": "Ajanthan E",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "        "email": "ajanthane@wso2.com",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "        "userId": "4ef8cdca-77c1-41b8-9a11-23461baa9c3f"[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      },[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "emailSubject": "",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "emailBlurb": "",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "signingLocation": "Online",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "authoritativeCopy": "false",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "enableWetSign": "true",[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "      "allowMarkup": "false"[\r][\n]"
[2016-11-30 18:16:23,063] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "    }[\r][\n]"
[2016-11-30 18:16:23,064] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "  ],[\r][\n]"
[2016-11-30 18:16:23,064] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "  "resultSetSize": "2",[\r][\n]"
[2016-11-30 18:16:23,064] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "  "startPosition": "0",[\r][\n]"
[2016-11-30 18:16:23,064] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "  "endPosition": "1",[\r][\n]"
[2016-11-30 18:16:23,064] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "  "totalSetSize": "2"[\r][\n]"
[2016-11-30 18:16:23,064] DEBUG - wire HTTPS-Sender I/O dispatcher-1 >> "}"
[2016-11-30 18:16:23,064] DEBUG - headers http-outgoing-1 << HTTP/1.1 200 OK
[2016-11-30 18:16:23,064] DEBUG - headers http-outgoing-1 << Cache-Control: no-cache
[2016-11-30 18:16:23,064] DEBUG - headers http-outgoing-1 << Content-Length: 1856
[2016-11-30 18:16:23,065] DEBUG - headers http-outgoing-1 << Content-Type: application/json; charset=utf-8
[2016-11-30 18:16:23,065] DEBUG - headers http-outgoing-1 << X-RateLimit-Reset: 1480510800
[2016-11-30 18:16:23,065] DEBUG - headers http-outgoing-1 << X-RateLimit-Limit: 1000
[2016-11-30 18:16:23,065] DEBUG - headers http-outgoing-1 << X-RateLimit-Remaining: 998
[2016-11-30 18:16:23,065] DEBUG - headers http-outgoing-1 << Date: Wed, 30 Nov 2016 12:46:20 GMT
[2016-11-30 18:16:23,065] DEBUG - headers http-outgoing-1 << Strict-Transport-Security: max-age=31536000; includeSubDomains
[2016-11-30 18:16:23,065] DEBUG - TargetHandler http-outgoing-1: HTTP/1.1 200 OK
[2016-11-30 18:16:23,068] DEBUG - TargetHandler http-outgoing-1: Input ready
[2016-11-30 18:16:23,069] DEBUG - TargetHandler http-outgoing-1: Content decoder [content length: 1856; pos: 1856; completed: true]
[2016-11-30 18:16:23,071] DEBUG - LoggingNHttpServerConnection http-incoming-1: Produce output
[2016-11-30 18:16:23,071] DEBUG - SourceHandler http-incoming-1: Response ready
[2016-11-30 18:16:23,071] DEBUG - LoggingNHttpServerConnection http-incoming-1: HTTP/1.1 200 OK
[2016-11-30 18:16:23,071] DEBUG - headers http-incoming-1 << HTTP/1.1 200 OK
[2016-11-30 18:16:23,072] DEBUG - headers http-incoming-1 << Strict-Transport-Security: max-age=31536000; includeSubDomains
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << X-RateLimit-Remaining: 998
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << X-RateLimit-Limit: 1000
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << X-RateLimit-Reset: 1480510800
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << Content-Type: application/json; charset=utf-8
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << Cache-Control: no-cache
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << Date: Wed, 30 Nov 2016 12:46:23 GMT
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << Transfer-Encoding: chunked
[2016-11-30 18:16:23,073] DEBUG - headers http-incoming-1 << Connection: keep-alive
[2016-11-30 18:16:23,073] DEBUG - SourceHandler http-incoming-1: Output ready
[2016-11-30 18:16:23,073] DEBUG - SourceHandler http-incoming-1: Content encoder [chunk-coded; completed: true]
[2016-11-30 18:16:23,074] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "HTTP/1.1 200 OK[\r][\n]"
[2016-11-30 18:16:23,074] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
[2016-11-30 18:16:23,074] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "X-RateLimit-Remaining: 998[\r][\n]"
[2016-11-30 18:16:23,074] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "X-RateLimit-Limit: 1000[\r][\n]"
[2016-11-30 18:16:23,074] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "X-RateLimit-Reset: 1480510800[\r][\n]"
[2016-11-30 18:16:23,074] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Content-Type: application/json; charset=utf-8[\r][\n]"
[2016-11-30 18:16:23,075] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Cache-Control: no-cache[\r][\n]"
[2016-11-30 18:16:23,075] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Date: Wed, 30 Nov 2016 12:46:23 GMT[\r][\n]"
[2016-11-30 18:16:23,075] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Transfer-Encoding: chunked[\r][\n]"
[2016-11-30 18:16:23,075] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "Connection: keep-alive[\r][\n]"
[2016-11-30 18:16:23,075] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "[\r][\n]"
[2016-11-30 18:16:23,075] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "740[\r][\n]"
[2016-11-30 18:16:23,076] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "{[\r][\n]"
[2016-11-30 18:16:23,076] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "  "envelopeTemplates": [[\r][\n]"
[2016-11-30 18:16:23,076] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "    {[\r][\n]"
[2016-11-30 18:16:23,076] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "templateId": "e67870f4-737d-4300-b6fe-3b842eed5924",[\r][\n]"
[2016-11-30 18:16:23,076] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "name": "SampleAjan1",[\r][\n]"
[2016-11-30 18:16:23,076] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "shared": "true",[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "password": "",[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "description": "Sample",[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "lastModified": "2016-11-29T08:49:32.6230000Z",[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "pageCount": 1,[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "uri": "/templates/e67870f4-737d-4300-b6fe-3b842eed5924",[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "folderName": "Templates",[\r][\n]"
[2016-11-30 18:16:23,077] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "folderId": "b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,078] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "folderUri": "/folders/b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,078] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "owner": {[\r][\n]"
[2016-11-30 18:16:23,078] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "        "userName": "Ajanthan E",[\r][\n]"
[2016-11-30 18:16:23,078] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "        "email": "ajanthane@wso2.com",[\r][\n]"
[2016-11-30 18:16:23,078] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "        "userId": "4ef8cdca-77c1-41b8-9a11-23461baa9c3f"[\r][\n]"
[2016-11-30 18:16:23,078] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      },[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "emailSubject": "Please DocuSign: Buddha-Quotes-4.jpg",[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "emailBlurb": "",[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "signingLocation": "Online",[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "authoritativeCopy": "false",[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "enableWetSign": "true",[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "allowMarkup": "false",[\r][\n]"
[2016-11-30 18:16:23,079] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "allowReassign": "true"[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "    },[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "    {[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "templateId": "3f75ab09-2e0d-4493-846b-f1d7c7bdbfbd",[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "name": "Untitled 11/29/2016",[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "shared": "true",[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "password": "",[\r][\n]"
[2016-11-30 18:16:23,080] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "description": "",[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "lastModified": "2016-11-29T08:16:12.5070000Z",[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "uri": "/templates/3f75ab09-2e0d-4493-846b-f1d7c7bdbfbd",[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "folderName": "Templates",[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "folderId": "b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "folderUri": "/folders/b32049c4-4a18-4d09-a647-1c4d383bf3bd",[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "owner": {[\r][\n]"
[2016-11-30 18:16:23,081] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "        "userName": "Ajanthan E",[\r][\n]"
[2016-11-30 18:16:23,082] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "        "email": "ajanthane@wso2.com",[\r][\n]"
[2016-11-30 18:16:23,082] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "        "userId": "4ef8cdca-77c1-41b8-9a11-23461baa9c3f"[\r][\n]"
[2016-11-30 18:16:23,082] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      },[\r][\n]"
[2016-11-30 18:16:23,082] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "emailSubject": "",[\r][\n]"
[2016-11-30 18:16:23,082] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "emailBlurb": "",[\r][\n]"
[2016-11-30 18:16:23,082] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "signingLocation": "Online",[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "authoritativeCopy": "false",[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "enableWetSign": "true",[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "      "allowMarkup": "false"[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "    }[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "  ],[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "  "resultSetSize": "2",[\r][\n]"
[2016-11-30 18:16:23,083] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "  "startPosition": "0",[\r][\n]"
[2016-11-30 18:16:23,084] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "  "endPosition": "1",[\r][\n]"
[2016-11-30 18:16:23,084] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "  "totalSetSize": "2"[\r][\n]"
[2016-11-30 18:16:23,085] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "}[\r][\n]"
[2016-11-30 18:16:23,085] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "0[\r][\n]"
[2016-11-30 18:16:23,085] DEBUG - wire HTTP-Listener I/O dispatcher-1 << "[\r][\n]"


No comments:

Post a Comment