• Post Reply Bookmark Topic Watch Topic
  • New Topic

ConnectException while trying to lookup a web service  RSS feed

 
Arya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to web service and currently working on Weblogic 6.0. I have created a webservice client and deployed in my weblogic server. I am trying to access the Webservices published in the external server from my client. It�s giving the ConnectException (but the same WSDL url if cut and paste in browser address bar it is getting accessed)..

Btw i had tried accessing a different webservice deployed my server & it is working properly. So the code does not have any problem I guess. in the same external server where it will try to accees the Webservice using no need to register it in UDDI registry.. I am right?

The code I am using to access web service is as follows:

import javax.naming.Context;
import javax.naming.InitialContext;
import weblogic.soap.SoapMethod;
import weblogic.soap.WebServiceProxy;
public void clientCall(String strURL, String strMethod)
{
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.verbose", "true" );
Context context = new InitialContext(h);
WebServiceProxy proxy = (WebServiceProxy)context.lookup(strURL);
SoapMethod method = proxy.getMethod(strMethod);
String strSuccess = (String)method.invoke(new Object[]{�ABC�});
}

I will paste the exception below.. Please help me in resolving this issue.

Thanks in advance..
Arya

javax.naming.NamingException: i/o failed java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: '168.109.162.127', port: '9080'. Root exception is java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: '168.109.162.127', port: '9080'
at weblogic.net.http.HttpClient.openServer(HttpClient.java:211)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:263)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:121)
at weblogic.net.http.HttpClient.New(HttpClient.java:156)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:111)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:283)
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:615)
at weblogic.soap.WebServiceProxy.getServiceAt(WebServiceProxy.java:230)
at weblogic.soap.http.SoapContext.lookup(SoapContext.java:87)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at com.iflex.camu.callback.processor.CallbackProcessor.clientCallback(CallbackProcessor.java:92)
at com.iflex.camu.callback.processor.CallbackChecker.processCallback(CallbackChecker.java:165)
at com.iflex.webs.requestprocessor.ReservationProcessor.defaultTempSave(ReservationProcessor.java:422)
at com.iflex.webs.requestprocessor.ReservationProcessor.reserveRequests(ReservationProcessor.java:234)
at com.iflex.webs.businessdelegation.BusinessDelegation.reservation(BusinessDelegation.java:783)
at com.iflex.webs.requestws.RequestBean.reservation(RequestBean.java:173)
at com.iflex.webs.requestws.RequestBean_yrf4uc_EOImpl.reservation(RequestBean_yrf4uc_EOImpl.java:121)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.soap.server.servlet.StatelessBeanAdapter.invokeMethod(StatelessBeanAdapter.java:184)
at weblogic.soap.server.servlet.StatelessBeanAdapter.doPost(StatelessBeanAdapter.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!