Hi, I´m implementing a web service whith tuscany but I´ve problems with Security in definition.xml.

When I run my client implemented with tuscany too, and with security options set, throw this exception:

   org.apache.tuscany.sca.interfacedef.util.FaultException: Must
   Understand check failed for header
   
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
   : Security
       at
   
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:81)
       at
   
org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:73)
       at
   
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
       at
   
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
       at $Proxy6.getComplementedMsgsListFromCF(Unknown Source)
       at
   
com.ptb.thirdpartyaccess.servicecomponents.RemoteThirdPartyComponent.getComplementedMsgsListFromCF(RemoteThirdPartyComponent.java:29)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at
   
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:105)
       at
   
org.apache.tuscany.sca.core.databinding.wire.PassByValueInteceptor.invoke(PassByValueInteceptor.java:49)
       at
   
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:233)
       at
   
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:130)
       at $Proxy6.getComplementedMsgsListFromCF(Unknown Source)
       at
   
com.ptb.thirdpartyaccess.ThirdPartyAccessWS.getComplementedMsgsListFromCF(ThirdPartyAccessWS.java:112)
       at com.ptb.thirdpartyaccess.Main.main(Main.java:17)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at
   com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)


But if I delete required option required= "authentication" from definition.xml in Web services client, it works despite in definition.xml in server is set option required = "authentication"

Reply via email to