axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruchith Fernando <ruchith.ferna...@gmail.com>
Subject Re: axis2-call wcf security service
Date Sun, 04 Dec 2011 22:43:14 GMT
Please see here for a similar issue and a possible solution :

http://markmail.org/thread/6hhk72zzgtba5y3v

Thanks,
Ruchith

2011/10/27 刘宏鼎 <liuding_1982@126.com>:
> I used axis2-1.6.1 and rampart 1.6.1
>
>
> At 2011-10-27 15:01:16,"刘宏鼎" <liuding_1982@126.com> wrote:
>
> Hi all,
>  I use axis2 + rampart to call some WCF security (X.509) services as
> following:
> 1> generate java client code by axis2 wsdl2java.bat
> 2> add certificate to client trust store by java keytool
> 3> invoke wcf service by java client
>
> the error message is
> -------------------------------------------------------------------------------------------------------------------------------------
> Exception in thread "main" java.lang.IllegalArgumentException:
> {http://schemas.xmlsoap.org/ws/2005/
> 7/securitypolicy}ProtectionToken is not a <wsp:Policy> element.
>         at
> org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:177)
>         at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:125)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:102)
>         at
> org.apache.ws.secpolicy11.builders.SymmetricBindingBuilder.build(SymmetricBindingBuilderjava:41)
>         at
> org.apache.ws.secpolicy11.builders.SymmetricBindingBuilder.build(SymmetricBindingBuilderjava:36)
>         at
> org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.ava:129)
>         at
> org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:110
>         at
> org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:225)
>         at
> org.apache.neethi.PolicyBuilder.getAllOperator(PolicyBuilder.java:185)
>         at
> org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:218)
>         at
> org.apache.neethi.PolicyBuilder.getExactlyOneOperator(PolicyBuilder.java:181)
>         at
> org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:216)
>         at
> org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:175)
>         at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:114)
>         at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:100)
>         at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:80)
> ----------------------------------------------------------------------------------------------------------------------------
> but I have not policy.xml file, I think the policy content is geneated by
> wsdl2java.bat.
>
> What should I do to solve this problem? Any suggestion is appreciated.
> Thanks in advance.
>
>
> ________________________________
> 网易公开课推出哈佛最受欢迎《幸福》课程,帮您修满幸福学分!
>
>
>
> ________________________________
> 网易公开课推出哈佛最受欢迎《幸福》课程,帮您修满幸福学分!



-- 
http://ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message