AnsweredAssumed Answered

Need help: need to Consume Clarity Web Service with Apache Axis

Question asked by therockrahul on Oct 20, 2011
Latest reply on Nov 4, 2011 by therockrahul
I am trying to consume Clarity Users -Login WebService. I am trying to retrieve session id value by providing username and password. For valid Credential m getting Session id as null. Please let me know on this. help me to resolve the problem ASAP. I am new on this.

Below is code Snippet:

package com.niku.www.xog.Object;

public class WebServiceClient {

* @param args
* @throws Exception
public static void main(String[] args) throws Exception {

//user Login To Clarity
String strUrl = "http://XXXX:8000/niku/xog";
Login login = new Login("admin","Infy123+");

UsersServiceLocator serviceLocator = new UsersServiceLocator();
UsersPort port = serviceLocator.getUsersService();

String sessionId = null;
sessionId = port.login(login.getUsername(),login.getPassword());
System.out.println("Session Id::-"+sessionId);