Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Service Client - passing LLSession

Status
Not open for further replies.

hanreb

Technical User
Jan 23, 2008
90
US
Hi,

I am trying to write a client to access LiveServices.
I am trying to access the method GetNumberofChildren.
How do I pass the session object parameter when I call GetNumberofChildren().
The below piece of code compiles. But fails to work when I invoke the method. There is something wrong in the LLSession variable that I am passing.

Part of my code below.

LLSession session;
session = new LLSession ("servername", 2099, "LLW", "Admin", "pwd");
int objid=951234;
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
call.setOperationName( new

QName(" "GetNumberofChildren") );
call.addParameter( session.toString(), XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter( "arg1", XMLType.XSD_INT, ParameterMode.IN);
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_INT );
Integer ret = (Integer) call.invoke( new Object[] { session.toString(), objid }

I appreciate any help

Thank You,
Sunu
 
Hi Sunu,

Why don't you post this call in the LAPI discussion or the new web services discussion area so you could get better help.I believe you are on the old lapi implementation of web services.In case you did not know starting with livelink 9.7.1 version web services are an integral part and does not use lapi anymore to marshall the call and parameters.if you are trying the new web services then the target lielink server version better be 9.7.1 :)

If I do get time I will see if I have any of the old liveservices stuff with me and see how that used to work

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937

Certified OT Developer and probably certfiable,Livelink ECM Champion 2008
 
Hi appnair,

Thanks for responding.
We have Livelink 9.7.0, not sure when we would be upgrading to 9.7.1.
As of now I need to use LiveServices for a project and since we have Livelink 9.7.0, I should use the Live services for 9.7.0 . Right ??
I found a class called SessionInfo in the DocMan, but still not sure how to use it to pass the Session ??

I will post this in LAPI discussion as well.

In the mean time if you could give me more input I really appreciate.
Thank You,
Sunu
 
Sunu here's the old liveservices(Lapi Web Services) discussion area

Perhaps you will find some simple example there
You are right LES webservices is only for 9.7.1 and up

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937

Certified OT Developer and probably certfiable,Livelink ECM Champion 2008
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top