Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: WSDL Resolving to End point Loadbalancer IP |
|
Author |
|
buntyray
Joined: 23 May 2013 Posts: 9 Location: Australia,Melbourne
|
Posted: Wed 26 Jun '13 9:13 Post subject: WSDL Resolving to End point Loadbalancer IP |
|
|
Hi,
We are hosting a webservice application behind a Loadbalancer and the webservice is accessed via a ReverseProxy.
However when we try to access the WSDL we see the endpoint loadbalancer IP coming in the response instead of the reverse proxy url.
The httpd.conf has the below entries -
ProxyPass /abc http://IP1:Port1/abc
ProxyPassReverse /abc http://IP1:Port1/abc
Our application URL is
http://abconline.com/abc
So when we hit the above url to access the WSDL it give us the WSDL return
<wsdl:service name="abc">
<wsdl:port binding="impl:abc" name="abc">
<wsdlsoap:address location="http://IP1:Port1/abc"/>
</wsdl:port>
</wsdl:service>
This exposes our backend IP address and Port. The desired return is
<wsdl:service name="abc">
<wsdl:port binding="impl:abc" name="abc">
<wsdlsoap:addresslocation="http://abconline.com/abc"/>
</wsdl:port>
</wsdl:service>
Please suggest if any clue. I am planning to add this parameter in the conf and give a try as well
ProxyPreserveHost On
Looking for a help.
Regards,
Bunty |
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Thu 27 Jun '13 11:13 Post subject: |
|
|
Any difference when you used ProxyPreserveHost On ? |
|
Back to top |
|
buntyray
Joined: 23 May 2013 Posts: 9 Location: Australia,Melbourne
|
Posted: Thu 27 Jun '13 13:32 Post subject: |
|
|
Nopes post that we are getting 403 Forbidden while accessing the WSDL |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 01 Jul '13 16:07 Post subject: |
|
|
Can't you hardcode that in the WSDL ? |
|
Back to top |
|
buntyray
Joined: 23 May 2013 Posts: 9 Location: Australia,Melbourne
|
Posted: Mon 01 Jul '13 16:14 Post subject: |
|
|
The issue is resolved now...I added the following entries
ProxyPreseveHost On
HeaderEditLocation....
When intially I used the ProxyPreserveHost On it was changing the URL by appending the LB Port to the actual URL and hence was giving a 403 Forbidden
Then I used the Header Edit Location to map to the correct URL
Header edit Location ^http://abs.com:Port1 http://abc.com |
|
Back to top |
|
|
|
|
|
|