Hi Nandana,
yes you are right I do not use the last version of the Rampart but the
official 1.3 one.
So I did the merge and now it works fine.

Now I should check for sign before encrypt scenario, because it throws the
exception, but I think it is another think that is already fixed.
What I am curious is if the same problem is fixed for
*<sp:OnlySignEntireHeadersAndBody
... />, *but I need to check it first.

Best regards, Dobri


On Nov 20, 2007 7:54 AM, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>
wrote:

> Hi Dobri,
>       we had this problem sometime back. But it was fixed. See
>
>
> [1]http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/SymmetricBinding.java?view=diff&r1=583367&r2=583368&pathrev=583368
> [2]http://svn.apache.org/viewvc?view=rev&revision=583368
>
> Does you server use latest Rampart build ?
>
> Regards,
> Nandana
>
> On Nov 19, 2007 9:01 PM, Dobri Kitipov <[EMAIL PROTECTED]>
> wrote:
>
> > Hi everybody,
> > what I am trying to do is to test symmetric binding  that uses
> > <sp:EncryptBeforeSigning ... /> in order to test the
> > https://issues.apache.org/jira/browse/RAMPART-110
> > Here is my service.xml:
> >
> > <sp:SymmetricBinding xmlns:sp="
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
> >                        <wsp:Policy>
> >                            <sp:ProtectionToken>
> >                                <wsp:Policy xmlns:wsp="
> > http://schemas.xmlsoap.org/ws/2004/09/policy";>
> >                                    <sp:X509Token sp:IncludeToken="
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never
> ">
> >                                        <wsp:Policy>
> >                                            <sp:WssX509V3Token10/>
> >                                            <sp:RequireDerivedKeys/>
> >                                        </wsp:Policy>
> >                                    </sp:X509Token>
> >                                </wsp:Policy>
> >                            </sp:ProtectionToken>
> >                            <sp:AlgorithmSuite xmlns:sp="
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
> >                                <wsp:Policy>
> >                                    <sp:Basic128/>
> >                                </wsp:Policy>
> >                            </sp:AlgorithmSuite>
> >                            <sp:Layout>
> >                                <wsp:Policy>
> >                                    <sp:Strict/>
> >                                </wsp:Policy>
> >                            </sp:Layout>
> >                            <sp:EncryptBeforeSigning />  - this is the
> > problematic line
> >                        </wsp:Policy>
> >                    </sp:SymmetricBinding>
> >
> > When I request ?wsdl I can not see the <sp:EncryptBeforeSigning /> set
> > there:
> >
> > <sp:SymmetricBinding xmlns:sp="
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
> >                    <wsp:Policy>
> >                        <sp:ProtectionToken>
> >                            <wsp:Policy>
> >                                <sp:X509Token sp:IncludeToken="
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never
> ">
> >                                    <wsp:Policy>
> >                                        <sp:WssX509V3Token10/>
> >                                        <sp:RequireDerivedKeys/>
> >                                    </wsp:Policy>
> >                                </sp:X509Token>
> >                            </wsp:Policy>
> >                        </sp:ProtectionToken>
> >                        <sp:AlgorithmSuite>
> >                            <wsp:Policy>
> >                                <sp:Basic128/>
> >                            </wsp:Policy>
> >                        </sp:AlgorithmSuite>
> >                        <sp:Layout>
> >                            <wsp:Policy>
> >                                <sp:Strict/>
> >                            </wsp:Policy>
> >                        </sp:Layout>
> >                    </wsp:Policy>
> >                </sp:SymmetricBinding>
> >
> > I am debugging it at the moment, but if someone knows something about
> > that,
> > he is welcomed.
> >
> > Thank you!
> >
> > Dobri
> >
>

Reply via email to