Hello experts,
we have a problem while developing native iOS GW apps using SAP GW tool for Xcode. Our GW server resides within our company network and is reachable from internet while dispatching by a reverse proxy in the firewall.
The GW server has an internal server name ,e.g. internalgw.company.local and an internet address: externalgw.company.com. This external address is actually the address of the reverse proxy.
When we test our iOS Apps in the Internet, we can reach the GW server using the externalgw.company.com for logging in without any problems. But the problem is the GW server sends back the response OData XML documents with the internal server name: internalgw.company.local.
<entry>
<title type="text">AuftragSet(binary'0050568176441ED29CA4342E1B49E60F')</title>
Because we are using the proxy classes generated by the SAP GW tool for XCode. The proxy classes will automatically use the server name in the OData response XML documents for the further processing. Then we cannot reach the GW server any longer in the apps.
Right now, we can figure out two solutions for this problem:
- Change the internal DNS name for the GW server. So GW server will build this external name in the OData response XML document.
- Change the source code of the proxy classes for very iOS App and Android App. So the apps will not use the internal server name for the processing.
But these are really not the optimal solution for us. Could any one help us to solve this problem?
Appreciate for any tips!!
Best regards
Xiang