Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
sandeep.k81 Absent Member.
Absent Member.
277 views

ESM API( Endpoint Refrence issue)

Hi All,

I am getting an error while accessing the login service of esm via soap web services.

Error is:"org.apache.axis2.AxisFault: Transport error: 302 Error: Moved Temporarily" .

I have generated stub using axis2.

code is:

         

LoginServiceStub stub=new LoginServiceStub("https://<esm_hostname>:8443/core-service/services/LoginService");
Login login=new Login();
login.setLogin("username");
login.setPassword("password");
LoginResponse res=stub.login(login);
String cookie=res.get_return();
System.out.println("cookie is : "+cookie);
Logout logout=new Logout();
logout.setAuthToken(cookie);
LogoutResponse res1=stub.logout(logout);
System.out.println("logout response:"+res1.get_return().toString());

I have used endpoint reference "https://<esm_hostname>:8443/core-service/services/LoginService" .but this is not working.

Can anyone provide the syntax of endpoint referance of esm webservices ?

Thanks in Advance

Sandeep Kumar

Labels (2)
Tags (1)
0 Likes
1 Reply
Acclaimed Contributor.. Shaun Acclaimed Contributor..
Acclaimed Contributor..

Re: ESM API( Endpoint Refrence issue)

Try: https://<esm_hostname>:8443/www/core-service/services/LoginService

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.