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
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