Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access WS from a JSP

 
Andrea Modica
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
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • 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: 42967
73
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic