Sihem
I would like to use synapse as a proxy in front of 2 different web services. So 
I decided to define 2 proxy services in synapse as shown in the configuration 
below. Each proxy is linked to a web service. I read the documentation and it 
seems not to be possible to define only one proxy which will route the client 
request to the correct web service, especially because the client have to use 
the proxy wsdl generated by synapse. Am I right ?
Yes, you are right. However you could define a WSDL for a service that combines operations of both services, and create one proxy service on it, and then route to the correct service by looking at the request.. will that work for you?

asankha
Thanks by advance!
sihem

<localEntry key="calculator_wsdl" 
src="file:repository/conf/CalculatorWSService.wsdl"/>
  <localEntry key="message_wsdl" 
src="file:repository/conf/MessageWSService.wsdl"/>

  <proxy name="CalculatorProxy" trace="enable" transports="http">
    <log level="full"/>
    <target>
      <!--TRAITEMENT DES MESSAGES ENTRANT VERS SYNAPSE-->
      <inSequence><sequence key="calculator_in_sequence.xml"/></inSequence>
      <!--TRAITEMENT DES REPONSES DU SERVICE WEB-->
      <outSequence><sequence key="calculator_out_sequence.xml"/></outSequence>
    </target>
    <publishWSDL key="calculator_wsdl"/>
    <!--Use of WS-Security between the client and synapse-->
    <!--<policy key="sec_policy"/>
    <enableSec/>-->
  </proxy>

  <proxy name="MessageProxy" trace="enable" transports="http">
    <log level="full"/>
    <target>
      <!--TRAITEMENT DES MESSAGES ENTRANT VERS SYNAPSE-->
      <inSequence><sequence key="message_in_sequence.xml"/></inSequence>
      <!--TRAITEMENT DES REPONSES DU SERVICE WEB-->
      <outSequence><sequence key="message_out_sequence.xml"/></outSequence>
    </target>
    <publishWSDL key="message_wsdl"/>
    <!--Use of WS-Security between the client and synapse-->
    <!--<policy key="sec_policy"/>
    <enableSec/>-->
  </proxy>


--------------------------------- Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

Reply via email to