Web Service Problem on TrackStudio 4.04 local

Discuss problems installing or using TrackStudio.

Web Service Problem on TrackStudio 4.04 local

Postby sattrack » Fri Aug 13, 2010 8:41 pm

Apologies in advance for my bad English.
I installed a test version 4.04.
I set the option from the Server Manager SOAP and started the application. The execution of http://localhost:8890/TrackStudio/servi ... sword=root, as reported in the online documentation does not work ...
It is compatible devpack 3.5 with the version 4.04? What else should take
account?
Best regards.
sattrack
 
Posts: 7
Joined: Fri Aug 13, 2010 8:30 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby Petr » Mon Aug 16, 2010 8:56 am

In version TrackStudio 4 use this soa http://download.oracle.com/docs/cd/E178 ... index.html
The devpack 3.5 don't compatible with 4.
In version 4 SOAP locate http//localhost:8080/TrackStudio/servers
In out-of-box TrackStudio 4 have docs API for work with TrackStudio SOAP.

Have you specific questions?
TS Support
email: parsentev@yandex.ru
Petr
 
Posts: 1317
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby sattrack » Wed Aug 18, 2010 8:56 pm

Thanks for your quick response.
For the moment, without any additional specific questions.
Anyway, it is possible to have some examples to see the Feature Reference for the new mode of access through web service.
I would appreciate your help to identify potential TrackStudio tool through web service.

Petr wrote:In version TrackStudio 4 use this soa http://download.oracle.com/docs/cd/E178 ... index.html
The devpack 3.5 don't compatible with 4.
In version 4 SOAP locate http//localhost:8080/TrackStudio/servers
In out-of-box TrackStudio 4 have docs API for work with TrackStudio SOAP.

Have you specific questions?
sattrack
 
Posts: 7
Joined: Fri Aug 13, 2010 8:30 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby sattrack » Thu Aug 19, 2010 3:42 pm

Estimates
Specifically, I need your help with a specific example of how to use a command http://localhost:8890/TrackStudio/servi ... sword=root (as detailed in the manual with version 3.5 + devpack) but now on version 4.04.
Thus, I will be able to assess whether the tool can provide the functionality necessary for the project I'm doing.
I would appreciate very much your cooperation.
sattrack
 
Posts: 7
Joined: Fri Aug 13, 2010 8:30 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby Petr » Fri Aug 20, 2010 10:06 am

What language do you use for their project?
If Java, so you need download CSV Import Tools and get library ts_soapclient.jar.
Following code doing autorization on the server TrackStudio
Code: Select all
package client;

import com.trackstudio.soap.service.user.User;
import com.trackstudio.soap.service.user.UserService;

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

public class Client {
    public static void main(String[] args) throws Exception {
        String url = "http://localhost:8080/services/";
        UserService service = new UserService(new URL(url + User.class.getSimpleName() + "?wsdl"), new QName("http://user.service.soap.trackstudio.com/", "UserService"));
        User user = service.getUserPort();
        user.authenticate("root", "root");
        System.out.println("Autorization successfully!");
    }
}

compile : javac -cp ts-soapclient.jar client/Client.java
run : java -cp ts-soapclient.jar client.Client
TS Support
email: parsentev@yandex.ru
Petr
 
Posts: 1317
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby sattrack » Mon Aug 23, 2010 7:03 pm

Again with another question ... It is very important to me
know the extent of this feature, crucial for purchase
tool.
In relation to the example provided:
- I could create the file "Client.java" the informed source, inside the
folder "client" within the folder where it is hosted ts-
soapcliet.jar.
But ... As a result of running the javac command got the following error "C:\Archivos de programa\Java\jdk1.6.0_21\bin\jav
ac" -cp ts-soapclient.jar client/Client.java", "client\Client.java:8: cannot find symbol
symbol : class UserService
location: class Client
UserService service = new UserService(new URL(url + "User?wsdl"), new QN
ame("http://user.service.soap.trackstudio.com/", "UserService"));
^
client\Client.java:8: cannot find symbol
symbol : class UserService
location: class Client
UserService service = new UserService(new URL(url + "User?wsdl"), new QN
ame("http://user.service.soap.trackstudio.com/", "UserService"));
^
client\Client.java:9: cannot find symbol
symbol : class User
location: class Client
User user = service.getUserPort();
^
3 errors".
What could be doing wrong, or might be missing?
Sincerely yours.
sattrack
 
Posts: 7
Joined: Fri Aug 13, 2010 8:30 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby Petr » Tue Aug 24, 2010 10:11 am

You need have directory structure how this:
Code: Select all
./src
./src/ts-soapclient.jar
./src/client
./src/client/Client.java

and run commands for compiling and start java class in directory ./src
TS Support
email: parsentev@yandex.ru
Petr
 
Posts: 1317
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby sattrack » Sat Feb 26, 2011 4:53 pm

There is the possibility of using TS4 version with http calls through the webservice TS localhost installed without using "http://xxx.service.soap.trackstudio.com/?
sattrack
 
Posts: 7
Joined: Fri Aug 13, 2010 8:30 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby Petr » Sat Feb 26, 2011 6:18 pm

I can't understand what you mean. Please can shop example what do you want do.
TS Support
email: parsentev@yandex.ru
Petr
 
Posts: 1317
Joined: Wed Aug 12, 2009 4:38 pm

Re: Web Service Problem on TrackStudio 4.04 local

Postby sattrack » Tue Mar 01, 2011 4:13 pm

With version 3.5 I could run from http to a method of User "http://localhost:8888/TrackStudio/services/User?methtod=authenticate&login=root&password=root", and the result is the
browser. With version 4 this it behaves differently, returns only info on the location and format of the webservice, but not the result of the method executed.
sattrack
 
Posts: 7
Joined: Fri Aug 13, 2010 8:30 pm

Next

Return to TrackStudio Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron