Hi friends,

I have my own webapp interacting with yawl Enterprise system(2.3.5) running in the same server as that of yawl. I have also done custom organisation orgdata. Both yawl and my webapp points to the same orgdata. my requirement was to bypass login of yawl. In one of the forum Micheal suggested to have a look at
2 API's into the resource service, 'WorkQueueGatewayClientAdapter' and 'ResourceGatewayClientAdapter.

here is what i tried in a servlet in service method:

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
HttpSession session = request.getSession(true);
private static final String ADMIN_PASSWORD = "pass";
private static final String ADMIN_USERNAME = "vikesh";
final String INTERFACEB_URL = "http://127.0.0.1:8080/resourceService/workqueuegateway";
WorkQueueGatewayClientAdapter client=new WorkQueueGatewayClientAdapter(INTERFACEB_URL);
String handle=client.userlogin(ADMIN_USERNAME, ADMIN_PASSWORD,false);
System.out.println("handle-"+handle);
System.out.println("Succesfull-"+client.successful( handle));
System.out.println("Valid Session-"+client.isValidUserSession(handle));
out.println("Client uri-"+client.getClientURI());
Set<SpecificationData> specs=client.getLoadedSpecs( handle);
System.out.println(specs);
}

When i try excecuting this code: i get
handle-1e7a2fb4-07e4-43cf-8477-a37dca9795d4
Succesfull-true
Valid Session-true
Client uri-http://127.0.0.1:8080/resourceService/workqueuegateway
java.io.IOException: Server returned HTTP response code: 500 for URL: http://127.0.0.1:8080/resourceService/workqueuegateway

i looked through the logs and i found java.io.IOException: Invalid or disconnected session handle
and 500 error thrown

My inferences:
I have placed commons-codec-1.4.jar,jdom2-0.0.6-BETA.jar,yawl-lib-2.3.5.jar,log4j-1.2.15.jar in classpath.
when i give the invalid user name i get <failure>Unknown user name</failure>
but when i give a wrong password it still generates a handle and it shows valid valid session true and client.successful( handle) returns true. why is the handle is returned? ans also why handle becomes invalid when i call getLoadedSpec method? is it a bug?

Please help me on this. Your help is most awaited..