Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

What is my next step with Bronto WSDL?

What is my next step with Bronto WSDL?

What is my next step with Bronto WSDL?

I need to connect with Bronto (http://api.bronto.com/)
1. I installed Ant and Axis2 from Apache.
2. Ran


wsdl2java.bat -o c:\com.bronto -uri https://api.bronto.com/v4?wsdl
This is create me a sources and build.xml
3. Ran ant in com.bronto directory. It is created build directory with some classes.
What I should do next?. I need to run this simple code from Bronto:


package com.bronto;  
import org.apache.axis.client.Stub;  
import com.bronto.api.objects.BrontoSoapApi;  
import com.bronto.api.objects.BrontoSoapApiImplService;
import com.bronto.api.objects.BrontoSoapApiImplServiceLocator;  
import com.bronto.api.objects.StringValue;  

public class TestLoginBronto {  

 private static final String API_TOKEN = "ADD YOUR API TOKEN HERE";  
  public static void main(String args[]) throws Exception {  
  BrontoSoapApiImplService locator = new       BrontoSoapApiImplServiceLocator();  
  BrontoSoapApi api = locator.getBrontoSoapApiImplPort();  
  // Login  
  String sessionId = api.login(API_TOKEN);  

  if (sessionId == null) {  
      System.out.println("Login failed.");  

  ((Stub)api).setHeader(locator.getServiceName().getNamespaceURI(), "sessionId", sessionId);  
  System.out.println("Login was successful.");  


RE: What is my next step with Bronto WSDL?

I can't remember if wsdl2java produced .java files or .class files also. I think it just produces .java but I'm not sure.

If that's the case, you will need to compile the classes.

Take a look at this


RE: What is my next step with Bronto WSDL?

I compile them by Ant. But there were not BrontoSoapApi, BrontoSoapApiImplService, BrontoSoapApiImplServiceLocator and StringValue classes.
That is my question, what else I should do to get those classes?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close