You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Thomas Jaehnig <tj...@HTWM.De> on 2007/06/21 15:08:31 UTC

[Axis2] Using rampart to consume WCF service

Hello,

i want to access a WCF Service which uses WS-Security (WSHttpBinding
with Username Token).

Have someone accomplished this?

When I try to use wsdl2java to generate a client class, it fails with
the following error:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: can't serialize the policy ..
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:256)
...

So i've used a Stub generated from the same service configured without
any security and tried to configure the client behavior in the axis
config file.

Is there an easy way to consume a secure WCF service with Axis2 and Rampart.

If so, can anyone post the configuration he used to get this working.

Thanks in advance

Thomas

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