File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes WSAD - accessing webservice from client behind firewall Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "WSAD - accessing webservice from client behind firewall" Watch "WSAD - accessing webservice from client behind firewall" New topic
Author

WSAD - accessing webservice from client behind firewall

Sankar Tanguturi
Greenhorn

Joined: Feb 18, 2003
Posts: 17
Hi,
I am trying to access a web service on a public site going though our company's authenticating proxy server. My client is a web application running within WSAD 5.1. I was able to access the same service in the test environment(without going through proxy) with no problems. For the proxy, I am setting the following system properties :
System.setProperty( "proxySet", "true" );
System.setProperty( "http.proxyHost", "proxy_name");
System.setProperty( "http.proxyPort", "port_no" );
System.setProperty("http.proxyUser", "userid");
System.setProperty("http.proxyPassword", "password");
However, it does not seem to work. I am getting the following error message :
[11/17/03 16:53:32:023 EST] 2225910f enterprise I com.ibm.ws.webservices.engine.enterprise WSWS3243I: Info: Mapping Exception to WebServicesFault.
[11/17/03 16:53:32:043 EST] 2225910f enterprise I com.ibm.ws.webservices.engine.enterprise TRAS0014I: The following exception was logged WebServicesFault
faultCode: {http://websphere.ibm.com/webservices/}Server.generalException
faultString: java.net.ConnectException: Operation timed out: connect
faultActor: null
faultDetail:
stackTrace: java.net.ConnectException: Operation timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:345)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:157)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:144)
at java.net.Socket.(Socket.java:294)
at java.net.Socket.(Socket.java:121)
at com.ibm.jsse.bd.(Unknown Source)
at com.ibm.jsse.JSSESocketFactory.createSocket(Unknown Source)
at com.ibm.ws.webservices.engine.components.net.JSSESocketFactory.create(JSSESocketFactory.java:198)
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.getSocket(HTTPSender.java:225)
at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:217)
at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:258)
at com.ibm.ws.webservices.engine.client.Connection.invokeEngine(Connection.java:680)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:604)
at com.ibm.ws.webservices.engine.client.Connection.invoke(Connection.java:434)
at com.ibm.ws.webservices.engine.client.Stub$Invoke.invoke(Stub.java:666)
at com.agac.rateengine.ejb.RateEngineWsSessionSoapBindingStub.getWsPlanDictionaryForGroup(RateEngineWsSessionSoapBindingStub.java:252)
at java.lang.reflect.Method.invoke(Native Method)
at com.agac.rateengine.ejb.RateEngineClient.GetPlanDictionaryAndRates(RateEngineClient.java:102)
at com.agac.rateengine.ejb.RateEngineClient.run(RateEngineClient.java:28)
at org.apache.jsp._Result._jspService(_Result.java:235)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:357)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:675)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
It appears to me that it is not even trying to contact the proxy as it does not give any authentication errors. Any ideas on fixing this ?
Thanks,
Sankar
 
 
subject: WSAD - accessing webservice from client behind firewall
 
Threads others viewed
Hiding stacktrace for java net SocketTimeoutException Read timed out
Problem with Websphere Application Server
AxisFault: Problem facing in connecting to service.
WebServicesFault - java.net.ConnectException
Accessing Webservice - Client behind firewall
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture