views:

130

answers:

0

Hi.

I have Web Service deployed to JBoss 4.2.2.GA environment and need to consume its methods from .NET application on WindowsCE 5.X. The problem is that I'm not able to consume service's methods when security is turned on (@SecurityDomain("java:/jaas/JBossWS") on class and @RolesAllowed(value={"friend"}) on method declaration. I tried to pass user credentials to WS using wsStub.Credentials = new System.Net.NetworkCredential(user, password, domain) with or without domain specified, but it seems not to work - I receive 'No valid security context for caller identity' every time I call method with security annotation.

Can you help me?

Thanks in advance, cane