I'm trying to configure a reverse proxy in weblogic to redirect requests from serverA to server B. Requests arrive serverA via HTTPS and the original web service is exposed in serverB via HTTP.
I've managed to do this with a simple HttpProxy but there seems to be a problem with the URL of the web service's schema when consulting the WSDL through the proxy.
Example:
Original WSDL: http://ift.tt/1OHZhtG
schemaLocation="http://ift.tt/1HmZALv"
WSDL Through proxy: http://ift.tt/1OHZgGc
schemaLocation="http://ift.tt/1HmZzYf"
and it should be HTTPS:
schemaLocation="https://192.168.0.28:7002/WebServiceRO/WebServiceROSoap?xsd=1"
Can anyone please help me with this? Is there any configuration that would fix this?
This is my web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://ift.tt/HeF78r">
<web-app>
<servlet>
<servlet-name>ProxyServlet</servlet-name>
<servlet-class>weblogic.servlet.proxy.HttpProxyServlet</servlet-class>
<init-param>
<param-name>redirectURL</param-name>
<param-value>http://ift.tt/1HmZALz;
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
And this is my weblogic.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://ift.tt/1zQ5Dlj">
<weblogic-web-app xmlns="http://ift.tt/1bjgTaH">
<container-descriptor>
<index-directory-enabled>true</index-directory-enabled>
</container-descriptor>
<virtual-directory-mapping>
<local-path>../../../logs/</local-path>
<url-pattern>*</url-pattern>
</virtual-directory-mapping>
<context-root>/WebServiceRO/WebServiceROSoap</context-root>
</weblogic-web-app>
Aucun commentaire:
Enregistrer un commentaire