cancel
Showing results for 
Search instead for 
Did you mean: 

Error at run time When Access Web Service in web dynpro java

Former Member
0 Kudos

Hi

I am used web service created on other machine.I am used wsdl file created in web service.

is there any setting on J2EE Engine server for accessing web service? after run web dynpro application it gives following error.

The initial exception that caused the request to fail, was:

java.io.IOException: Unable to open connection to host "128.9.125.6:8000". Connection timed out:could be due to invalid address.

at com.tssap.dtr.client.lib.protocol.Connection.openSocket(Connection.java:2117)

at com.tssap.dtr.client.lib.protocol.Connection.open(Connection.java:1380)

at com.tssap.dtr.client.lib.protocol.Connection.sendInternal(Connection.java:1534)

at com.tssap.dtr.client.lib.protocol.Connection.send(Connection.java:1427)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

... 50 more

please help me.

thank in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

vijay_kumar49
Active Contributor
0 Kudos

Hi,

java.io.IOException: Unable to open connection to host "128.9.125.6:8000". Connection timed out: could be due to invalid address. first check it are you able to connect the WSNavigator. I think you are not able to connect the WSNavigator and are you able to see the WebService in WSNavigator?

Procedure

To import a Web service model, proceed as follows:

1. Choose the context menu entry -


Create Model on the -


Models node of the relevant component.

2. In the model wizard, choose Import Web Service Model followed by Next.

3. In the second wizard window, enter a model name and specify the package and source code directory. The name of the proxy package is created automatically when you specify the model package.

4. Select whether your Web service source is from a local server, is addressed using a URL, or whether it is a UDDI service.

5. If you select Local File System or URL, choosing Next will take you to the following window in which you enter a local WSDL URL or select one by choosing Browse.

6. If you selected the option UDDI or URL, choosing Next will take you to the following wizard window in which you either enter a WSDL URL of a UDDI service directly or select one by choosing UDDIu2026

Enter the WSDL description of the Web service in the Wsdl field u2013 for example, http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService for an e-mail service.

You do not need to make any entries in the next step, Proxy Definition / URI Package Mappings. Choose Finish to close the window.

7. Switch to the Package Explorer view, select the file lport1.lp in the directory \src\packages\<myPackage>\, and check the port entries.

Hope this helps!!

Regards

Vijay

Former Member
0 Kudos

Hi Sharad,

Could you please add the backend host name and ip (from where you are accessing the webservice) to the host file and try.

Please update your NWDI and portal server hostname and ip as well in the host file.

Once you update the host file, try to create the webservice from NWDS.

Hope this helps you.

Regards,

Saleem Mohammad

Former Member
0 Kudos

Hi,

Are you able to see the webservice in ws navigator?

http://<host>:<port>/wsnavigator.

Best Wishes

Idhaya R