Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pb calling web service with example "www.deeptraining.com"

Hello,
If you already manage to run the web service example, could you please help me because I can't run it.
I encountered the following error (pic 1 and msg below).
You can check my configuration (pic 2 and 3)
I am running TOS 3.04
Thanks
Sebastien
-------------------------------------
Starting job TEST_WS at 17:21 04/05/2009.
Exception in component tWebServiceInput_1
AxisFault
faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.UnknownHostException: www.deeptraining.com
faultActor:
faultNode:
faultDetail:
{ http://xml.apache.org/axis/}stackTrace:java.net.UnknownHostException: www.deeptraining.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at routines.WeatherSoap_BindingStub.getWeather(WeatherSoap_BindingStub.java:107)
at experimentation.test_ws_0_1.TEST_WS.tWebServiceInput_1Process(TEST_WS.java:394)
at experimentation.test_ws_0_1.TEST_WS.runJobInTOS(TEST_WS.java:3087)
at experimentation.test_ws_0_1.TEST_WS.main(TEST_WS.java:3001)
{ http://xml.apache.org/axis/}hostname:4403DP490
java.net.UnknownHostException: www.deeptraining.com
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at routines.WeatherSoap_BindingStub.getWeather(WeatherSoap_BindingStub.java:107)
at experimentation.test_ws_0_1.TEST_WS.tWebServiceInput_1Process(TEST_WS.java:394)
at experimentation.test_ws_0_1.TEST_WS.runJobInTOS(TEST_WS.java:3087)
at experimentation.test_ws_0_1.TEST_WS.main(TEST_WS.java:3001)
Caused by: java.net.UnknownHostException: www.deeptraining.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 13 more
Job TEST_WS ended at 17:22 04/05/2009.
Labels (5)
4 Replies
Anonymous
Not applicable
Author

Hello guy
1) Make sure the http proxy is available.
2) It isn't necessary to set the http proxy and the method name in basic setting if you use 'advanced use', set them in your java code.
Beest
Anonymous
Not applicable
Author

Thak you, Shong, for your answer.
1. I've checked deeptraining.com by using ping component and it seems to be ok with proxy parameters
2. I've reset parameters to use the basic settings only (I tried with and without proxy settings) => pic1
PS : you can see the output schema I declared in pic 2
The new error is :
Starting job TEST_WS at 10:07 05/05/2009.
connecting to socket on port 3594
connected
connecting to socket on port 4697
connected
Exception in component tWebServiceInput_1
java.net.UnknownHostException: www.deeptraining.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)
disconnected
disconnected
Job TEST_WS ended at 10:08 05/05/2009.
Anonymous
Not applicable
Author

Hello,
Did anyone succeed to run web services example ?
if someone did, could we see together how you manage to run it ?
Thanks
Sebastien
_AnonymousUser
Specialist III
Specialist III

I got the same error. When I put the following code, it run.
System.setProperty("http.proxyHost", "webcache.example.com");
System.setProperty("http.proxyPort", "8080");
http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html