cancel
Showing results for 
Search instead for 
Did you mean: 

problem while pinging Webservice from SUP 2.0

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
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,

Jitendra Kansal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Jitendra,

I am able to ping the same WDSL from my workspace. So I believe something wrong on your computer related to internet access. Probably the firewall is blocking your workspace from accessing internet. You can disable the firewall temporarily and try again.

Alternate easy approach is, access the WSDL from internet explorer, save it in the form of .WDSL file on your desktop.

And while creting the connection profile, choose the option 'From local file' and refer to the WDSL file saved on your desktop. This should definitely fix your issue.

Let me know if you need any more help.

Regards,

Guru.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Guru,

i saved that page in form of .WSDL file and it worked. thanks for it.

but the problem is while creating MBO

step 1. i selected a data type as webservice and connection profile CurrencyConversionServices

step2. then i selected the "GetCurrencyvalue" operation that import a provider agency, a source and destination currency and exports the exvhange rate.

step3. when i am giving some default values for

provider >> "AVERAGE"

Source Currency>> "ARS"

Destination Currency>> "USD"

when i am moving on next screen it is throwing the following error.

Error occurred during execution, please check the default Values of the selected input parameters and refresh again.

Reason: www.currencyserver.de

when i am clicking on Details to check it is showing...

www.currencyserver.de

www.currencyserver.de

java.net.UnknownHostException: www.currencyserver.de

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

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

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

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

java.net.Socket.<init>(Socket.java:375)

java.net.Socket.<init>(Socket.java:249)

org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)

org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)

org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)

org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)

org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)

org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)

org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)

org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)

org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

com.sybase.vader.da.ws.soap.SoapInteractionOperation.execute(SoapInteractionOperation.java:498)

com.sybase.vader.statistics.MonitoringOperation.execute(MonitoringOperation.java:65)

com.sybase.vader.service.interaction.PipelineCompositeInteractionOperation.execute(PipelineCompositeInteractionOperation.java:55)

com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:265)

com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:165)

com.sybase.uep.tooling.eis.WsEISOperationImpl.execute(WsEISOperationImpl.java:808)

com.sybase.uep.tooling.ui.ModelsUtil.getEEISOperationMetaData(ModelsUtil.java:255)

com.sybase.uep.tooling.ui.mappertree.common.AttributesMapperDataBuilder.constructTargetRoot(AttributesMapperDataBuilder.java:104)

com.sybase.uep.tooling.ui.mappertree.common.AbstractMapperDataBuilder.build(AbstractMapperDataBuilder.java:37)

com.sybase.uep.tooling.ui.wizards.common.AttributesBottomUpWizard.createAttributes(AttributesBottomUpWizard.java:767)

com.sybase.uep.tooling.ui.wizards.common.AttributesBottomUpWizard$3.run(AttributesBottomUpWizard.java:643)

org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Regards,

Jitendra

Former Member
0 Kudos

Hello Jitendra,

Did you try the other suggestion?

I believe something wrong on your computer related to internet access. Probably the firewall is blocking your workspace from accessing internet. You can disable the firewall temporarily and try.

You can try with some other webservice like the one given below. If you are not able to ping/connect to this one as well, then it is clear that something is blocking internet connection from your eclipse.

http://soaptest.parasoft.com/calculator.wsdl

Regards,

Guru.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Guru,

Thanks for your concern !!!

i trired with disabling the windows firewall.

there are 3 kind of settings on my computer:::

1.domain network location settings

2.home or work(private) network location settings

3.public network location settings

i turned off all above three.

and was getting the same error as mentioned in above post.

it was pinged successfully in both .wsdl file (one u sent and another one is currency conversion) cases but when i am entering

default values and proceeding it was showin that same error.

what could be solution in this case now ???

Regards,

Jitendra

Answers (0)