Developer forum

Forum » Integration » DW 10 connecting to SAP

DW 10 connecting to SAP

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I have an SAP solution that's been set up to receive and respond with XML documents compatible with Live Integration. I am now trying to link DW 10 to this set up for Live Integration scenarios. However, there are a couple of things that I can't get to work.

1. Authentication

In Postman, I can make REST calls to SAP using OAuth 2.0 like this:

That all works OK when I send it an order create request. However, I can't set it up like that in DW as it requires the client ID to be a Guid which it isn't in SAP. I may also be missing other settings. Is OAuth in DW not so Open that it connects to any OAuth end point?

2. When I work around it by setting auth to Bearer token and feed it a pre-generated and valid token, my test requests all fail with a generic SAP server error. I think that's because I can't override stuff like HTTP action and body type, maybe? 

3. Even if I could get that to work, I don't think it'll work at all as I can't save the option to "Use in Live Integration" as it doesn't support the underlying protocols / connection.

Is all that correct? And if so, am I back to the setup we discussed here: https://doc.dynamicweb.com/forum/integration/integration/connect-to-completely-custom-erp-system

I.e. like this:

1. Create a custom class inheriting Connector
2. Use whatever (like HttpRequest) to proxy XML requests to SAP in that Connector
3. Set up the DynamicWeb connector service and use the custom Connector as the plugin
4. In DW10 connect an end point to the connector service
5. Connect LI to the LI end point.

Does that sound right? Or are there other things that I could / should use instead?

Any insight is much appreciated!

Imar


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Imar,
maybe it can be possible to configure SAP to use the Microsoft Azure application for the OAuth authentication (as we have User impersonation authentication for the D365BC)?
Here are some links about this:
https://learn.microsoft.com/en-us/entra/identity/saas-apps/sap-netweaver-tutorial#configure-sap-netweaver-for-oauth
https://learn.microsoft.com/en-us/entra/identity/saas-apps/sap-hana-cloud-platform-tutorial
https://doc.skybuffer.com/documentation/skybuffer-ai/how-to-guides/how-to-teams-channel-with-sso/create-azure-ad-enterprise-application-for-sap-backend/
Then if possible to setup it to use the Azure authentication it would be possible to use the existing User impersonation in DW authentication that works with Azure AD application credentials for getting the token. Then having the token from Azure AD it can be used for SAP service call.
Here is a video showing getting the token from Azure AD and then querying SAP: https://www.youtube.com/watch?v=7dblbiHBWpc&list=PLvqyDwoCkBXZ85LoFrNWv9Mj88TiDAc4g&index=6
BR, Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Dmitrij those all look like good pointers. For now. we've created a connector that makes REST calls into SAP and plugged that connector into a DynamicWeb Connector service. So far that's working well.

Imar

 

You must be logged in to post in the forum