i wrote a Web Service Proxy for a external Web Service from a Provider ESRI (http://support.esri.com).
Then i wrote a servlet and EAR Project with all necessary mappings.
In the servlet i try to get a Token over the AuthtenticationProxy using (https).
protected void doGet(HttpServletRequest request, httpServletResponse response) throws ServletException, IOException
{
try
{
InitialContext ic = new InitialContext();
Hashtable env = new Hashtable();
env = ic.getEnvironment();
Authentication aAuth = (Authentication)ic.lookup("java:comp/env/AuthenticationProxy");
IAuthentication aAuthentication = (IAuthentication)aAuth.getLogicalPort(IAuthentication.class);
<b>String aToken = aAuthentication.getToken("<username>","<pwd>");</b> }
catch (Exception e)
{
response.getWriter().write(e.toString());
}
the call of the "getToken" function brings back following Exception, i dont find any response:
java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.exception.io.SAPIOException: <
Localization failed: ResourceBundle='com.sap.exception.io.IOResourceBundle', ID='Could not create SSL socket:java.net.ConnectException Connection timed out: connect', Arguments: []
> : Can't find resource for bundle java.util.PropertyResourceBundle, key Could not create SSL socket:java.net.ConnectException Connection timed out: connect
Has anyone a idea?
Thanks for replies
I found the solution, on our WAS 6.40 we haven't configured the proxy setting
Start the Visual Administrator and select Web Services Container -> Runtime -> UDDI Client
Initial Configuring
Configure the HTTP proxy settings
Select the Settings tab and enter the required proxy host and port information. Choose Save.
Add a comment