Fwd: problem generating client code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: problem generating client code

Mariusz Ch

Hello

I have a problem when I try to generate client code from WSDL: https://pz.gov.pl/pz-services/tpSigning?wsdl

Axis2 starts to generate code and next throws Exception:

Using AXIS2_HOME:   c:\JDeveloper\mywork\reposvn\eLibraries\axis2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.7.0_79
Retrieving document at 'https://pz.gov.pl/pz-services/tpSigning?wsdl'.
Retrieving document at 'https://pz.gov.pl/pz-services/tpSigning?wsdl=wssec-policies.wsdl', relative to 'https://pz.gov.pl/pz-services/tpSigning?wsdl'.
Retrieving document at 'https://pz.gov.pl/pz-services/tpSigning?wsdl'.
Retrieving document at 'https://pz.gov.pl/pz-services/tpSigning?wsdl=wssec-policies.wsdl', relative to 'https://pz.gov.pl/pz-services/tpSigning?wsdl'.
log4j:WARN No appenders could be found for logger (org.apache.axiom.locator.DefaultOMMetaFactoryLocator).
log4j:WARN Please initialize the log4j system properly.
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(CodeGenerationEngine.java:294)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:50)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy ..
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:537)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:283)
        ... 2 more
Caused by: java.lang.RuntimeException: can't serialize the policy ..
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2828)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2358)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2242)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:1232)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1198)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:500)
        ... 3 more
Caused by: java.lang.RuntimeException: RecipientToken is not set
        at org.apache.ws.secpolicy.model.AsymmetricBinding.serialize(AsymmetricBinding.java:146)
        at org.apache.neethi.All.serialize(All.java:71)
        at org.apache.neethi.ExactlyOne.serialize(ExactlyOne.java:54)
        at org.apache.neethi.Policy.serialize(Policy.java:204)
        at org.apache.axis2.util.PolicyUtil.policyComponentToString(PolicyUtil.java:191)
        at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2824)
        ... 8 more


How to force axis to work with this WS? ANY help is appreciated.

Regards
Mariusz