Customers
User information
 Loading ...
Show article in Knowledge Base

 Logging in using the Web service API Export knowledge base Export     SubscribeSubscribe      Show article info

Before logging in you first have to make sure that you have a Web service client stubs that you can use in your preferred language.

 

A jar file containing Java stubs are available in the directory: "api/docs/" and it is called: VisionProjectWebService-client.jar

 

In your program you can then use:

 

Java

 

// Create object that should be used to invoke methods
VisionProjectWebServiceImpl visionProjectWebService = new VisionProjectWebServiceImpl("https://www.visionproject.se/service/VisionProject-v2/VisionProjectWebServiceService");
// Enable sessions in the client
visionProjectWebService._getBindingProvider().getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY,true);
// Login, you will get the current logged in user back
SystemUser currentSystemuser = visionProjectWebService.loginWithAPIKey2("username", "password", "WSAPIKey", "12.2");

 

 

Sample for .NET

 

// Create object that should be used to invoke methods
VisionProjectWebServiceService client = new VisionProjectWebServiceService();

// Set URL
client.Url = "https://www.visionproject.se/service/VisionProject-v2/VisionProjectWebServiceService"; 

// Enable sessions in the client
client.CookieContainer = new System.Net.CookieContainer();

// Login, you will get the current logged in user back
SystemUser currentSystemuser = client.loginWithAPIKey2("username", "password", "WSAPIKey", "12.2");


PHP

 

// Create object that should be used to invoke methods
$client = new SoapClient('http://www.visionflow.com/api/docs/service.wsdl')

// Set URL
$client->__setLocation('https://www.visionflow.com/service/VisionProject-v2/VisionProjectWebServiceService');

// Set parameters
$params = array('username'=>'',
		        'password'=>'',
			'webserviceAPIKey'=>'',
			'visionProjectVersion'=>'');

// Login, you will get the current logged in user back
$systemUser = $client->loginWithAPIKey2($params);

 

 

That's it. You now have an active connection to the server and can use the methods in the API.


User comments
 Loading ...