Apache Axis2 Java client to access Bronto SOAP WSDL

Posted on 2012-08-16
Last Modified: 2012-08-19
I've downloaded Apache Axis2, using the following link:

Then I used the following command to generate java classes: -uri
total generated src:

Then I imported those classes in. I tried to write login, with API-TOKEN, but in the stub class axis2 generated, it has the following, instead of take a API-TOKEN string and I can't find: com.bronto.api.v4.BrontoSoapApiImplService#login.

                     * Auto generated method signature
                     * @see com.bronto.api.v4.BrontoSoapApiImplService#login
                     * @param login165
                     * @throws com.bronto.api.v4.ApiExceptionException0 :

                            public  com.bronto.api.v4.BrontoSoapApiImplServiceStub.LoginResponseE login(

                            com.bronto.api.v4.BrontoSoapApiImplServiceStub.LoginE login165)

Thanks for your help!
Question by:xiaoyunwu
    LVL 35

    Accepted Solution

    Looks like you may need to do something like...

    BrontoSoapApiImplServiceStub stub;
    // Get the stub...
    LoginE loginE = new LoginE();
    Login login = new Login();
    login.setApiToken("your token here");
    // Call the web service; login

    Open in new window

    The problem with code auto-generators is that they don't always generate the most efficient code. There may be ways to coax Axis into tweaking what it generates but I haven't used it a lot!

    Author Closing Comment

    Thanks so much, mccarl!!!
    LVL 35

    Expert Comment

    Not a problem, glad to help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    hash value 2 29
    How Complex Is This Java Course ? 9 51
    mapShare challenge 13 40
    Java Message handling in Service Layer 3 19
    For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now