cancel
Showing results for 
Search instead for 
Did you mean: 

MII HTTP Post to HTTPS RESTful URLs Fails: Connect Reset

michaelteti
Explorer
1,703

While attempting to run an HTTP Post action to an HTTPS RESTful URL in MII 15.2, I get the following error:
[ERROR] Post Action: error occured while trying to connect to the server Exception: [Connection reset]

This RESTful API requires HTTPS. Attempting the same HTTPS call via Postman works without issue.

Just to confirm, I tested another RESTful API which supports both HTTP and HTTPS protocols. HTTP worked while HTTPS returned the same error message as noted above.

If anyone knows how to configure MII/NW to successfully make HTTPS Posts, I'd greatly appreciate the information.

Accepted Solutions (0)

Answers (4)

Answers (4)

pedro_iglesias2
Explorer
0 Kudos

Yes, our MII system is configured to run via HTTPS.

BR

Pedro

manishblr1
Discoverer
0 Kudos

Hi Pedro,

We are trying to do the same thing what mteti is doing. We are getting the same error.

can you please help us to how to configure / enable HTTPS on the SAP NW. Thanks

pedro_iglesias2
Explorer
0 Kudos

Hi Mike,

yes it works for me to an external system. Also with your URL Drop me a message via Skype.

BR

Pedro

michaelteti
Explorer
0 Kudos

Is the MII instance you just tested HTTPS enabled? I'm asking as mine is not.

Thanks,

Mike

michaelteti
Explorer
0 Kudos

    Hi Pedro,

    As a follow-up, here's the following examples I tried:

    oData Service

    The oData Service Action block is throwing the same error as the HTTP Post action block:

    [ERROR] ODataService Action: error occurred while trying to connect to the server Exception: [Connection reset]

    Were you able to connect to an external/public non-SAP HTTPS service using the oData Service Action block?

    I tried to call the following oData Test Service, https://services.odata.org/V3/OData/OData.svc/, which returned the same response as above. If I actually call the service via HTTP (http://services.odata.org/V3/OData/OData.svc/), it does return a HTTP 301 response. While not what I was looking for, it does validate my theory that HTTP works fine but HTTPS requires additional configuration, possibly in MII and/or NW.

    XML Loader

    If I try to open the following XML file via HTTPS, https://www.w3schools.com/xml/note.xml, using the XML Loader action block, I'm getting the following error:

    XmlProxy Error: Peer sent alert: Alert Fatal: protocol version

    I did read somewhere that perhaps NW requires an updated HTTP protocol libray? Not really sure but since HTTPS has become an industry standard, I cannot be alone in having these issues.

    Thanks,

    Mike


    pedro_iglesias2
    Explorer
    0 Kudos

    Hi Mike,

    please try with the oData Service Actionblock. It should work. You will find the Actionblock in the folder Web

    Service.

    BR

    Pedro

    former_member749610
    Discoverer
    0 Kudos

    Hi Mike,

    I am also getting same as rest API call is not posting and giving error while it is worked in PostMan.,

    Let me know how to resolve this if you already find the solution for the same issue.

    Thanks

    michaelteti
    Explorer
    0 Kudos

    Hi Pedro,

    I did try the oData Service action block and had the same error message. I'm pretty confident this issue is associated with MII/NW's inability to communicate with external non-SAP APIs that only communicate over HTTPS. Any other ideas?

    Thanks,

    Mike