cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP_AAE Receiver adapter port

rasjoshi
Active Contributor
0 Kudos

Hi Gurus,

I am trying to integrate SAP ECC to SFDC REST API (Sync).

We have 1 auth token URL(POST) and 1 URL to pass actual data....

Auth URL -

https://HOST.my.salesforce.com/services/oauth2/token?grant_type=password&client_id=<client_id>&clien...;

This URL give me ACCESS_TOKEN in response.

I am thinking of using HTTP_AAE Receiver adapter to get the access_token.

Can somebody please help me how to configure http_aae channel here?

Shall I put target URL - https://HOST.my.salesforce.com

PATH - /services/oauth2/token

And check query box and provide values for these parameters -

grant_type=password

client_id=<client_id>

client_secret=<client_secret>

username=<username>

password=<password>

If this is correct then what should be my TARGET PORT ?

Please suggest.

BR,

Rashmi

manoj_khavatkopp
Active Contributor
0 Kudos

Good to hear 🙂

Personally never tried lookup with HTTP/HTTP_AAE adapter so can't comment on this but i believe this should work as usually as soap/rest lookup.

Br,

Manoj

Accepted Solutions (0)

Answers (2)

Answers (2)

rasjoshi
Active Contributor
0 Kudos

I opened new thread for this issue, please check this -

https://answers.sap.com/questions/294766/rest-receiver-adapter-post-method.html

BR,

Rashmi

manoj_khavatkopp
Active Contributor
0 Kudos

Have you considered trying the default https port 443 ,this should work until and unless Salesforce has defined another custom port for https in which case you need to check with SF team.

Br,

Manoj

rasjoshi
Active Contributor

Thanks Manoj, you are always works as saviour for me 🙂

I tried 443 and ping channel from channel monitoring... I am able to see successful.

I am using HTTP channel for lookup purpose. Please let me know if we can perform lookup using HTTP_AAE?

BR,

Rashmi

manoj_khavatkopp
Active Contributor
0 Kudos

Good to hear 🙂

Personally had never tried lookup via HTTP_AAE but just tried a POC with www.webservicex.net with HTTP_AAE and works fine. But why not go for REST adapter only if i am not wrong you are trying to implement OAuth Authentication .

Check this Blog .

Br,

Manoj

rasjoshi
Active Contributor
0 Kudos

yes... i trying to get access token from rest sfdc... we have pi7.4 not 7.5 so the blog is not helpful here 😞

manoj_khavatkopp
Active Contributor
0 Kudos

Rashmi,

Yes that Grant flow is available from 7.5 SP07 and the current grant type supported are Concur and SAML , so you need to have lookup as i dont see any option or custom module would suffice.

Br,

Manoj

rasjoshi
Active Contributor
0 Kudos

Yeah I am trying to perform lookup for this REST SFDC service...

Error when calling an adapter by using the communication channel CC_RCVR_SFDC_REST_LOOKUP (Party: , Service: BC_SFDC, Object ID: 25f71318dbba3381bcf077849c698519) XI AF API call failed. Module exception: (No information available). Cause Exception: 'HTTP POST call to https://ca--devpro.cs91.my.salesforce.com/services/oauth2/token?grant_type="password"+client_id="xxx...; not successful. HTTP/1.1 400 Bad Request'.

Why I am getting this error?

BR,

Rashmi