2013-06-17 2 views
0

첫 번째 시도는 한 위치에서 다른 위치로의 간단한 프록시 서비스였습니다. 이제 제대로 작동합니다. 예를 들어 검색된 서비스 위치의 일부를 변경하는 방법에 대한 도움이 필요합니다. WSDL 포인트 4 서비스를 기계로 옮기려면 다른 서버를 위해 1 개의 서비스를 변경해야합니다. 그렇다면 어떻게해야합니까?노새에서 서비스 위치를 변경

뮬 버전 CE 3.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"/>  

답변

1

뮬은 WSDL 사용자 정의의 유형을 실현하는 메커니즘을 제공하지 않습니다. 당신이해야 할 것은 :

관련 문제