0

我创建了一个基于肥皂的 Web 服务并部署在我的本地服务器 (Tomcat) 上。

现在我将其中一个代理服务器(托管在互联网上)指向我的本地服务器。

当我从代理 url 访问 WSDL 时,schemalocation 与本地服务器 url 一起出现。

<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-              wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy"             name="MovieServiceImplService">
<types>
<xsd:schema>
<xsd:import namespace="http://movies.media.com/" schemaLocation="***http://123.13.33.44:8888/ws-test/Movietest?xsd=1***"/>
</xsd:schema>
</types>
<message name="searchByTitle">
<part name="parameters" element="tns:searchByTitle"/>
</message>
<message name="searchByTitleResponse">
<part name="parameters" element="tns:searchByTitleResponse"/>
</message>
....

My proxy url is https://abcd:8990. I want the schemalocation to be https://abcd:8990/ws-test/Movietest?xsd=1

有人可以告诉我可以做些什么改变来解决这个问题。

4

1 回答 1

0

感谢 Keerthi Ramanathan。

   You should make use of ProxyPreserveHost directive of Apache mod_proxy module 

这对我有用。但是还有一个问题。我的 apache 服务器是 https,schemalocation url 变成了 http url。我无法理解原因。你知道可以为此做些什么吗?

目前,我已经删除了 ssl。

于 2013-10-16T03:29:59.777 回答