首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mule服务代理

Mule服务代理
EN

Stack Overflow用户
提问于 2013-05-20 23:42:41
回答 1查看 619关注 0票数 0

我正在尝试使用Mule 3.4代理Sevice,但有一件事仍然不起作用...

我的配置:

代码语言:javascript
复制
<mule xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:https="http://www.mulesoft.org/schema/mule/https"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"
xmlns:mule-ss="http://www.mulesoft.org/schema/mule/spring-security"
xmlns:ss="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
   http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/current/mule-https.xsd 
   http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
   http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.4/mule.xsd
   http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.4/mule-http.xsd
   http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/3.4/mule-pattern.xsd
   http://www.mulesoft.org/schema/mule/spring-security http://www.mulesoft.org/schema/mule/spring-security/3.4/mule-spring-security.xsd
   http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd">

<mule-ss:security-manager>
    <mule-ss:delegate-security-provider
        name="memory-dao" delegate-ref="authenticationManager" />
</mule-ss:security-manager>

<spring:beans>
    <ss:authentication-manager alias="authenticationManager">
        <ss:authentication-provider>
            <ss:user-service id="userService">
                <ss:user name="asdf" password="asdf" authorities="ROLE_ADMIN" />
            </ss:user-service>
        </ss:authentication-provider>
    </ss:authentication-manager>
</spring:beans>

<!-- http:connector name="NoSessionConnector">
    <service-overrides sessionHandler="org.mule.session.NullSessionHandler" />
</http:connector-->

<pattern:web-service-proxy name="serviceName"
      inboundAddress="http://localhost:8050/newService"
      outboundAddress="http://remoteHost/servicos/v2/service.svc" 
      wsdlLocation="http://remoteHost/servicos/v2/service.svc?Wsdl"/>

但是,通过这种方式,我得到了原始的WSDL文件,而不是使用新的本地主机转换的文件,我可以做些什么来更改它,使使用该服务的人不知道它在哪里或如何访问它……

Tks提前寻求任何帮助!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-06-04 02:09:20

只有在outboundAddresswsdlLocation属性中始终使用相同的主机名或IP地址时,地址重写才有效,否则Mule无法检测到它是相同的源,因此重写将不会发生。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16653168

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档