2012-09-27 21 views
0

我使用CXF和Spring支持创建了一个Web服务。直接访问是成功的。 然后我运行了一个WSO2 ESB并为该Web服务创建了一个代理服务。调用代理服务失败。 我打印了代理的WSDL,发现该文件中的端点都是'localhost'。 我想这个问题很典型,但我找不到任何信息来帮助。任何建议将被认真考虑。为什么wso2 esb Web服务代理在WSDL中创建了我的端点'localhost'?

回答

1

您需要编辑您axis2.xml,您可以在其中为http和https传输找到参数“WSDLPrefix”。

<parameter name="WSDLEPRPrefix" locked="false">http://myhost:8280</parameter> 

这将正确创建您的代理端点。

完整的信息请访问:http://wso2.org/project/esb/java/4.0.0/docs/admin_guide.html#HostPort

附:我认为Wso2ESB 4.5.0是'更聪明',不需要修改这些参数。希望这有助于

+0

非常感谢。我会去看看。 – weiht

2

,你也可以在carbon.xml指定的参数:

<HostName>yourhost</HostName> 

yourhost = IP或服务器的名称

你可以看到在carbon.xml文件此信息:

<!-- 
    Host name or IP address of the machine hosting this server 
    e.g. www.wso2.org, 192.168.1.10 
    This is will become part of the End Point Reference of the 
    services deployed on this server instance. 
--> 
+0

该描述很好地解释了这个参数。这也是我需要的。谢谢。 – weiht

相关问题