{"action":"created","comment":{"url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/comments/75922056","id":75922056,"diff_hunk":"@@ -0,0 +1,100 @@\n+/*\n+ * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ *   WSO2 Inc. licenses this file to you under the Apache License,\n+ *   Version 2.0 (the \"License\"); you may not use this file except\n+ *   in compliance with the License.\n+ *   You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *  Unless required by applicable law or agreed to in writing,\n+ *  software distributed under the License is distributed on an\n+ *  \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ *  KIND, either express or implied.  See the License for the\n+ *  specific language governing permissions and limitations\n+ *  under the License.\n+ */\n+package org.wso2.carbon.inbound.salesforce.poll;\n+\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.apache.synapse.SynapseException;\n+import org.eclipse.jetty.client.ContentExchange;\n+import org.eclipse.jetty.client.HttpClient;\n+import org.xml.sax.SAXException;\n+\n+import javax.xml.parsers.ParserConfigurationException;\n+import java.io.ByteArrayInputStream;\n+import java.io.IOException;\n+import java.io.UnsupportedEncodingException;\n+import java.net.MalformedURLException;\n+import java.net.URL;\n+\n+public final class SoapLoginUtil {\n+    private static final Log log = LogFactory.getLog(SoapLoginUtil.class);\n+\n+    private static String sessionId, LoginUrl;\n+\n+    private static byte[] soapXmlForLogin(String username, String password)\n+            throws UnsupportedEncodingException {\n+        return (SalesforceConstant.ENV_START +\n+                \"  <urn:login>\" +\n+                \"    <urn:username>\" + username + \"</urn:username>\" +\n+                \"    <urn:password>\" + password + \"</urn:password>\" +\n+                \"  </urn:login>\" +\n+                SalesforceConstant.ENV_END).getBytes(\"UTF-8\");\n+    }\n+\n+    public static void login(HttpClient client, String username, String password) throws IOException, InterruptedException, SAXException,","path":"salesforce/salesforce-inbound-endpoint/salesforce-inbound-endpoint-1.0.0/src/main/java/org/wso2/carbon/inbound/salesforce/poll/SoapLoginUtil.java","position":49,"original_position":49,"commit_id":"2237a51a6ccf94ec08061180ec0dba31c537e1de","original_commit_id":"2237a51a6ccf94ec08061180ec0dba31c537e1de","user":{"login":"hariss63","id":2864386,"avatar_url":"https://avatars.githubusercontent.com/u/2864386?v=3","gravatar_id":"","url":"https://api.github.com/users/hariss63","html_url":"https://github.com/hariss63","followers_url":"https://api.github.com/users/hariss63/followers","following_url":"https://api.github.com/users/hariss63/following{/other_user}","gists_url":"https://api.github.com/users/hariss63/gists{/gist_id}","starred_url":"https://api.github.com/users/hariss63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariss63/subscriptions","organizations_url":"https://api.github.com/users/hariss63/orgs","repos_url":"https://api.github.com/users/hariss63/repos","events_url":"https://api.github.com/users/hariss63/events{/privacy}","received_events_url":"https://api.github.com/users/hariss63/received_events","type":"User","site_admin":false},"body":"Fixed in https://github.com/wso2-attic/esb-connectors/pull/557/commits/6e5de3ec365a0f100e1a1d62581a42a82aa9a0fd","created_at":"2016-08-23T18:17:29Z","updated_at":"2016-08-23T18:17:29Z","html_url":"https://github.com/wso2-attic/esb-connectors/pull/435#discussion_r75922056","pull_request_url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435","_links":{"self":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/comments/75922056"},"html":{"href":"https://github.com/wso2-attic/esb-connectors/pull/435#discussion_r75922056"},"pull_request":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435"}}},"pull_request":{"url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435","id":52644401,"html_url":"https://github.com/wso2-attic/esb-connectors/pull/435","diff_url":"https://github.com/wso2-attic/esb-connectors/pull/435.diff","patch_url":"https://github.com/wso2-attic/esb-connectors/pull/435.patch","issue_url":"https://api.github.com/repos/wso2-attic/esb-connectors/issues/435","number":435,"state":"closed","locked":false,"title":"Added Salesforce Streaming API Inbound","user":{"login":"hariss63","id":2864386,"avatar_url":"https://avatars.githubusercontent.com/u/2864386?v=3","gravatar_id":"","url":"https://api.github.com/users/hariss63","html_url":"https://github.com/hariss63","followers_url":"https://api.github.com/users/hariss63/followers","following_url":"https://api.github.com/users/hariss63/following{/other_user}","gists_url":"https://api.github.com/users/hariss63/gists{/gist_id}","starred_url":"https://api.github.com/users/hariss63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariss63/subscriptions","organizations_url":"https://api.github.com/users/hariss63/orgs","repos_url":"https://api.github.com/users/hariss63/repos","events_url":"https://api.github.com/users/hariss63/events{/privacy}","received_events_url":"https://api.github.com/users/hariss63/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-04T09:04:38Z","updated_at":"2016-08-23T18:17:29Z","closed_at":"2015-12-18T04:57:06Z","merged_at":"2015-12-18T04:57:06Z","merge_commit_sha":"14b9c108b6d85701ed482f7510f588b24860292c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435/commits","review_comments_url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435/comments","review_comment_url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2-attic/esb-connectors/issues/435/comments","statuses_url":"https://api.github.com/repos/wso2-attic/esb-connectors/statuses/2237a51a6ccf94ec08061180ec0dba31c537e1de","head":{"label":"hariss63:master","ref":"master","sha":"2237a51a6ccf94ec08061180ec0dba31c537e1de","user":{"login":"hariss63","id":2864386,"avatar_url":"https://avatars.githubusercontent.com/u/2864386?v=3","gravatar_id":"","url":"https://api.github.com/users/hariss63","html_url":"https://github.com/hariss63","followers_url":"https://api.github.com/users/hariss63/followers","following_url":"https://api.github.com/users/hariss63/following{/other_user}","gists_url":"https://api.github.com/users/hariss63/gists{/gist_id}","starred_url":"https://api.github.com/users/hariss63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariss63/subscriptions","organizations_url":"https://api.github.com/users/hariss63/orgs","repos_url":"https://api.github.com/users/hariss63/repos","events_url":"https://api.github.com/users/hariss63/events{/privacy}","received_events_url":"https://api.github.com/users/hariss63/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"wso2-attic:master","ref":"master","sha":"0abe3ef18540863fb68028c281ce71b2ff827c6f","user":{"login":"wso2-attic","id":14270641,"avatar_url":"https://avatars.githubusercontent.com/u/14270641?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2-attic","html_url":"https://github.com/wso2-attic","followers_url":"https://api.github.com/users/wso2-attic/followers","following_url":"https://api.github.com/users/wso2-attic/following{/other_user}","gists_url":"https://api.github.com/users/wso2-attic/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-attic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-attic/subscriptions","organizations_url":"https://api.github.com/users/wso2-attic/orgs","repos_url":"https://api.github.com/users/wso2-attic/repos","events_url":"https://api.github.com/users/wso2-attic/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-attic/received_events","type":"Organization","site_admin":false},"repo":{"id":14882706,"name":"esb-connectors","full_name":"wso2-attic/esb-connectors","owner":{"login":"wso2-attic","id":14270641,"avatar_url":"https://avatars.githubusercontent.com/u/14270641?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2-attic","html_url":"https://github.com/wso2-attic","followers_url":"https://api.github.com/users/wso2-attic/followers","following_url":"https://api.github.com/users/wso2-attic/following{/other_user}","gists_url":"https://api.github.com/users/wso2-attic/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-attic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-attic/subscriptions","organizations_url":"https://api.github.com/users/wso2-attic/orgs","repos_url":"https://api.github.com/users/wso2-attic/repos","events_url":"https://api.github.com/users/wso2-attic/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-attic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2-attic/esb-connectors","description":"WSO2 Enterprise Service Bus Connectors","fork":false,"url":"https://api.github.com/repos/wso2-attic/esb-connectors","forks_url":"https://api.github.com/repos/wso2-attic/esb-connectors/forks","keys_url":"https://api.github.com/repos/wso2-attic/esb-connectors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2-attic/esb-connectors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2-attic/esb-connectors/teams","hooks_url":"https://api.github.com/repos/wso2-attic/esb-connectors/hooks","issue_events_url":"https://api.github.com/repos/wso2-attic/esb-connectors/issues/events{/number}","events_url":"https://api.github.com/repos/wso2-attic/esb-connectors/events","assignees_url":"https://api.github.com/repos/wso2-attic/esb-connectors/assignees{/user}","branches_url":"https://api.github.com/repos/wso2-attic/esb-connectors/branches{/branch}","tags_url":"https://api.github.com/repos/wso2-attic/esb-connectors/tags","blobs_url":"https://api.github.com/repos/wso2-attic/esb-connectors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2-attic/esb-connectors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2-attic/esb-connectors/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2-attic/esb-connectors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2-attic/esb-connectors/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2-attic/esb-connectors/languages","stargazers_url":"https://api.github.com/repos/wso2-attic/esb-connectors/stargazers","contributors_url":"https://api.github.com/repos/wso2-attic/esb-connectors/contributors","subscribers_url":"https://api.github.com/repos/wso2-attic/esb-connectors/subscribers","subscription_url":"https://api.github.com/repos/wso2-attic/esb-connectors/subscription","commits_url":"https://api.github.com/repos/wso2-attic/esb-connectors/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2-attic/esb-connectors/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2-attic/esb-connectors/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2-attic/esb-connectors/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2-attic/esb-connectors/contents/{+path}","compare_url":"https://api.github.com/repos/wso2-attic/esb-connectors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2-attic/esb-connectors/merges","archive_url":"https://api.github.com/repos/wso2-attic/esb-connectors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2-attic/esb-connectors/downloads","issues_url":"https://api.github.com/repos/wso2-attic/esb-connectors/issues{/number}","pulls_url":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2-attic/esb-connectors/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2-attic/esb-connectors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2-attic/esb-connectors/labels{/name}","releases_url":"https://api.github.com/repos/wso2-attic/esb-connectors/releases{/id}","deployments_url":"https://api.github.com/repos/wso2-attic/esb-connectors/deployments","created_at":"2013-12-03T03:43:53Z","updated_at":"2016-06-24T14:47:01Z","pushed_at":"2016-08-23T18:15:55Z","git_url":"git://github.com/wso2-attic/esb-connectors.git","ssh_url":"git@github.com:wso2-attic/esb-connectors.git","clone_url":"https://github.com/wso2-attic/esb-connectors.git","svn_url":"https://github.com/wso2-attic/esb-connectors","homepage":"https://github.com/wso2/esb-connectors","size":302706,"stargazers_count":29,"watchers_count":29,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":213,"mirror_url":null,"open_issues_count":30,"forks":213,"open_issues":30,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435"},"html":{"href":"https://github.com/wso2-attic/esb-connectors/pull/435"},"issue":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/issues/435"},"comments":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/wso2-attic/esb-connectors/statuses/2237a51a6ccf94ec08061180ec0dba31c537e1de"}}}}
{"actor":{"display_login":"hariss63"}}