Forum tags


Top Posters

Last 30 days

  • ravinderjit.singh (28)
  • Antoine (23)
  • shao (20)
  • venkaiah.k (16)
  • danielandross (14)
  • eva.das (13)
  • metabyte (11)
  • sirswendu.ganapati (11)
  • cristiano.quintao (8)
  • sara.saraa (8)

All time

  • Antoine (1494)
  • Shivanand (1194)
  • cshekhar (928)
  • psq (796)
  • jag (391)
  • metabyte (384)
  • arnaud (328)
  • jalateras (325)
  • dfrench (271)
  • venkaiah.k (214)

Show last 4 hrs - 12 hrs - 24 hrs

POLL

We are looking for more information to tailor our training to better meet the needs of our customers. Please indicate all options that apply.

I would like to attend specialized training from Intalio on BPM as it relates to my application area:


I would like to attend specialized training from Intalio on BPM as it relates to my job function:


I would like to attend specialized training from Intalio on BPM as it relates to my industry:

Login

MAIN arrow FORUMS
HOW TO USE TokenServiceStub class??? (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: HOW TO USE TokenServiceStub class???
#12680
tdakanalis (User)
Junior Boarder
User Offline Click here to see the profile of this user
HOW TO USE TokenServiceStub class??? 9 Months, 2 Weeks ago Karma: 0  
Hi,

I have generated a web service client for the TokenService (using wsdl2java with adb option). I want to call the authenticateUser method of the generated Stub but it takes as input parameter an OMElement.


I tried to make a call using the following code:
Code: :

  TokenServiceStub tokenservice = new TokenServiceStub(); TokenServiceStub.AuthenticateUser authenticateRequest = new TokenServiceStub.AuthenticateUser(); OMFactory factory OMAbstractFactory.getOMFactory(); OMNamespace ns factory.createOMNamespace("http://tempo.intalio.org/security/tokenService/""userdata"); OMElement userData factory.createOMElement("userdata"ns);          factory.createOMElement("username"nulluserData).setText("admin"); factory.createOMElement("password"nulluserData).setText("changeit"); authenticateRequest.setAuthenticateUser(userData); tokenservice.authenticateUser(authenticateRequest);



but I got th efollowing error:

Code: :

  Exception in thread "main" org.apache.axis2.AxisFaultTransport error404 ErrorNot Found     at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298)     at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192)     at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)     at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)     at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)     at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)     at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)     at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)     at org.intalio.tempo.security.tokenservice.TokenServiceStub.authenticateUser(TokenServiceStub.java:193)     at human.task.manager.core.HumanTaskManager.main(HumanTaskManager.java:51)



Could you tell how can I use the TokenServiceStub? I attach the generated classes.
File Attachment:
File Name: tokenservice.rar
File Size: 10941
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/03/29 21:58 By tdakanalis.
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop