Skip to Content

SAP Integration with ThingWorx

Hi Developers,

I'm trying this SAP Hands On Tutorial on Thingworx 8.0.1-b39. I have a SAP Gateway - Demo System (ES5) and my account have access to "https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/". I have the integration runtime properly configured and running.

In Step 3 the following are the parameters i have given (the username and password are properly given not as shown below):

  • Generic Connector Connection Settings
    • Authentication Type =fixed
  • HTTP Connector Connection Settings
    • Username = <SAP Gateway user>
    • Password = < SAP Gateway pwd>
    • Base URL : https://sapes5.sapdevcenter.com/sap
    • Relative URL :/opu/odata/IWBEP/GWSAMPLE_BASIC/
    • Connection URL :/opu/odata/IWBEP/GWSAMPLE_BASIC/$metadata

The following are the errors i observed :

  • ValidateConnection

    StatusMessageConnectorTemplateFailed Check logs for more detailsSAPODataConnector
  • GetEndpointList

    [context: com.thingworx.webservices.context.HttpExecutionContext@52e3b401][message: Unable to Invoke Service GetProductSet on ptc-SAP-OData-connector : Your route exchange has failed. Resource Error [Connect to sapes5.sapdevcenter.com:443 [sapes5.sapdevcenter.com/155.56.38.41] failed: Connection timed out: connect]]

I'm suspecting the error is with this port sapes5.sapdevcenter.com/155.56.38.41because i tested this URL ("https://sapes5.sapdevcenter.com/155.56.38.41") in the browser and it returned "HTTP 404 - Not found" page.

Could you please point out where i might be going wrong.

Regards,

Saran

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 12, 2018 at 12:27 PM

    The relative URL you are using is wrong.

    Check out this link:

    https://sapes5.sapdevcenter.com/sap/opu/odata/iwbep/GWSAMPLE_BASIC/ProductSet?$format=xml

    It is

    /sap/opu/odata/iwbep/GWSAMPLE_BASIC/

    not

    /opu/odata/IWBEP/GWSAMPLE_BASIC/

    Regards,

    Andre

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2018 at 06:03 AM

    Hi Andre Fischer,

    Thanks for your reply. It seems that the URL was blocked by our internal network. So i tried the same from an outside network and got the expected result. I'll also try the URL you suggested.

    Regards,

    Saran

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.