Jakarta ee 反向代理错误生成的xsd路径
我需要在WebLogic服务器中部署一个代理应用程序,用户通过它访问另一台服务器上运行的SOAP web服务 原始web服务在服务器示例中公开htttp://serverA/serviceA. 我需要通过WebLogic服务器中的代理将此服务公开为 我在web.xml文件中尝试了(PathTrim和PathPerpend),并将代理应用程序部署为/operationAJakarta ee 反向代理错误生成的xsd路径,jakarta-ee,xsd,proxy,weblogic,reverse-proxy,Jakarta Ee,Xsd,Proxy,Weblogic,Reverse Proxy,我需要在WebLogic服务器中部署一个代理应用程序,用户通过它访问另一台服务器上运行的SOAP web服务 原始web服务在服务器示例中公开htttp://serverA/serviceA. 我需要通过WebLogic服务器中的代理将此服务公开为 我在web.xml文件中尝试了(PathTrim和PathPerpend),并将代理应用程序部署为/operationA <web-app> <servlet> <servlet-name>Prox
<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://serverA/</param-value>
</init-param>
<init param>
<param-name>PathTrim</param-name>
<param-value>/operationA</param-value>
</init-param>
<init-param>
<param-name>PathPrepend</param-name>
<param-value>serviceA</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ProxyServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
ProxyServlet
weblogic.servlet.proxy.HttpProxyServlet
重定向URL
http://serverA/
路径修剪
/手术
路径预弯
服务A
ProxyServlet
/*
这样我就可以通过代理访问服务的wsdl,但是xsd模式URL的格式错误,因此客户端无法下载
在本例中,wsdl表示模式的位置为:
schemaLocation=”http://proxyServer/serviceA?xsd=1"
应该是:
schemaLocation=”http://proxyServer/operationA?xsd=1"
有人能帮我吗?有可能做我想做的事吗
感谢和问候。尝试以下方法:
- 登录到weblogic管理控制台
- 导航到
服务器->->协议->HTTP设置
- 编辑
,使其成为所需的位置。前端主机是将所有重定向URL发送到的主机的名称前端主机
这将更新您在WSDL中看到的架构位置值。您是在谈论内联内容吗?如果引用“旧”URL的内联内容需要动态更改,那么您需要的不仅仅是一个代理。谢谢@Necreaux。不,我不是指内联内容。我的意思是,我可以从代理正确地使用webservice,但是当我看到wsdl时,模式路径的格式是错误的,因此动态客户端将失败,但这不是我需要的。这使得在应用程序服务器中执行的任何重定向都被发送到指定的URL,我只需要对与代理应用程序对应的请求执行此操作。谢谢,但这不是我需要的。这使得在应用程序服务器中执行的任何重定向都被发送到指定的URL,我需要只对与代理应用程序对应的请求执行此操作。Thnks