Skip to Content

SAP API Management Trial – Connecting on-prem issue with SOAP

It works very well with an Odata service. However I have struggled to do the same thing with an existing SOAP Enterprise Service. However when I am adding a resource(operation) I can’t save the API without getting an error:

“Unable to register API” and [Request ID: 0ef2d71f-cf76-4818-a1bb-c543d1235f0e]
String index out of range: 0

It seems it’s related to the adding of the resource since I have no problem saving it without a resource but then I get the service unavailable respone when testing of course.

What could possibly be wrong?


Add comment
10|10000 characters needed characters exceeded

  • Hi Elijah,

    Well, maybe I should be more general. I haven't seen any example where you expose an "onprem" SOAP-service and must say I don't know how to achieve it or even if it's possible. I have tried by creating both a SOAP and a REST API but the only way to have it connected to a onPrem service is to specify an API-provider.

    I tried that, pretty much by looking at this article but with an API-provider pointing to the onPrem endpoint through Hana Cloud Connector.

    Now, I'm coming further but getting a 502-error message when trying to send the SOAP-message:

    "faultstring":"Unexpected EOF",

    My message looks like this:

    <!-- Sets a new value to the existing parameter -->
    <Header name="Content-Type">application/soap+xml; charset=utf-8</Header>
    <Payload contentType="text/xml">
    <soap:Envelope xmlns:soap="">
    <AssignTo createNew="false" transport="http" type="request"/>

    Is this at all doable?

    Thanks in advance!


  • Hi Janne,

    Can you try clicking "Use SSL" in your API Provider? And let me know if this helps your EOF issue?


  • Hi Elijah,

    Many thanks, it works like a charm now!!!

    Just curious why it isn't necessary for Odata-services?

    Best Regards


  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 05, 2017 at 02:57 PM

    Hi Jan,

    I am going to create this reply as an "Answer" so we can hopefully let others know as well. Please mark as accepted answer.

    Currently the way the OnPremise connector is configured, if the target endpoint is expecting a different transport protocol than is given, it will return this error, as it is not finding the endpoint as configured. My guess is that for your OData service you were able to connect to it as a simple HTTP request, but the SOAP service either expected HTTPS, or had a configuration issue. I ran into a similar problem with my own Gateway system, which is how I reasoned out this issue (my system was fine for HTTP, but required HTTPS to connect via CC).

    So in short, this is not necessarily a SOAP vs ODATA issue, but rather a backend configuration issue. Please note this is only for the Trial landscape, and has already been patched for Productive systems. There are discussions about rolling this out to trial as well (which is a larger undertaking to do).

    Thank you for bringing this issue to our attention.


    Add comment
    10|10000 characters needed characters exceeded

    • Hi again Elijah,

      Just a followup question: Is there a simple way to document my created "REST-service" which infact is an onprem SOAP service making the documentation available in the Developer portal? I guess I would have to somehow create a Resource but haven't been able to figure out how without creating a new API.

      Best Regards