Jämförda versioner

Nyckel

  • Dessa rader lades till.
  • Denna rad togs bort.
  • Formateringen ändrades.

...

Kodblock
languagexml
<mule ... >
  <!-- Name of this file is mandatory and may not be changed. -->

  	<flow name="clinicalprocess-health...." >
    <unikt namn beroende på tjänst>" >
		<composite-source>
      			<https:inbound-endpoint
        		address="https://${TP_HOST}:${TP_PORT}/${TP_BASE_URI}/clinical..."
        connector-ref="VPProducerConnector"
        exchange-pattern="request-response"
        responseTransformer-refs="featureKeepAliveResponse wsdlQueryResponse filterResponseHeaders">
        <properties>
          <spring:entry key="featureUseKeepAlive" value="${feature.keepalive.urn.riv.clinical..."/>
          <spring:entry key="featureResponseTimeout" value="${feature.featureresponsetimeout.urn.riv.clinicalprocess..."/>
        </properties>
      				...
				<response-transformers...>
			</https:inbound-endpoint>

      			<http:inbound-endpoint
        				address="http://${TP_HOST}:${TP_PORT_HTTP}/${TP_BASE_URI}/clinicalprocess..."
        connector-ref="VPInsecureConnector"
        exchange-pattern="request-response"
        responseTransformer-refs="wsdlQueryResponse filterResponseHeaders">
        <properties>
          <spring:entry key="featureResponseTimeout" value="${feature.featureresponsetimeout.urn.riv.clinicalprocess..."/>
        </properties>
      </				...
				<response-transformers...>
			</http:inbound-endpoint>
    		</composite-source>

    		<cxf:proxy-service
      namespace="urn:riv:clinicalprocess:			wsdlLocation="..."
      payload="envelope"
      service="ProcessObservationsResponderService"
      wsdlLocation="classpath:/schemas/interactions/ProcessObservationsInteraction			..."  />   
		</cxf:proxy-service>

		<flow-ref name="vagval-dynamic-routing-flow" />
  	</flow>
</mule>
  • name i flow-transformer-taggen måste vara unikt. Används för att namnge en virtualisering unikt.
  • wsdlLocation måste anpassas till var i paketstrukturen wsdl-en ligger.
  • Parametrarna TP_HOST, TP_PORT_HPPT, TP_PORT_HTTPS, TP_BASE_URI hämtas från den generella konfigurationen av VP. Tillsammans med tjänstedomänens namn och tjänstens namn bildar de den kompletta URL:en till den virtuella tjänsten.

...

Kodblock
languagexml
<mule ... >
    <flow name="vagval-dynamic-routing-flow" >

		<transformer<transformers ... />
		<session handling .../>

		<cxf:proxy-client payload="envelope" />

		<custom-processor class="se.skl.tp.vp.vagvalrouter.VagvalRouter" >
			<spring:property .../>
		</custom-processor>
	
		<response>
			<transformers ... />
		</response>
   
		<catch-exception-strategy>
			<transformers ... />
		</catch-exception-strategy>
    </flow>
</mule>

...