Page 1 of 1

How-to SOAP TrackStudio 5.0.5

PostPosted: Thu May 28, 2015 7:08 am
by province-sud
Hi,

I try to run this code, but it's missing libraries.
Could give me links to libraries for download them ?

Another things, "http://user.service.soap.trackstudio.com/" is the good URL to use ?

Run on Netbeans with java 1.8u45

Code: Select all
import com.trackstudio.soap.service.task.Task;
import com.trackstudio.soap.service.task.TaskService;
import com.trackstudio.soap.service.user.User;
import com.trackstudio.soap.service.user.UserService;

import javax.xml.namespace.QName;
import java.net.URL;
import java.util.Arrays;

public class TaskUtil {
    public static void main(String[] arg) throws Exception {
        String login = "root";
        String pws = "root";
        String url = "http://localhost:8888/TrackStudio/services/";
        UserService service = new UserService(new URL(url + User.class.getSimpleName() + "?wsdl"), new QName("http://user.service.soap.trackstudio.com/", "UserService"));
        String sessionId = service.getUserPort().authenticate(login, pws);
}


Regards,
LD

Re: How-to SOAP TrackStudio 5.0.5

PostPosted: Thu May 28, 2015 1:05 pm
by dpochtarev