Apache Axis2 Java client to access Bronto SOAP WSDL

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

Then I used the following command to generate java classes:
wsdl2java.sh -uri https://api.bronto.com/v4?wsdl
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
  • 2
LVL 36

Accepted Solution

mccarl earned 2000 total points
ID: 38303152
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

ID: 38305372
Thanks so much, mccarl!!!
LVL 36

Expert Comment

ID: 38309348
Not a problem, glad to help!

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

862 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