Topic
1 reply Latest Post - ‏2014-06-11T14:49:33Z by UlrikAndersen
SriBharadwaj
SriBharadwaj
18 Posts
ACCEPTED ANSWER

Pinned topic WSDL Resolving to End point Loadbalancer IP

‏2014-06-11T07:53:43Z |
 
Our application URL is 
 
http://mydns.com/service1?wsdl where mydns is configured on F5(for load balancing and HA) and it has 4 other IPs' that F5 looks for, for load balancing
 
So when we hit the above url to access the WSDL it give us the WSDL return exposing backend IP address and Port. 
 
 
<wsdl:service name="service1">
<wsdl:port name="service1Soap" binding="ns0:service1">
<soap11:address location="http://IP1:Port1/service1"/> 
</wsdl:port>
</wsdl:service>
 
The desired return is 
 
<wsdl:service name="service1">
<wsdl:port name="service1Soap" binding="ns0:service1">
<soap11:address location="http://mydns.com/service1"/> 
</wsdl:port>
</wsdl:service>
 
Is there any way in Datapower to achieve this?

Thanks in advance

  • UlrikAndersen
    UlrikAndersen
    181 Posts
    ACCEPTED ANSWER

    Re: WSDL Resolving to End point Loadbalancer IP

    ‏2014-06-11T14:49:33Z  in response to SriBharadwaj

    Yes, if using a Web Service Proxy, just edit the created WS-Proxy Endpoint Rewrite (find it under Objects -> Web Services). Publish Rewrite Rules is what you want. Here is the online help for Publish Rewrite Rules:

    Publish Rewrite Rules

    Add, edit, or delete a publish endpoint rewrite rule. These rules evaluate services in deployed WSDL file and specify the URL the appliance should publish when producing its own WSDL files. Use this if you wish to publish an address different from the local address, for example the address of a load balancer in front of appliance.