I just tried to use the HelloWorld Web service from a fresh install.
The steps I made are listed here: https://bitbucket.org/winniehell/open-text-web-service/wiki/How-tos
Wenn I use the AuthenticateUser method of the Authentication service, I receive a token. This token can be passed to the ListNodes method of the DocumentManagement service returning the correct result. When passed to the HelloWorld service however, I get the message "Invalid username/password specified." - even though I did not specify a username or password. (Note that the message is in German due to the installation language: "Ungültiger Benutzername/ungültiges Kennwort angegeben.")
As suggested in other forum posts, I switched the loglevel to verbose receiving the following ouput in the connect0.log:
12/06/2012 12:58:50 [3443263325] 0000000719: CAPI.Log: Do Dez 06 12:58:50 2012 - 70859 Func='index.update' Timing: 3.109 3.116 3.10912/06/2012 12:58:50 [3443293258] 0000000720: CAPI.Log: Arguments = 'A<1,?>'12/06/2012 12:58:50 [3443293673] 0000000721: CAPI.Log: ServiceMethod = 'GetMessage'12/06/2012 12:58:50 [3443294090] 0000000722: CAPI.Log: ServiceName = 'HelloWorld'12/06/2012 12:58:50 [3443294422] 0000000723: CAPI.Log: _ApiName = 'InvokeService'12/06/2012 12:58:50 [3443294700] 0000000724: CAPI.Log: _ClientVersion = '9.7.1'12/06/2012 12:58:50 [3443295118] 0000000725: CAPI.Log: _ConnectionName = ''12/06/2012 12:58:50 [3443295460] 0000000726: CAPI.Log: _DomainName = ''12/06/2012 12:58:50 [3443312525] 0000000727: CAPI.Log: _ImpersonateUserDomain = ''12/06/2012 12:58:50 [3443313086] 0000000728: CAPI.Log: _LLENVIRON_ASSOC = 'A<1,?,''REMOTE_ADDR''=''127.0.0.1''>'12/06/2012 12:58:50 [3443313517] 0000000729: CAPI.Log: _Request = 'llweb'12/06/2012 12:58:50 [3443313741] 0000000730: CAPI.Log: _UserName = ''12/06/2012 12:58:50 [3443313941] 0000000731: CAPI.Log: _UserPassword = 'XXXXXXXXXX'12/06/2012 12:58:50 [3443346904] 0000000732: ****** CAPIAllocConnect called ...12/06/2012 12:58:50 [3443346929] 0000000733: KConnect::AllocConnect() .. reusing existing connection.12/06/2012 12:58:50 [3443347030] 0000000734: ****** CAPIAllocLogin called ...12/06/2012 12:58:50 [3443347357] 0000000735: KSqlCursor::Open(2000,'select a.*,b.OwnerID GroupOwnerID,b.Type GroupType,b.Name GroupName,b.UserData GroupUserData from KUAF a,KUAF b where a.Type=:A1 and a.SpaceID=:A2 and a.Name=:A3 and a.GroupID=b.ID') -->'SUCCESS'12/06/2012 12:58:50 [3443347375] 0000000736: KSqlCursor::Prepare() --> 'SUCCESS'12/06/2012 12:58:50 [3443347397] 0000000737: KSqlCursor::Bind(3,{0,0,''}) --> 'SUCCESS'12/06/2012 12:58:50 [3443347997] 0000000738: KSqlCursor::Execute({'ID','OWNERID','TYPE','SPACEID','NAME','USERDATA','LEADERID','DELETED','USERPWD','GROUPID','USERPRIVILEGES','LASTNAME','MIDDLENAME','FIRSTNAME','MAILADDRESS','CONTACT','TITLE','PWDEXPIREDATE','PWDEXPIREMODE','SETTINGSNUM','FAX','OFFICELOCATION','TIMEZONE','PHOTOID','GENDER','BIRTHDAY','PERSONALEMAIL','HOMEADDRESS1','HOMEADDRESS2','HOMEPHONE','HOMEFAX','CELLULARPHONE','PAGER','HOMEPAGE','FAVORITES1','FAVORITES2','FAVORITES3','INTERESTS','GROUPOWNERID','GROUPTYPE','GROUPNAME','GROUPUSERDATA'}) --> 'SUCCESS'12/06/2012 12:58:50 [3443348160] 0000000739: KSqlCursor::Close() --> 'SUCCESS'12/06/2012 12:58:50 [3443348218] 0000000740: KSql::Execute(...) --> 'SUCCESS',0 records,[sec: 0 msec: 1]12/06/2012 12:58:50 [3443349232] 0000000741: KConnect::ErrLog --> [10106,5],'Ungültiger Benutzername/ungültiges Kennwort angegeben.'12/06/2012 12:58:50 [3443349262] 0000000742: KUAFUser::Get() --> 'Ungültiger Benutzername/ungültiges Kennwort angegeben.'
12/06/2012 12:08:44 [0438253124] 0000057315: CAPI.Log: Do Dez 06 12:08:44 2012 - 3867906 Func=lapi.InvokeService Timing: 0.031 0.034 0.03112/06/2012 12:08:47 [0441703919] 0000057316: CAPI.Log: Arguments = 'A<1,?,''parentID''=2000,''partialData''=false>'12/06/2012 12:08:47 [0441705975] 0000057317: CAPI.Log: ServiceMethod = 'ListNodes'12/06/2012 12:08:47 [0441708085] 0000057318: CAPI.Log: ServiceName = 'DocumentManagement'12/06/2012 12:08:47 [0441709948] 0000057319: CAPI.Log: _ApiName = 'InvokeService'12/06/2012 12:08:47 [0441712018] 0000057320: CAPI.Log: _ClientVersion = '9.7.1'12/06/2012 12:08:47 [0441713533] 0000057321: CAPI.Log: _ConnectionName = ''12/06/2012 12:08:47 [0441714972] 0000057322: CAPI.Log: _Cookie = '5DERSx%2FSKywWvnRhMCCzngdwMP0UY6DS'12/06/2012 12:08:47 [0441716375] 0000057323: CAPI.Log: _DomainName = ''12/06/2012 12:08:47 [0441717807] 0000057324: CAPI.Log: _ImpersonateUserDomain = ''12/06/2012 12:08:47 [0441719100] 0000057325: CAPI.Log: _LLENVIRON_ASSOC = 'A<1,?,''REMOTE_ADDR''=''127.0.0.1''>'12/06/2012 12:08:47 [0441720221] 0000057326: CAPI.Log: _Request = 'llweb'12/06/2012 12:08:47 [0441721414] 0000057327: CAPI.Log: _UserName = ''12/06/2012 12:08:47 [0441722139] 0000057328: CAPI.Log: _UserPassword = 'XXXXXXXXXX'12/06/2012 12:08:47 [0441734463] 0000057329: ****** CAPIAllocConnect called ...12/06/2012 12:08:47 [0441734490] 0000057330: KConnect::AllocConnect() .. reusing existing connection.12/06/2012 12:08:47 [0441734560] 0000057331: ****** CAPIExec called ...12/06/2012 12:08:47 [0441734661] 0000057332: KSqlCursor::Open(201f,'select OwnerID, SpaceID, Name, UserPWD, PWDExpireDate, PWDExpireMode from KUAF where ID = :A1') -->'SUCCESS'12/06/2012 12:08:47 [0441734678] 0000057333: KSqlCursor::Prepare() --> 'SUCCESS'12/06/2012 12:08:47 [0441734693] 0000057334: KSqlCursor::Bind(1,{528219}) --> 'SUCCESS'12/06/2012 12:08:47 [0441735432] 0000057335: KSqlCursor::Execute({'OWNERID','SPACEID','NAME','USERPWD','PWDEXPIREDATE','PWDEXPIREMODE'}) --> 'SUCCESS'12/06/2012 12:08:47 [0441735486] 0000057336: KSqlCursor::Fetch({1000,0,'FOOBAR','xxxxxx',D/2013/3/5:23:59:59,?}) --> 'SUCCESS'12/06/2012 12:08:47 [0441735539] 0000057337: KSqlCursor::Close() --> 'SUCCESS'12/06/2012 12:08:47 [0441735572] 0000057338: KSql::Execute(...) --> 'SUCCESS',1 record,[sec: 0 msec: 0]12/06/2012 12:08:47 [0441737949] 0000057339: ****** CAPIAllocConnect called ...12/06/2012 12:08:47 [0441737970] 0000057340: KConnect::AllocConnect() .. reusing existing connection.12/06/2012 12:08:47 [0441738069] 0000057341: ****** CAPIAllocLogin called ...12/06/2012 12:08:47 [0441738457] 0000057342: KSqlCursor::Open(2000,'select a.*,b.OwnerID GroupOwnerID,b.Type GroupType,b.Name GroupName,b.UserData GroupUserData from KUAF a,KUAF b where a.Type=:A1 and a.SpaceID=:A2 and a.Name=:A3 and a.GroupID=b.ID') -->'SUCCESS'12/06/2012 12:08:47 [0441738475] 0000057343: KSqlCursor::Prepare() --> 'SUCCESS'12/06/2012 12:08:47 [0441738498] 0000057344: KSqlCursor::Bind(3,{0,0,'FOOBAR'}) --> 'SUCCESS'12/06/2012 12:08:47 [0441739135] 0000057345: KSqlCursor::Execute({'ID','OWNERID','TYPE','SPACEID','NAME','USERDATA','LEADERID','DELETED','USERPWD','GROUPID','USERPRIVILEGES','LASTNAME','MIDDLENAME','FIRSTNAME','MAILADDRESS','CONTACT','TITLE','PWDEXPIREDATE','PWDEXPIREMODE','SETTINGSNUM','FAX','OFFICELOCATION','TIMEZONE','PHOTOID','GENDER','BIRTHDAY','PERSONALEMAIL','HOMEADDRESS1','HOMEADDRESS2','HOMEPHONE','HOMEFAX','CELLULARPHONE','PAGER','HOMEPAGE','FAVORITES1','FAVORITES2','FAVORITES3','INTERESTS','GROUPOWNERID','GROUPTYPE','GROUPNAME','GROUPUSERDATA'}) --> 'SUCCESS'12/06/2012 12:08:47 [0441739288] 0000057346: KSqlCursor::Fetch({528219,1000,0,0,'FOOBAR',?,?,0,'xxxxxx',97428,2063,?,?,?,'winfried.hellmann@gesis.de',?,?,D/2013/3/5:23:59:59,?,?,?,?,-1,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,97759,1,'ORG-Alle',?}) --> 'SUCCESS'12/06/2012 12:08:47 [0441739629] 0000057347: KSqlCursor::Close() --> 'SUCCESS'12/06/2012 12:08:47 [0441739689] 0000057348: KSql::Execute(...) --> 'SUCCESS',1 record,[sec: 0 msec: 1]12/06/2012 12:08:47 [0441739725] 0000057349: KUAFUser::Get(FOOBAR) --> 'SUCCESS'
For me it looks like the queries for the token are different for HelloWorld service and DocumentService, although I can not explain this behavior.