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 <
[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> Envoyé : samedi 5 juillet 2008 15:24
> À : [email protected]
> 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 <
> [EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > Envoyé : jeudi 3 juillet 2008 17:32
> > À : [email protected]
> > 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 <
> > [EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > > Envoyé : jeudi 3 juillet 2008 17:18
> > > À : [email protected]
> > > 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/

Reply via email to