Service 更改Mule上的服务位置

Service 更改Mule上的服务位置,service,mule,Service,Mule,我的第一次尝试是简单地将一个服务从一个位置代理到另一个位置,它工作得很好,现在我需要一些关于如何更改部分服务位置的帮助,例如,检索到的WSDL point 4服务到一台机器,我需要为另一台服务器更改其中一个服务,这可能吗?如果是,我该怎么做 Mule版本CE3.4 我的代码如下: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:ssl="http://www.mulesoft.org/schema/mule/ssl" xm

我的第一次尝试是简单地将一个服务从一个位置代理到另一个位置,它工作得很好,现在我需要一些关于如何更改部分服务位置的帮助,例如,检索到的WSDL point 4服务到一台机器,我需要为另一台服务器更改其中一个服务,这可能吗?如果是,我该怎么做

Mule版本CE3.4

我的代码如下:

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:ssl="http://www.mulesoft.org/schema/mule/ssl" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
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/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd
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
http://www.mulesoft.org/schema/mule/ssl http://www.mulesoft.org/schema/mule/ssl/current/mule-ssl.xsd" version="EE-3.4.0">

<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="asd" password="asd" authorities="ROLE_ADMIN" />
            </ss:user-service>
        </ss:authentication-provider>
    </ss:authentication-manager>
</spring:beans>

<https:connector name="httpsConnector">
<https:tls-key-store path="${mule.home}/conf/keystore.jks"
    keyPassword="1234567" storePassword="1234567" />
</https:connector>

<pattern:web-service-proxy name="Service"
      inboundAddress="https://LocalAdress.com:443/services/Service"
      outboundAddress="http://RemoteAddress.com/services/Service.svc"
      wsdlLocation="http://RemoteAddress.com/services/Service.svc?singleWSDL"/>    


Mule没有提供实现这种WSDL定制的机制。你要做的是:

  • 下载“”
  • 手工定制
  • 将定制版本嵌入到项目中(比如“src/main/resources”)
  • 使用
    wsdlFile=“yourCustom.wsdl”