
You can consider mapping ports in one of the following situations when the client-server communication is conducted through a proxy environment:
You can define port mapping with the ProxyMappings property of the HTTP Provider Service running on the Java dispatcher. Use the Visual Administrator tool to perform this configuration task:
A single port mapping has the following format:
<Port to be mapped>=(Host:<hostname>,Port:<port number>,Scheme:<scheme>,Override:<true/false>)
The attributes that are specified within the brackets define the host and port to which you map the original port. It also contains the communication scheme. The possible values of the Scheme: attribute are http or https.
By default, the Override: attribute has a value of false. That is, if the client request contains information about the client's host and port, the HTTP Provider Service does not override its values with the values of the corresponding attributes of the ProxyMappings property. However, if no host and port information is present in the request, it takes the values of the Host: and Port: attributes of the property and sets them to the response. If, on the other hand, you set the Override: attribute to true, the values of the Host: and Port: attributes are always set to the response even if the request contained host and port information.
Defining a Single Mapping
If you have your engine installed on host localhost and port 50000 and want to map it to your proxy server with host name www.sap.com and port 80 , enter the following as a value of the ProxyMappings property:
50000=(Host:www.sap.com,Port:80,Scheme:http,Override:true)
Defining Multiple Mappings
If, in addition to the above mapping, you want to open port 50001 on host localhost on your engine and map it to port 443 on your proxy server with host name www.sap.com for HTTPS requests, enter the following as a value of the ProxyMappings property:
50000=(Host:www.sap.com,Port:80,Scheme:http,Override:true),50001=(Host:www.sap.com,Port:443,Scheme:https,Override:true)
You should map only one host to a given proxy port! Multiple hosts per port mappings may not work as expected in cases of HTTP 1.0 clients.