Welcome! Log In Create A New Profile

Advanced

Proxing webservices (Webservices, WSDL, SOAP)

January 30, 2013 06:57AM
What is the correct way to proxing to any remote webservice? How to use nginx in front of IIS or other web server, who serves webservices?

As an example we have any remote SOAP webservice at http://B:8089/getClientService/getClientService?wsdl. In SOAP document of these webservice we have endpoint location:
.....
<service name="getClientService">
<port name="getClientService" binding="tns:getClientServiceBinding">
<soap:address location="http://B:8089/getClientService/getClientService"/>
</port>
</service>
.....

If we use proxy_pass:

server {
listen 80;
server_name A;
location /{
proxy_pass http://B:8089/;
}

nginx won't rewrite(or change) SOAP's endpoint address to itself, so any futher SOAP requests will fail, because requesting side makes request to direct host described at SOAP endpoint location :(

Thanks
SubjectAuthorPosted

Proxing webservices (Webservices, WSDL, SOAP)

pricne5January 30, 2013 06:57AM

Re: Proxing webservices (Webservices, WSDL, SOAP)

nginxorgFebruary 11, 2013 09:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready