Skip to Content
0

HTTP_AAE Receiver adapter port

Aug 24, 2017 at 04:42 AM

105

avatar image

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_secret= &username= &password= >

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Manoj K Aug 24, 2017 at 05:44 AM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded

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

1

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

0

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

0

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

0

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="xxxxxxxxxxxxxxxxxxxxxxxxxxx"+client_secret="xxxxxxxxxxxxxxxxxxx"+username=xxxxxxxx@xxxxxx"+password="xxxxxxxxx" not successful. HTTP/1.1 400 Bad Request'.

Why I am getting this error?

BR,

Rashmi

0
Rashmi Joshi Aug 28, 2017 at 11:59 AM
0

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

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

BR,

Rashmi

Share
10 |10000 characters needed characters left characters exceeded