on 02-01-2016 4:27 PM
Hi all
I am working on SAP hybris Marketing Recommendations integration. I setup all needed configurations on hybris side
I set HTTP Destination URL https://mycompony.com/sap/opu/odata/sap/prod_reco_srv/?sap-client=102 https://mycompany.com/sap/opu/odata/sap/prod_reco_runtime_srv/?sap-client=102
but the same issue I have:
When I configure CMSSAPRecommendationComponent component in wCMS I receive error message:
ERROR [Thread-299] [DefaultSAPRecommendationTypeUIEditor] Error filling Recommendation Types dropdown, verify backoffice configuration java.io.IOException: Failed to connect to backend system
Caused by: java.io.IOException: Http Connection failed with status 400 Bad Request
Can anyone can help with that?
BR, Mike
Hello Mikhail -
You've probably discovered this by now, but I thought I'd provide some information for others who come across this question.
You need to set the HTTP Destination URL value in the HMC/Backoffice to simply be the host URL of your SAP Hybris Marketing system, not the complete URL of the Product Recommendation endpoint. The recommendationEntityManagerCEI bean will append the endpoint URI to the host URL before calling upon the client service.
public ODataFeed getTypes(final String entityName, final String expand, final String select, final String filter, final String orderby) throws ODataException, URISyntaxException, IOException
{
final String serviceURL = configuration.getHttpDestinationURL() + baseURL;
final String client = configuration.getHttpDestinationSAPClient();
final String user = configuration.getHttpDestination().getUserid();
final String password = configuration.getHttpDestination().getPassword();
final ODataFeed feed = this.clientService.readFeed(serviceURL, SapproductrecommendationConstants.APPLICATION_XML, entityName, expand, select, filter,
orderby, user, password, client);
return feed;
}
Hope this helps 🙂
Braxton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.