on 07-21-2011 10:31 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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).
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.