Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

access WS from a JSP

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I receive an error while I'm trying to access a secured webservice from a JSP.
The WS is secured with Tivoli Access Manager and it has a WebSEAL proxy server in front of it that manage the authentication mechanism.
I builded a WS client and I invoke a WS function receiving the following error:

Error 500: org.xml.sax.SAXException: Can't find resource for bundle com.ibm.ws.webservices.engine.resources.ProjectResourceBundle, key unsupportedSAXEvent Message being parsed:

after this message Websphere's log file contains the HTML form that WebSEAL return to authenticate the WS call.
Calling the WS directly from the browser it works fine.

I'll be glad if someone could suggest me an idea to solve the problem.

Andrea
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that a client error or a server error? The package name seems to indicate that it's a server error. How are you calling the WS - if it's from a JSP the method must be somewhat different than from a browser.
 
Andrea Modica
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a server error. I call the service method using a Client Proxy class built by the IDE (Rational Application Developer). Do you know how I can insert the user credential (username/password), I used to secure the WS, in the call I send to the service?
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first two entries on WebServicesHowTo show how to use HTTP authentication with SAAJ and JAX-RPC, respectively.
 
reply
    Bookmark Topic Watch Topic
  • New Topic