cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to ping Webservice from SUP 2.0

Former Member
0 Kudos

Hi,

I am developing an SUP application using Webservices.

I am unable to ping the webservice from SUP.

Using the following webservice: http://www.currencyserver.de/webservice/currencyserverwebservice.asmx?WSDL

I get the following error on pinging it.

com.sybase.sup.tooling.xml.XmlException: java.net.UnknownHostException: www.currencyserver.de

at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:589)

at com.sybase.sup.tooling.wsdl.WsdlParser.parse(WsdlParser.java:68)

at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:70)

at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:51)

at com.sybase.uep.datasources.ws.views.WSConnection.initialize(WSConnection.java:154)

at com.sybase.uep.datasources.ws.views.WSConnection.<init>(WSConnection.java:38)

at com.sybase.uep.datasources.ws.views.WSConnectionFactory.createConnection(WSConnectionFactory.java:28)

at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Unknown Source)

at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Unknown Source)

at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(Unknown Source)

at org.eclipse.datatools.connectivity.ui.PingJob.run(Unknown Source)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Caused by: java.net.UnknownHostException: www.currencyserver.de

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:529)

at java.net.Socket.connect(Socket.java:478)

at sun.net.NetworkClient.doConnect(NetworkClient.java:163)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)

at sun.net.www.http.HttpClient.New(HttpClient.java:306)

at sun.net.www.http.HttpClient.New(HttpClient.java:323)

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)

at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)

at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:578)

Please let me know the solution.

Regards,

Kanagaraj.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Are you able to access the service from a browser? If not there could be an outbound restriction on your corporate firewall.If you have a very restrictive IT department you may have issues accessing web services. If you can access it via the browser the something else is going on. You shouldn't have to put anything into your host names file or mess around with IP addresses.

Former Member
0 Kudos

Hi,

I am able to access the service from the browser. So i guess network configurations have to be maintained in SUP.

Regards,

Madhu

NikiScaglione
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

This issue is due to the proxy setting.

General->Network Connection

Kind Regards,

Niki

Former Member
0 Kudos

Hello Mr,

The problem is that you haven't HOSTNAME www.currencyserver.de declaration into your host/dns configuration.

Try with IP, rather than the hostname that you have used.

Former Member
0 Kudos

Hi,

Please let me know how to maintain host/dns configuration.

I don't know the IP address of the service since I am using a sample service available on the internet.

So i am mentioning the entire WSDL URL while creating a web service. I am not maintaining any host names explicitly in SUP.

Please let me know if i should maintain any. If so where should it be maintained.

Thanks,

Madhu

Former Member
0 Kudos

I don't know exactly where SUP get relation from hostname/ip (in windows: windows/system32/drivers/etc/host )

However, you can get ip address from cmd.exe command "ping www.currencyserver.de"; or "tracert www.currencyserver.de"; -> external ip address is 62.96.6.3

I know that is not a pretty solution, but i'm not so expert in SUP (little bit more in mobile Android developments).