you need to append secutitytoken with the password.
from doc,
Connecting to Salesforce
To use the Salesforce connector, add the <salesforce.init> element in your
configuration before any other Salesforce connector operations. This
configuration authenticates with Salesforce by configuring the user
credentials and login URL. The password is a combination of the user
password plus the security token provided by Salesforce. For example, if
the user's password is ABCD, and the security token is 1234, enter ABCD1234
as the password. Users can obtain their security token by changing their
password or resetting their security token in the Salesforce user
interface, at which point Salesforce sends a new security token to the
email address on the user's Salesforce record.
*init*
<salesforce.init>
<username>[email protected]</username>
<password>xxxxx</password>
<loginUrl>https://login.salesforce.com/services/Soap/u/27.0</loginUrl>
</salesforce.init>
The response of this operation is attached to the message body and is used
for subsequent Salesforce operations. The session ID is saved to the
propertysalesforce.sessionId, and the server URL is saved to
salesforce.serviceUrl. If the given login details are invalid, the
specified fault sequence will be triggered
On Fri, Jun 12, 2015 at 11:55 AM, Aaquibah Nashry <[email protected]> wrote:
> Hi,
> the problem was with the authentication to salesforce.
>
> Thanks,
>
> M.R.Aaquibah Nashry
> *Intern, Engineering*
> Mobile : +94 773946123
> Tel : +94 112662541
> [email protected]
>
> On Fri, Jun 12, 2015 at 11:36 AM, Aaquibah Nashry <[email protected]> wrote:
>
>> Hi Kavith,
>> the data is not written to the database at all...
>>
>> when i save my data service, i get this on the esb log,
>>
>> [2015-06-12 11:28:38,441] WARN
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - Failed
>> Administrator login attempt 'admin[-1234]' at [2015-06-12
>> 11:28:38,441+0530] from IP address 10.100.4.35
>> [2015-06-12 11:28:38,442] WARN
>> {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
>> Illegal access attempt at [2015-06-12 11:28:38,0442] from IP address
>> 10.100.4.35 while trying to authenticate access to service
>> LoggedUserInfoAdmin
>> [2015-06-12 11:28:40,772] INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>> '[email protected] [-1234]' logged in at [2015-06-12 11:28:40,772+0530]
>> from IP address 10.100.4.35
>> [2015-06-12 11:29:00,534] INFO
>> {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2
>> service: mysql {super-tenant}
>>
>>
>> when i save my proxy,
>>
>> ilding Axis service for Proxy service : query
>> [2015-06-12 11:30:11,453] INFO {SERVICE_LOGGER.query} - Adding service
>> query to the Axis2 configuration
>> [2015-06-12 11:30:11,458] INFO
>> {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2
>> service: query {super-tenant}
>> [2015-06-12 11:30:11,521] INFO {SERVICE_LOGGER.query} - Successfully
>> created the Axis2 service for Proxy service : query
>>
>> when i try the service,
>>
>> NFO {SERVICE_LOGGER.query} - Connection = Login to Salesforce .....
>> [2015-06-12 11:34:17,895] WARN {SERVICE_LOGGER} - ERROR_CODE : null
>> ERROR_MESSAGE : null
>>
>>
>> these are the logs i get...
>>
>> M.R.Aaquibah Nashry
>> *Intern, Engineering*
>> Mobile : +94 773946123
>> Tel : +94 112662541
>> [email protected]
>>
>> On Fri, Jun 12, 2015 at 11:22 AM, Kavith Lokuhewage <[email protected]>
>> wrote:
>>
>>> Hi Aaquibah,
>>>
>>> Can you see this data written into the database properly? Is it just
>>> the case that you get a read time out on tryit tool? Please attach the
>>> complete log of ESB for this scenario.
>>>
>>> Thanks.
>>>
>>> On Fri, Jun 12, 2015 at 11:06 AM, Aaquibah Nashry <[email protected]>
>>> wrote:
>>>
>>>> Hi Kavith,
>>>>
>>>> i got the following:
>>>>
>>>> [2015-06-12 11:05:02,198] INFO {SERVICE_LOGGER.query} - Connection =
>>>> Login to Salesforce .....
>>>> [2015-06-12 11:05:03,435] WARN {SERVICE_LOGGER} - ERROR_CODE : null
>>>> ERROR_MESSAGE : null
>>>>
>>>>
>>>> M.R.Aaquibah Nashry
>>>> *Intern, Engineering*
>>>> Mobile : +94 773946123
>>>> Tel : +94 112662541
>>>> [email protected]
>>>>
>>>> On Fri, Jun 12, 2015 at 10:59 AM, Kavith Lokuhewage <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi Aaquibah,
>>>>>
>>>>> Do you see any error logs in ESB side?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Fri, Jun 12, 2015 at 10:52 AM, Aaquibah Nashry <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>> I followed the stepsin this link to get data from salesforce and
>>>>>> write to mysql database :
>>>>>>
>>>>>>
>>>>>> http://wso2.com/library/articles/2014/02/cloud-to-rdbms-using-wso2-esb/
>>>>>>
>>>>>> When i try the service, i get this error:
>>>>>>
>>>>>> <TryitProxyError h:status="SOAP envelope error" xmlns:h="
>>>>>> http://wso2.org/ns/TryitProxy">org.apache.axis2.AxisFault: Read
>>>>>> timed out</TryitProxyError>
>>>>>>
>>>>>> Any ideas to solve this???
>>>>>>
>>>>>> Thanks in advance,
>>>>>>
>>>>>> M.R.Aaquibah Nashry
>>>>>> *Intern, Engineering*
>>>>>> Mobile : +94 773946123
>>>>>> Tel : +94 112662541
>>>>>> [email protected]
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kavith Lokuhewage*
>>>>> Software Engineer
>>>>> WSO2 Inc. - http://wso2.com
>>>>> lean . enterprise . middleware
>>>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>>>> Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419>
>>>>> Twitter <https://twitter.com/KavithThiranga>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419>
>>> Twitter <https://twitter.com/KavithThiranga>
>>>
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Best Regards,
Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev