You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Laurent CHARTIER <ex...@agora.msa.fr> on 2008/07/03 16:05:10 UTC

[Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Hi,
I have a simple question but I can't get a synapse.xml working.
 
I have a sequence which sends a WS-request to an endpoint. Actually the
format is soap12.
If the response is a SOAPFault then the "onError" property points to another
sequence which  transform the soapFault.
 
The fact is that this transformation can only be done from a SOAP 1.2
soapFault.
 
I have to invoque a SOAP 1.1 endpoint. No problem to change the format to
soap11 in the address endpoint in order to have a SOAP 1.1 request.
But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault and
the transformation can't work.
 
What can I do before the transformation of a soapFault to be sure the
soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP 1.1 to
SOAP 1.2?
 
Thanks,
Laurent.



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.



RE : RE : RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
The JIRA issue for this is https://issues.apache.org/jira/browse/SYNAPSE-393

Thank you,
Laurent.

-----Message d'origine-----
De : Ruwan Linton [mailto:ruwan.linton@gmail.com] 
Envoyé : lundi 7 juillet 2008 11:34
À : user@synapse.apache.org
Objet : Re: RE : RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent,

I agree, I am in the process of revisiting this code and will fix this when
fixing the earlier issue as well.

Could you please raises a JIRA issue on this.

Thanks,
Ruwan

On Mon, Jul 7, 2008 at 2:45 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> Looking in the SVN
> ( 
> http://svn.apache.org/viewvc/synapse/tags/1.1.1/modules/core/src/main/
> java/
>
org/apache/synapse/core/axis2/SOAPUtils.java?revision=615753&view=markup<htt
p://svn.apache.org/viewvc/synapse/tags/1.1.1/modules/core/src/main/java/org/
apache/synapse/core/axis2/SOAPUtils.java?revision=615753&view=markup>)
> I
> see that only code and reason are obtained from the original SOAPFault to
> create the new SOAP 1.2 SOAPFault.
>
> It would be great to have the role and the detail to be translated too 
> ;-)
>
> Laurent
>
> -----Message d'origine-----
> De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Envoyé : samedi 5 juillet 2008 15:24
> À : user@synapse.apache.org
> Objet : Re: RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent,
>
> It seems this piece of code is a bit buggy, but I was wondering how 
> this was working when we use the format attribute, may be that also 
> was not properly working.
>
> Let me have a look at all those and get back to you. Sorry for the 
> inconveniences.
>
> Thanks,
> Ruwan
>
> On Fri, Jul 4, 2008 at 5:17 PM, Laurent CHARTIER < 
> ext_chartier.laurent@agora.msa.fr> wrote:
>
> > Hummmm
> > It seems that SOAPUtils.convertSOAP11toSOAP12(...) doesn't convert a 
> > SOAPFault in the Body. I'm testing my mediator and here are the
> > result:
> >
> > Before:
> > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> >        <env:Body>
> >                <env:Fault>
> >                        <faultcode>env:Server</faultcode>
> >                        <faultstring>
> >                                Internal Server Error (Caught 
> > exception while handling
> >                                request: 
> > javax.xml.rpc.JAXRPCException:
> >
> > [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
> >                                Echec de consultation du Profil 
> > utilisateur dans SAS)
> >                        </faultstring>
> >                </env:Fault>
> >        </env:Body>
> > </env:Envelope>
> >
> > After:
> >
> > <soapenv:Envelope
> >        xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> >        <soapenv:Header />
> >        <soapenv:Body>
> >                <env:Fault
> >
> > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> >                        <faultcode>env:Server</faultcode>
> >                        <faultstring>
> >                                Internal Server Error (Caught 
> > exception while handling
> >                                request: 
> > javax.xml.rpc.JAXRPCException:
> >
> > [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
> >                                Echec de consultation du Profil 
> > utilisateur dans SAS)
> >                        </faultstring>
> >                </env:Fault>
> >        </soapenv:Body>
> > </soapenv:Envelope>
> >
> > Any idea?
> >
> > Laurent.
> >
> >
> > -----Message d'origine-----
> > De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> > Envoyé : jeudi 3 juillet 2008 17:32
> > À : user@synapse.apache.org
> > Objet : Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
> >
> >
> > Hi Laurent,
> >
> > I think the custom mediator will be more performant in this case 
> > because you are using just that utility method. If you use the above 
> > specified steps there will be a filter mediator which will introduce 
> > some overhead which is slightly higher than an if condition when it 
> > comes to execution.
> >
> > Thanks,
> > Ruwan
> >
> > On Thu, Jul 3, 2008 at 8:54 PM, Laurent CHARTIER < 
> > ext_chartier.laurent@agora.msa.fr> wrote:
> >
> > > That's what I'm doing into a mediator.
> > > By the way, my synapse.xml won't be difficult to read.
> > >
> > > But what is the most performant? Filtering in a sequence or 
> > > executing a mediator?
> > >
> > > Laurent.
> > >
> > > -----Message d'origine-----
> > > De : Asankha C. Perera [mailto:asankha@wso2.com]
> > > Envoyé : jeudi 3 juillet 2008 17:18
> > > À : user@synapse.apache.org
> > > Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
> > >
> > >
> > > Hi Laurent
> > >
> > > If I understand your problem correctly, your error handling 
> > > sequence needs to identify a SOAP 1.1 fault and SOAP 1.2 fault 
> > > differently? If so, the easiest is to use a filter mediator and 
> > > check for the existence of a SOAP 1.1 or 1.2 fault element as 
> > > follows:
> > >
> > > <filter source="//s11:Fault" 
> > > xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
> > >    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
> > >    <makefault version="soap12">
> > >           <code value="tns:Receiver" 
> > > xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
> > >           <reason expression="//s11:Reason/s11:Text"/>
> > >   </makefault>
> > > </filter>
> > >
> > > asankha
> > >
> > > Laurent CHARTIER wrote:
> > > > Hi,
> > > > I have a simple question but I can't get a synapse.xml working.
> > > >
> > > > I have a sequence which sends a WS-request to an endpoint. 
> > > > Actually the format is soap12. If the response is a SOAPFault 
> > > > then the "onError" property points to another sequence which  
> > > > transform the soapFault.
> > > >
> > > > The fact is that this transformation can only be done from a 
> > > > SOAP 1.2 soapFault.
> > > >
> > > > I have to invoque a SOAP 1.1 endpoint. No problem to change the 
> > > > format to soap11 in the address endpoint in order to have a SOAP 
> > > > 1.1 request. But then, if this endpoint returns a soapFault, it 
> > > > is a SOAP 1.1 fault and the transformation can't work.
> > > >
> > > > What can I do before the transformation of a soapFault to be 
> > > > sure the soapFault is a SOAP1.2 fault? And if not, how can I 
> > > > convert from SOAP 1.1 to SOAP 1.2?
> > > >
> > > > Thanks,
> > > > Laurent.
> > > >
> > > >
> > > >
> > > > 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.
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > Asankha C. Perera
> > >
> > > WSO2 - http://wso2.org
> > > http://esbmagic.blogspot.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.
> > >
> > >
> > >
> >
> >
> > --
> > Ruwan Linton
> > http://wso2.org - "Oxygenating the Web Services Platform" 
> > http://ruwansblog.blogspot.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.
> >
> >
> >
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform" 
> http://ruwansblog.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.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.



Re: RE : RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Laurent,

I agree, I am in the process of revisiting this code and will fix this when
fixing the earlier issue as well.

Could you please raises a JIRA issue on this.

Thanks,
Ruwan

On Mon, Jul 7, 2008 at 2:45 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> Looking in the SVN
> (
> http://svn.apache.org/viewvc/synapse/tags/1.1.1/modules/core/src/main/java/
> org/apache/synapse/core/axis2/SOAPUtils.java?revision=615753&view=markup<http://svn.apache.org/viewvc/synapse/tags/1.1.1/modules/core/src/main/java/org/apache/synapse/core/axis2/SOAPUtils.java?revision=615753&view=markup>)
> I
> see that only code and reason are obtained from the original SOAPFault to
> create the new SOAP 1.2 SOAPFault.
>
> It would be great to have the role and the detail to be translated too ;-)
>
> Laurent
>
> -----Message d'origine-----
> De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Envoyé : samedi 5 juillet 2008 15:24
> À : user@synapse.apache.org
> Objet : Re: RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent,
>
> It seems this piece of code is a bit buggy, but I was wondering how this
> was
> working when we use the format attribute, may be that also was not properly
> working.
>
> Let me have a look at all those and get back to you. Sorry for the
> inconveniences.
>
> Thanks,
> Ruwan
>
> On Fri, Jul 4, 2008 at 5:17 PM, Laurent CHARTIER <
> ext_chartier.laurent@agora.msa.fr> wrote:
>
> > Hummmm
> > It seems that SOAPUtils.convertSOAP11toSOAP12(...) doesn't convert a
> > SOAPFault in the Body. I'm testing my mediator and here are the
> > result:
> >
> > Before:
> > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> >        <env:Body>
> >                <env:Fault>
> >                        <faultcode>env:Server</faultcode>
> >                        <faultstring>
> >                                Internal Server Error (Caught exception
> > while handling
> >                                request: javax.xml.rpc.JAXRPCException:
> >
> > [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
> >                                Echec de consultation du Profil
> > utilisateur dans SAS)
> >                        </faultstring>
> >                </env:Fault>
> >        </env:Body>
> > </env:Envelope>
> >
> > After:
> >
> > <soapenv:Envelope
> >        xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> >        <soapenv:Header />
> >        <soapenv:Body>
> >                <env:Fault
> >
> > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> >                        <faultcode>env:Server</faultcode>
> >                        <faultstring>
> >                                Internal Server Error (Caught exception
> > while handling
> >                                request: javax.xml.rpc.JAXRPCException:
> >
> > [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
> >                                Echec de consultation du Profil
> > utilisateur dans SAS)
> >                        </faultstring>
> >                </env:Fault>
> >        </soapenv:Body>
> > </soapenv:Envelope>
> >
> > Any idea?
> >
> > Laurent.
> >
> >
> > -----Message d'origine-----
> > De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> > Envoyé : jeudi 3 juillet 2008 17:32
> > À : user@synapse.apache.org
> > Objet : Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
> >
> >
> > Hi Laurent,
> >
> > I think the custom mediator will be more performant in this case
> > because you are using just that utility method. If you use the above
> > specified steps there will be a filter mediator which will introduce
> > some overhead which is slightly higher than an if condition when it
> > comes to execution.
> >
> > Thanks,
> > Ruwan
> >
> > On Thu, Jul 3, 2008 at 8:54 PM, Laurent CHARTIER <
> > ext_chartier.laurent@agora.msa.fr> wrote:
> >
> > > That's what I'm doing into a mediator.
> > > By the way, my synapse.xml won't be difficult to read.
> > >
> > > But what is the most performant? Filtering in a sequence or
> > > executing a mediator?
> > >
> > > Laurent.
> > >
> > > -----Message d'origine-----
> > > De : Asankha C. Perera [mailto:asankha@wso2.com]
> > > Envoyé : jeudi 3 juillet 2008 17:18
> > > À : user@synapse.apache.org
> > > Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
> > >
> > >
> > > Hi Laurent
> > >
> > > If I understand your problem correctly, your error handling sequence
> > > needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently?
> > > If so, the easiest is to use a filter mediator and check for the
> > > existence of a SOAP 1.1 or 1.2 fault element as follows:
> > >
> > > <filter source="//s11:Fault"
> > > xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
> > >    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
> > >    <makefault version="soap12">
> > >           <code value="tns:Receiver"
> > > xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
> > >           <reason expression="//s11:Reason/s11:Text"/>
> > >   </makefault>
> > > </filter>
> > >
> > > asankha
> > >
> > > Laurent CHARTIER wrote:
> > > > Hi,
> > > > I have a simple question but I can't get a synapse.xml working.
> > > >
> > > > I have a sequence which sends a WS-request to an endpoint.
> > > > Actually the format is soap12. If the response is a SOAPFault then
> > > > the "onError" property points to another sequence which  transform
> > > > the soapFault.
> > > >
> > > > The fact is that this transformation can only be done from a SOAP
> > > > 1.2 soapFault.
> > > >
> > > > I have to invoque a SOAP 1.1 endpoint. No problem to change the
> > > > format to soap11 in the address endpoint in order to have a SOAP
> > > > 1.1 request. But then, if this endpoint returns a soapFault, it is
> > > > a SOAP 1.1 fault and the transformation can't work.
> > > >
> > > > What can I do before the transformation of a soapFault to be sure
> > > > the soapFault is a SOAP1.2 fault? And if not, how can I convert
> > > > from SOAP 1.1 to SOAP 1.2?
> > > >
> > > > Thanks,
> > > > Laurent.
> > > >
> > > >
> > > >
> > > > 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.
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > Asankha C. Perera
> > >
> > > WSO2 - http://wso2.org
> > > http://esbmagic.blogspot.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.
> > >
> > >
> > >
> >
> >
> > --
> > Ruwan Linton
> > http://wso2.org - "Oxygenating the Web Services Platform"
> > http://ruwansblog.blogspot.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.
> >
> >
> >
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

RE : RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
Looking in the SVN
(http://svn.apache.org/viewvc/synapse/tags/1.1.1/modules/core/src/main/java/
org/apache/synapse/core/axis2/SOAPUtils.java?revision=615753&view=markup) I
see that only code and reason are obtained from the original SOAPFault to
create the new SOAP 1.2 SOAPFault.

It would be great to have the role and the detail to be translated too ;-)

Laurent

-----Message d'origine-----
De : Ruwan Linton [mailto:ruwan.linton@gmail.com] 
Envoyé : samedi 5 juillet 2008 15:24
À : user@synapse.apache.org
Objet : Re: RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent,

It seems this piece of code is a bit buggy, but I was wondering how this was
working when we use the format attribute, may be that also was not properly
working.

Let me have a look at all those and get back to you. Sorry for the
inconveniences.

Thanks,
Ruwan

On Fri, Jul 4, 2008 at 5:17 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> Hummmm
> It seems that SOAPUtils.convertSOAP11toSOAP12(...) doesn't convert a 
> SOAPFault in the Body. I'm testing my mediator and here are the 
> result:
>
> Before:
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>        <env:Body>
>                <env:Fault>
>                        <faultcode>env:Server</faultcode>
>                        <faultstring>
>                                Internal Server Error (Caught exception 
> while handling
>                                request: javax.xml.rpc.JAXRPCException:
>
> [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
>                                Echec de consultation du Profil 
> utilisateur dans SAS)
>                        </faultstring>
>                </env:Fault>
>        </env:Body>
> </env:Envelope>
>
> After:
>
> <soapenv:Envelope
>        xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>        <soapenv:Header />
>        <soapenv:Body>
>                <env:Fault
>
> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>                        <faultcode>env:Server</faultcode>
>                        <faultstring>
>                                Internal Server Error (Caught exception 
> while handling
>                                request: javax.xml.rpc.JAXRPCException:
>
> [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
>                                Echec de consultation du Profil 
> utilisateur dans SAS)
>                        </faultstring>
>                </env:Fault>
>        </soapenv:Body>
> </soapenv:Envelope>
>
> Any idea?
>
> Laurent.
>
>
> -----Message d'origine-----
> De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Envoyé : jeudi 3 juillet 2008 17:32
> À : user@synapse.apache.org
> Objet : Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent,
>
> I think the custom mediator will be more performant in this case 
> because you are using just that utility method. If you use the above 
> specified steps there will be a filter mediator which will introduce 
> some overhead which is slightly higher than an if condition when it 
> comes to execution.
>
> Thanks,
> Ruwan
>
> On Thu, Jul 3, 2008 at 8:54 PM, Laurent CHARTIER < 
> ext_chartier.laurent@agora.msa.fr> wrote:
>
> > That's what I'm doing into a mediator.
> > By the way, my synapse.xml won't be difficult to read.
> >
> > But what is the most performant? Filtering in a sequence or 
> > executing a mediator?
> >
> > Laurent.
> >
> > -----Message d'origine-----
> > De : Asankha C. Perera [mailto:asankha@wso2.com]
> > Envoyé : jeudi 3 juillet 2008 17:18
> > À : user@synapse.apache.org
> > Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
> >
> >
> > Hi Laurent
> >
> > If I understand your problem correctly, your error handling sequence 
> > needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? 
> > If so, the easiest is to use a filter mediator and check for the 
> > existence of a SOAP 1.1 or 1.2 fault element as follows:
> >
> > <filter source="//s11:Fault" 
> > xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
> >    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
> >    <makefault version="soap12">
> >           <code value="tns:Receiver" 
> > xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
> >           <reason expression="//s11:Reason/s11:Text"/>
> >   </makefault>
> > </filter>
> >
> > asankha
> >
> > Laurent CHARTIER wrote:
> > > Hi,
> > > I have a simple question but I can't get a synapse.xml working.
> > >
> > > I have a sequence which sends a WS-request to an endpoint. 
> > > Actually the format is soap12. If the response is a SOAPFault then 
> > > the "onError" property points to another sequence which  transform 
> > > the soapFault.
> > >
> > > The fact is that this transformation can only be done from a SOAP 
> > > 1.2 soapFault.
> > >
> > > I have to invoque a SOAP 1.1 endpoint. No problem to change the 
> > > format to soap11 in the address endpoint in order to have a SOAP 
> > > 1.1 request. But then, if this endpoint returns a soapFault, it is 
> > > a SOAP 1.1 fault and the transformation can't work.
> > >
> > > What can I do before the transformation of a soapFault to be sure 
> > > the soapFault is a SOAP1.2 fault? And if not, how can I convert 
> > > from SOAP 1.1 to SOAP 1.2?
> > >
> > > Thanks,
> > > Laurent.
> > >
> > >
> > >
> > > 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.
> > >
> > >
> > >
> > >
> >
> > --
> > Asankha C. Perera
> >
> > WSO2 - http://wso2.org
> > http://esbmagic.blogspot.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.
> >
> >
> >
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform" 
> http://ruwansblog.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.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.



Re: RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Laurent,

It seems this piece of code is a bit buggy, but I was wondering how this was
working when we use the format attribute, may be that also was not properly
working.

Let me have a look at all those and get back to you. Sorry for the
inconveniences.

Thanks,
Ruwan

On Fri, Jul 4, 2008 at 5:17 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> Hummmm
> It seems that SOAPUtils.convertSOAP11toSOAP12(...) doesn't convert a
> SOAPFault in the Body.
> I'm testing my mediator and here are the result:
>
> Before:
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>        <env:Body>
>                <env:Fault>
>                        <faultcode>env:Server</faultcode>
>                        <faultstring>
>                                Internal Server Error (Caught exception
> while handling
>                                request: javax.xml.rpc.JAXRPCException:
>
> [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
>                                Echec de consultation du Profil utilisateur
> dans SAS)
>                        </faultstring>
>                </env:Fault>
>        </env:Body>
> </env:Envelope>
>
> After:
>
> <soapenv:Envelope
>        xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>        <soapenv:Header />
>        <soapenv:Body>
>                <env:Fault
>
> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>                        <faultcode>env:Server</faultcode>
>                        <faultstring>
>                                Internal Server Error (Caught exception
> while handling
>                                request: javax.xml.rpc.JAXRPCException:
>
> [fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
>                                Echec de consultation du Profil utilisateur
> dans SAS)
>                        </faultstring>
>                </env:Fault>
>        </soapenv:Body>
> </soapenv:Envelope>
>
> Any idea?
>
> Laurent.
>
>
> -----Message d'origine-----
> De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Envoyé : jeudi 3 juillet 2008 17:32
> À : user@synapse.apache.org
> Objet : Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent,
>
> I think the custom mediator will be more performant in this case because
> you
> are using just that utility method. If you use the above specified steps
> there will be a filter mediator which will introduce some overhead which is
> slightly higher than an if condition when it comes to execution.
>
> Thanks,
> Ruwan
>
> On Thu, Jul 3, 2008 at 8:54 PM, Laurent CHARTIER <
> ext_chartier.laurent@agora.msa.fr> wrote:
>
> > That's what I'm doing into a mediator.
> > By the way, my synapse.xml won't be difficult to read.
> >
> > But what is the most performant? Filtering in a sequence or executing
> > a mediator?
> >
> > Laurent.
> >
> > -----Message d'origine-----
> > De : Asankha C. Perera [mailto:asankha@wso2.com]
> > Envoyé : jeudi 3 juillet 2008 17:18
> > À : user@synapse.apache.org
> > Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
> >
> >
> > Hi Laurent
> >
> > If I understand your problem correctly, your error handling sequence
> > needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? If
> > so, the easiest is to use a filter mediator and check for the
> > existence of a SOAP 1.1 or 1.2 fault element as follows:
> >
> > <filter source="//s11:Fault"
> > xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
> >    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
> >    <makefault version="soap12">
> >           <code value="tns:Receiver"
> > xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
> >           <reason expression="//s11:Reason/s11:Text"/>
> >   </makefault>
> > </filter>
> >
> > asankha
> >
> > Laurent CHARTIER wrote:
> > > Hi,
> > > I have a simple question but I can't get a synapse.xml working.
> > >
> > > I have a sequence which sends a WS-request to an endpoint. Actually
> > > the format is soap12. If the response is a SOAPFault then the
> > > "onError" property points to another sequence which  transform the
> > > soapFault.
> > >
> > > The fact is that this transformation can only be done from a SOAP
> > > 1.2 soapFault.
> > >
> > > I have to invoque a SOAP 1.1 endpoint. No problem to change the
> > > format to soap11 in the address endpoint in order to have a SOAP 1.1
> > > request. But then, if this endpoint returns a soapFault, it is a
> > > SOAP 1.1 fault and the transformation can't work.
> > >
> > > What can I do before the transformation of a soapFault to be sure
> > > the soapFault is a SOAP1.2 fault? And if not, how can I convert from
> > > SOAP 1.1 to SOAP 1.2?
> > >
> > > Thanks,
> > > Laurent.
> > >
> > >
> > >
> > > 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.
> > >
> > >
> > >
> > >
> >
> > --
> > Asankha C. Perera
> >
> > WSO2 - http://wso2.org
> > http://esbmagic.blogspot.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.
> >
> >
> >
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
Hummmm
It seems that SOAPUtils.convertSOAP11toSOAP12(...) doesn't convert a
SOAPFault in the Body.
I'm testing my mediator and here are the result:

Before:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
	<env:Body>
		<env:Fault>
			<faultcode>env:Server</faultcode>
			<faultstring>
				Internal Server Error (Caught exception
while handling
				request: javax.xml.rpc.JAXRPCException:
	
[fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
				Echec de consultation du Profil utilisateur
dans SAS)
			</faultstring>
		</env:Fault>
	</env:Body>
</env:Envelope>

After:

<soapenv:Envelope
	xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
	<soapenv:Header />
	<soapenv:Body>
		<env:Fault
	
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
			<faultcode>env:Server</faultcode>
			<faultstring>
				Internal Server Error (Caught exception
while handling
				request: javax.xml.rpc.JAXRPCException:
	
[fr.cnav.axsas.ProfileUtilisateurHandler.loadProfil()]
				Echec de consultation du Profil utilisateur
dans SAS)
			</faultstring>
		</env:Fault>
	</soapenv:Body>
</soapenv:Envelope>

Any idea?

Laurent.


-----Message d'origine-----
De : Ruwan Linton [mailto:ruwan.linton@gmail.com] 
Envoyé : jeudi 3 juillet 2008 17:32
À : user@synapse.apache.org
Objet : Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent,

I think the custom mediator will be more performant in this case because you
are using just that utility method. If you use the above specified steps
there will be a filter mediator which will introduce some overhead which is
slightly higher than an if condition when it comes to execution.

Thanks,
Ruwan

On Thu, Jul 3, 2008 at 8:54 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> That's what I'm doing into a mediator.
> By the way, my synapse.xml won't be difficult to read.
>
> But what is the most performant? Filtering in a sequence or executing 
> a mediator?
>
> Laurent.
>
> -----Message d'origine-----
> De : Asankha C. Perera [mailto:asankha@wso2.com]
> Envoyé : jeudi 3 juillet 2008 17:18
> À : user@synapse.apache.org
> Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent
>
> If I understand your problem correctly, your error handling sequence 
> needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? If 
> so, the easiest is to use a filter mediator and check for the 
> existence of a SOAP 1.1 or 1.2 fault element as follows:
>
> <filter source="//s11:Fault" 
> xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
>    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
>    <makefault version="soap12">
>           <code value="tns:Receiver" 
> xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>           <reason expression="//s11:Reason/s11:Text"/>
>   </makefault>
> </filter>
>
> asankha
>
> Laurent CHARTIER wrote:
> > Hi,
> > I have a simple question but I can't get a synapse.xml working.
> >
> > I have a sequence which sends a WS-request to an endpoint. Actually 
> > the format is soap12. If the response is a SOAPFault then the 
> > "onError" property points to another sequence which  transform the 
> > soapFault.
> >
> > The fact is that this transformation can only be done from a SOAP 
> > 1.2 soapFault.
> >
> > I have to invoque a SOAP 1.1 endpoint. No problem to change the 
> > format to soap11 in the address endpoint in order to have a SOAP 1.1 
> > request. But then, if this endpoint returns a soapFault, it is a 
> > SOAP 1.1 fault and the transformation can't work.
> >
> > What can I do before the transformation of a soapFault to be sure 
> > the soapFault is a SOAP1.2 fault? And if not, how can I convert from 
> > SOAP 1.1 to SOAP 1.2?
> >
> > Thanks,
> > Laurent.
> >
> >
> >
> > 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.
> >
> >
> >
> >
>
> --
> Asankha C. Perera
>
> WSO2 - http://wso2.org
> http://esbmagic.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.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.



Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Laurent,

I think the custom mediator will be more performant in this case because you
are using just that utility method. If you use the above specified steps
there will be a filter mediator which will introduce some overhead which is
slightly higher than an if condition when it comes to execution.

Thanks,
Ruwan

On Thu, Jul 3, 2008 at 8:54 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> That's what I'm doing into a mediator.
> By the way, my synapse.xml won't be difficult to read.
>
> But what is the most performant? Filtering in a sequence or executing a
> mediator?
>
> Laurent.
>
> -----Message d'origine-----
> De : Asankha C. Perera [mailto:asankha@wso2.com]
> Envoyé : jeudi 3 juillet 2008 17:18
> À : user@synapse.apache.org
> Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent
>
> If I understand your problem correctly, your error handling sequence
> needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? If
> so, the easiest is to use a filter mediator and check for the existence
> of a SOAP 1.1 or 1.2 fault element as follows:
>
> <filter source="//s11:Fault"
> xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
>    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
>    <makefault version="soap12">
>           <code value="tns:Receiver"
> xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>           <reason expression="//s11:Reason/s11:Text"/>
>   </makefault>
> </filter>
>
> asankha
>
> Laurent CHARTIER wrote:
> > Hi,
> > I have a simple question but I can't get a synapse.xml working.
> >
> > I have a sequence which sends a WS-request to an endpoint. Actually
> > the format is soap12. If the response is a SOAPFault then the
> > "onError" property points to another sequence which  transform the
> > soapFault.
> >
> > The fact is that this transformation can only be done from a SOAP 1.2
> > soapFault.
> >
> > I have to invoque a SOAP 1.1 endpoint. No problem to change the format
> > to soap11 in the address endpoint in order to have a SOAP 1.1 request.
> > But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault
> > and the transformation can't work.
> >
> > What can I do before the transformation of a soapFault to be sure the
> > soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP
> > 1.1 to SOAP 1.2?
> >
> > Thanks,
> > Laurent.
> >
> >
> >
> > 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.
> >
> >
> >
> >
>
> --
> Asankha C. Perera
>
> WSO2 - http://wso2.org
> http://esbmagic.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
That's what I'm doing into a mediator.
By the way, my synapse.xml won't be difficult to read.

But what is the most performant? Filtering in a sequence or executing a
mediator?

Laurent.

-----Message d'origine-----
De : Asankha C. Perera [mailto:asankha@wso2.com] 
Envoyé : jeudi 3 juillet 2008 17:18
À : user@synapse.apache.org
Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent

If I understand your problem correctly, your error handling sequence 
needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? If 
so, the easiest is to use a filter mediator and check for the existence 
of a SOAP 1.1 or 1.2 fault element as follows:

<filter source="//s11:Fault" 
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
    <makefault version="soap12">
           <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
           <reason expression="//s11:Reason/s11:Text"/>
   </makefault>
</filter>

asankha

Laurent CHARTIER wrote:
> Hi,
> I have a simple question but I can't get a synapse.xml working.
>  
> I have a sequence which sends a WS-request to an endpoint. Actually 
> the format is soap12. If the response is a SOAPFault then the 
> "onError" property points to another sequence which  transform the 
> soapFault.
>  
> The fact is that this transformation can only be done from a SOAP 1.2 
> soapFault.
>  
> I have to invoque a SOAP 1.1 endpoint. No problem to change the format 
> to soap11 in the address endpoint in order to have a SOAP 1.1 request. 
> But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault 
> and the transformation can't work.
>  
> What can I do before the transformation of a soapFault to be sure the 
> soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP 
> 1.1 to SOAP 1.2?
>  
> Thanks,
> Laurent.
>
>
>
> 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.
>
>
>
>   

-- 
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.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.



RE : RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
My filter has the following problems:

The original code is soapenv:Client where soapenv is the prefix for
namespace http://schemas.xmlsoap.org/soap/envelope. The produced code is
axis2ns1:soapenv:Client and the prefix has no associated namespace.
For the role and the detail, the original values are not transfered in the
created SOAPFault.

Laurent.

-----Message d'origine-----
De : Asankha C. Perera [mailto:asankha@wso2.com] 
Envoyé : lundi 7 juillet 2008 10:59
À : user@synapse.apache.org
Objet : Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent

Laurent CHARTIER wrote:
> Thank you,
> I modified like this:
>
> 		<filter xpath="/soap11:Envelope/soap11:Body/soap11:Fault"
> xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
> 			<!-- This is a SOAP 1.1 fault. Convert to a SOAP 1.2
> fault -->
> 			<makefault version="soap12">
> 				<!-- Fault/Code/Value from Fault/faultcode
> -->
> 				<code 
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultcode"/>
> 				<!-- Fault/Reason/Text from
> Fault/faultstring-->
> 				<reason 
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultstring"/>
> 				<!-- Fault/Role from Fault/faultactor-->
> 				<role 
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultactor"/>
> 				<!-- Fault/Detail from Fault/detail-->
> 				<detail 
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/detail"/>
> 			</makefault>
> 		</filter>
>
> I just have one problem. The code value namespace is weird...
>   
Sorry.. I do not understand what you mean by weird? Can you be more specific

asankha

-- 
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.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.



Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Laurent

Laurent CHARTIER wrote:
> Thank you,
> I modified like this:
>
> 		<filter xpath="/soap11:Envelope/soap11:Body/soap11:Fault"
> xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
> 			<!-- This is a SOAP 1.1 fault. Convert to a SOAP 1.2
> fault -->
> 			<makefault version="soap12">
> 				<!-- Fault/Code/Value from Fault/faultcode
> -->
> 				<code
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultcode"/>
> 				<!-- Fault/Reason/Text from
> Fault/faultstring-->
> 				<reason
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultstring"/>
> 				<!-- Fault/Role from Fault/faultactor-->
> 				<role
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultactor"/>
> 				<!-- Fault/Detail from Fault/detail-->
> 				<detail
> expression="/soap11:Envelope/soap11:Body/soap11:Fault/detail"/>
> 			</makefault>
> 		</filter>
>
> I just have one problem. The code value namespace is weird...
>   
Sorry.. I do not understand what you mean by weird? Can you be more specific

asankha

-- 
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.com


RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
Thank you,
I modified like this:

		<filter xpath="/soap11:Envelope/soap11:Body/soap11:Fault"
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/">
			<!-- This is a SOAP 1.1 fault. Convert to a SOAP 1.2
fault -->
			<makefault version="soap12">
				<!-- Fault/Code/Value from Fault/faultcode
-->
				<code
expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultcode"/>
				<!-- Fault/Reason/Text from
Fault/faultstring-->
				<reason
expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultstring"/>
				<!-- Fault/Role from Fault/faultactor-->
				<role
expression="/soap11:Envelope/soap11:Body/soap11:Fault/faultactor"/>
				<!-- Fault/Detail from Fault/detail-->
				<detail
expression="/soap11:Envelope/soap11:Body/soap11:Fault/detail"/>
			</makefault>
		</filter>

I just have one problem. The code value namespace is weird...

Laurent.

-----Message d'origine-----
De : Asankha C. Perera [mailto:asankha@wso2.com] 
Envoyé : jeudi 3 juillet 2008 17:18
À : user@synapse.apache.org
Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent

If I understand your problem correctly, your error handling sequence 
needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? If 
so, the easiest is to use a filter mediator and check for the existence 
of a SOAP 1.1 or 1.2 fault element as follows:

<filter source="//s11:Fault" 
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
    <makefault version="soap12">
           <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
           <reason expression="//s11:Reason/s11:Text"/>
   </makefault>
</filter>

asankha

Laurent CHARTIER wrote:
> Hi,
> I have a simple question but I can't get a synapse.xml working.
>  
> I have a sequence which sends a WS-request to an endpoint. Actually 
> the format is soap12. If the response is a SOAPFault then the 
> "onError" property points to another sequence which  transform the 
> soapFault.
>  
> The fact is that this transformation can only be done from a SOAP 1.2 
> soapFault.
>  
> I have to invoque a SOAP 1.1 endpoint. No problem to change the format 
> to soap11 in the address endpoint in order to have a SOAP 1.1 request. 
> But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault 
> and the transformation can't work.
>  
> What can I do before the transformation of a soapFault to be sure the 
> soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP 
> 1.1 to SOAP 1.2?
>  
> Thanks,
> Laurent.
>
>
>
> 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.
>
>
>
>   

-- 
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.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.



Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Laurent

If I understand your problem correctly, your error handling sequence 
needs to identify a SOAP 1.1 fault and SOAP 1.2 fault differently? If 
so, the easiest is to use a filter mediator and check for the existence 
of a SOAP 1.1 or 1.2 fault element as follows:

<filter source="//s11:Fault" 
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
    // this is a SOAP 1.1 fault.. convert to a SOAP 1.2 fault
    <makefault version="soap12">
           <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
           <reason expression="//s11:Reason/s11:Text"/>
   </makefault>
</filter>

asankha

Laurent CHARTIER wrote:
> Hi,
> I have a simple question but I can't get a synapse.xml working.
>  
> I have a sequence which sends a WS-request to an endpoint. Actually the
> format is soap12.
> If the response is a SOAPFault then the "onError" property points to another
> sequence which  transform the soapFault.
>  
> The fact is that this transformation can only be done from a SOAP 1.2
> soapFault.
>  
> I have to invoque a SOAP 1.1 endpoint. No problem to change the format to
> soap11 in the address endpoint in order to have a SOAP 1.1 request.
> But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault and
> the transformation can't work.
>  
> What can I do before the transformation of a soapFault to be sure the
> soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP 1.1 to
> SOAP 1.2?
>  
> Thanks,
> Laurent.
>
>
>
> 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.
>
>
>
>   

-- 
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.com


Re: RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Laurent,

On Thu, Jul 3, 2008 at 8:39 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> The transformation element is a mediator.
> As I'm not the owner of the transformation element, I can't modify the
> code.


I got your point.


>
>
> I'm writing a new mediator which will convert from SOAP 1.1 to SOAP 1.2.
> And
> I'll put it juste before the transformation mediator. I think I just have
> to
> use org.apache.synapse.core.axis2.SOAPUtils.convertSOAP11toSOAP12.


Exactly, you could do this without this mediator as well, but since there
isn't much to do in your code (just need to use the utility to convert the
soap11 fault to soap12) either way is OK I guess.

Thanks,
Ruwan


>
>
> -----Message d'origine-----
> De : Ruwan Linton [mailto:ruwan.linton@gmail.com]
> Envoyé : jeudi 3 juillet 2008 17:05
> À : user@synapse.apache.org
> Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2
>
>
> Hi Laurent,
>
> If you need to transform the soap11 fault into a soap12 fault before the
> transformation then you need to use a makefault mediator with soap12 and
> there you will have to copy the properties of the soap11 fault into soap12
> fault using xpath expressions to retrieve information of the soap11 fault.
>
> But I strongly believe that this is not the best solution. May I know the
> reason why you cannot change the transformation to cater the soap11 faults
> as well. Is this an xslt transformation? If so you could easily do this by
> adding a new template for the soap11 faults.
>
> If you can share the xslt I can provide the necessary changes to the
> transformation.
>
> Thanks,
> Ruwan
>
> On Thu, Jul 3, 2008 at 7:35 PM, Laurent CHARTIER <
> ext_chartier.laurent@agora.msa.fr> wrote:
>
> > Hi,
> > I have a simple question but I can't get a synapse.xml working.
> >
> > I have a sequence which sends a WS-request to an endpoint. Actually
> > the format is soap12. If the response is a SOAPFault then the
> > "onError" property points to another
> > sequence which  transform the soapFault.
> >
> > The fact is that this transformation can only be done from a SOAP 1.2
> > soapFault.
> >
> > I have to invoque a SOAP 1.1 endpoint. No problem to change the format
> > to soap11 in the address endpoint in order to have a SOAP 1.1 request.
> > But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault
> > and the transformation can't work.
> >
> > What can I do before the transformation of a soapFault to be sure the
> > soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP
> > 1.1 to SOAP 1.2?
> >
> > Thanks,
> > Laurent.
> >
> >
> >
> > 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.
> >
> >
> >
>
>
> --
> Ruwan Linton
> http://wso2.org - "Oxygenating the Web Services Platform"
> http://ruwansblog.blogspot.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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/

RE : [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Laurent CHARTIER <ex...@agora.msa.fr>.
The transformation element is a mediator.
As I'm not the owner of the transformation element, I can't modify the code.

I'm writing a new mediator which will convert from SOAP 1.1 to SOAP 1.2. And
I'll put it juste before the transformation mediator. I think I just have to
use org.apache.synapse.core.axis2.SOAPUtils.convertSOAP11toSOAP12.

-----Message d'origine-----
De : Ruwan Linton [mailto:ruwan.linton@gmail.com] 
Envoyé : jeudi 3 juillet 2008 17:05
À : user@synapse.apache.org
Objet : Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2


Hi Laurent,

If you need to transform the soap11 fault into a soap12 fault before the
transformation then you need to use a makefault mediator with soap12 and
there you will have to copy the properties of the soap11 fault into soap12
fault using xpath expressions to retrieve information of the soap11 fault.

But I strongly believe that this is not the best solution. May I know the
reason why you cannot change the transformation to cater the soap11 faults
as well. Is this an xslt transformation? If so you could easily do this by
adding a new template for the soap11 faults.

If you can share the xslt I can provide the necessary changes to the
transformation.

Thanks,
Ruwan

On Thu, Jul 3, 2008 at 7:35 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> Hi,
> I have a simple question but I can't get a synapse.xml working.
>
> I have a sequence which sends a WS-request to an endpoint. Actually 
> the format is soap12. If the response is a SOAPFault then the 
> "onError" property points to another
> sequence which  transform the soapFault.
>
> The fact is that this transformation can only be done from a SOAP 1.2 
> soapFault.
>
> I have to invoque a SOAP 1.1 endpoint. No problem to change the format 
> to soap11 in the address endpoint in order to have a SOAP 1.1 request. 
> But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault 
> and the transformation can't work.
>
> What can I do before the transformation of a soapFault to be sure the 
> soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP 
> 1.1 to SOAP 1.2?
>
> Thanks,
> Laurent.
>
>
>
> 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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.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.



Re: [Synapse 1.1.1] - F.A.Q. SOAP1.1 to SOAP1.2

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Laurent,

If you need to transform the soap11 fault into a soap12 fault before the
transformation then you need to use a makefault mediator with soap12 and
there you will have to copy the properties of the soap11 fault into soap12
fault using xpath expressions to retrieve information of the soap11 fault.

But I strongly believe that this is not the best solution. May I know the
reason why you cannot change the transformation to cater the soap11 faults
as well. Is this an xslt transformation? If so you could easily do this by
adding a new template for the soap11 faults.

If you can share the xslt I can provide the necessary changes to the
transformation.

Thanks,
Ruwan

On Thu, Jul 3, 2008 at 7:35 PM, Laurent CHARTIER <
ext_chartier.laurent@agora.msa.fr> wrote:

> Hi,
> I have a simple question but I can't get a synapse.xml working.
>
> I have a sequence which sends a WS-request to an endpoint. Actually the
> format is soap12.
> If the response is a SOAPFault then the "onError" property points to
> another
> sequence which  transform the soapFault.
>
> The fact is that this transformation can only be done from a SOAP 1.2
> soapFault.
>
> I have to invoque a SOAP 1.1 endpoint. No problem to change the format to
> soap11 in the address endpoint in order to have a SOAP 1.1 request.
> But then, if this endpoint returns a soapFault, it is a SOAP 1.1 fault and
> the transformation can't work.
>
> What can I do before the transformation of a soapFault to be sure the
> soapFault is a SOAP1.2 fault? And if not, how can I convert from SOAP 1.1
> to
> SOAP 1.2?
>
> Thanks,
> Laurent.
>
>
>
> 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.
>
>
>


-- 
Ruwan Linton
http://wso2.org - "Oxygenating the Web Services Platform"
http://ruwansblog.blogspot.com/