I was wrong...
I don't need a proxy, but an URL rewriter.
The target of my client is Synapse and Synapse have to rewrite the URL to
aim the real services.
I'm writing a mediator to do this, but the "To" information in the message
context doesn't contains the protocol, the host and the port.
How can I know the original protocol, host and port?

Thank you.


-----Message d'origine-----
De : Paul Fremantle [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 14 mars 2008 19:13
À : [email protected]
Objet : Re: Generic Proxy


Laurent

The other option is that Synapse acts as a HTTP Proxy. If you have Synapse
running on 8080 and you set that as the proxy for your HTTP client, the
message will be passed to the main mediation with the correct endpoint
automatically. No rewriting necessary, because the correct endpoint is
specified by the client.

Paul

2008/2/20 Laurent CHARTIER <[EMAIL PROTECTED]>:
> Hi all,
>  I'm interested in a generic proxy.
>  My needs are to mediate the message (in order to log some 
> informations) and  then to route to another server.  It seems that I 
> must declare one proxy for each service in the synapse  configuration.
>  Is there a way to declare just one proxy to only switch the host and not
the
>  path?
>
>  Thanks,
>  Laurent CHARTIER
>  MiddleWare - Pôle Gestion des flux
>  AGORA Montauban - Tél. :05.63.68.46.24
>  P Avant d'imprimer, pensez à l'Environnement
>
>
>
>
>  Ce message est protégé par les règles relatives au secret des 
> correspondances. Il est donc établi à destination exclusive de son 
> destinataire. Celui-ci peut donc contenir des informations 
> confidentielles. La divulgation de ces informations est à ce titre 
> rigoureusement interdite. Si vous avez reçu ce message par erreur, 
> merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure 
> ci-dessus et de détruire le message ainsi que toute pièce jointe.
>
>  This message is protected by the secrecy of correspondence rules. 
> Therefore, this message is intended solely for the attention of the 
> addressee. This message may contain privileged or confidential 
> information, as such the disclosure of these informations is strictly 
> forbidden. If, by mistake, you have received this message, please 
> return this message to the addressser whose e-mail address is written 
> above and destroy this message and all files attached.
>
>
>



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com




Ce message est protégé par les règles relatives au secret des correspondances. 
Il est donc établi à destination exclusive de son destinataire. Celui-ci peut 
donc contenir des informations confidentielles. La divulgation de ces 
informations est à ce titre rigoureusement interdite. Si vous avez reçu ce 
message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail 
figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, 
this message is intended solely for the attention of the addressee. This 
message may contain privileged or confidential information, as such the 
disclosure of these informations is strictly forbidden. If, by mistake, you 
have received this message, please return this message to the addressser whose 
e-mail address is written above and destroy this message and all files attached.


Reply via email to