logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: WSDL Resolving to End point Loadbalancer IP
Author
buntyray



Joined: 23 May 2013
Posts: 9
Location: Australia,Melbourne

PostPosted: Wed 26 Jun '13 9:13    Post subject: WSDL Resolving to End point Loadbalancer IP Reply with quote

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: 679

PostPosted: Thu 27 Jun '13 11:13    Post subject: Reply with quote

Any difference when you used ProxyPreserveHost On ?
Back to top
buntyray



Joined: 23 May 2013
Posts: 9
Location: Australia,Melbourne

PostPosted: Thu 27 Jun '13 13:32    Post subject: Reply with quote

Nopes post that we are getting 403 Forbidden while accessing the WSDL
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 01 Jul '13 16:07    Post subject: Reply with quote

Can't you hardcode that in the WSDL ?
Back to top
buntyray



Joined: 23 May 2013
Posts: 9
Location: Australia,Melbourne

PostPosted: Mon 01 Jul '13 16:14    Post subject: Reply with quote

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


Reply to topic   Topic: WSDL Resolving to End point Loadbalancer IP View previous topic :: View next topic
Post new topic   Forum Index -> Apache