wood burning stoves 2.0*
The moose likes Web Services and the fly likes access WS from a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "access WS from a JSP" Watch "access WS from a JSP" New topic
Author

access WS from a JSP

Andrea Modica
Greenhorn

Joined: Mar 09, 2007
Posts: 6
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


Andrea Modica
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
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.


Ping & DNS - my free Android networking tools app
Andrea Modica
Greenhorn

Joined: Mar 09, 2007
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
The first two entries on WebServicesHowTo show how to use HTTP authentication with SAAJ and JAX-RPC, respectively.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access WS from a JSP