on 07-20-2011 10:16 AM
Hi all,
I am trying to consume a Web Service through SUP.
I have taken a sample Web service [http://www.webservicex.net/ConvertTemperature.asmx?WSDL] .
But when I trying to establish a connection from sybase Wrokspace and ping the web service It is giving me an error.
I have checked if the web service URL and it is working fine.
The error I recived while pinging is as follows
com.sybase.sup.tooling.xml.XmlException: java.net.ConnectException: Connection timed out: connect
at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:573)
at com.sybase.sup.tooling.wsdl.WsdlParser.parse(WsdlParser.java:68)
at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:91)
at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:66)
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:55)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
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:860)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:562)
... 11 more
Please let me know what the problem might be.
Thanks,
Krutheeka.
I think that the problem is that you can't reach the webservice from your SUP application.
Are your SUP application in a proxy network or similar?
Have you setted Network Access Settings for your application in your Mobile Phone (or emulator)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you got the solution for this?
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
while you setup the webservice you can test the service and get the preview of the resultset. Did that work fine? If that works fine - check if you can simply copy and paste the webservice URL into a browser on the running PC. If you do not get a result in the browser, it is the landscape - if you get a result in your browser but not in the app it is the app.
Well, could you try that step first?
Regards,
oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.