Hi Alexis,
Yes, I'd seen your pleas for a working example when I checked my Axis2
mail folder before sending this one. I figured I'd give another try with
a more direct subject line in the hope that somebody might pick up on it.
Since the policy-in-WSDL support is supposed to be one of the new
features of 1.4, I'm hoping one of the developers at some point actually
tried it out. :-)
- Dennis
Alexis Midon wrote:
similar question here [1], some examples would be appreciated.
Thanks!
[1] http://markmail.org/thread/qsn6t4qwepoialud
Alexis
On Thu, Mar 12, 2009 at 2:39 PM, Dennis Sosnoski <[email protected]
<mailto:[email protected]>> wrote:
I've been trying to use the client-side code generation support for
WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've
tried
several variations of where I place the policy in the WSDL, including
using reference and embedding it directly in the <wsdl:binding>, but
each time I get:
[java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: can't serialize the policy
..
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
[java] at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
[java] at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
[java] Caused by:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: can't serialize the policy
..
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534)
[java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260)
[java] ... 2
more
[java] Caused by: java.lang.RuntimeException: can't serialize the
policy ..
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732)
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261)
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151)
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207)
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163)
[java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492)
[java] ... 3
more
[java] Java Result: 1
Has anyone been able to get the client-side generation for
WS-SecurityPolicy in WSDL to work? If so, can you supply an
example WSDL?
Thanks,
- Dennis
--
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117