Janier
Janier

Reputation: 4412

invoking wso2 admin services using wsdl2java

I have a web application from which i have to invoke a WSO2 Admin service.. I am following this https://docs.wso2.com/display/IS570/Calling+Admin+Services

When I used wsdl2java , I got a zip file...When i opened it , it has just a pom.xml.. How can i use this? My web app is using Maven itself..But no clue how to use this pom.xml and invoke admin service? How to generate stub out of this pom.xml?

Upvotes: 1

Views: 127

Answers (1)

Gayan
Gayan

Reputation: 799

Once you build it with maven client stubs will be generated. See [1] as a sample. Any way client stubs are already available in nexus for released products.

EX: If I want to use client stubs for ChallengeQuestionManagementAdminService I can do it by adding maven dependency

<dependency>
            <groupId>org.wso2.carbon.identity.governance</groupId>
            <artifactId>org.wso2.carbon.identity.recovery.stub</artifactId>
        <version>xxx</version>
</dependency>  

[1] https://github.com/wso2-extensions/identity-governance/tree/master/service-stubs/identity/org.wso2.carbon.identity.recovery.stub

Upvotes: 1

Related Questions