cancel
Showing results for 
Search instead for 
Did you mean: 

Connection refused While Calling a Web Service from WebDynpro Application.

Former Member
0 Kudos

Hi all,

I've created a Webdynpro application by importing a WSDL file which is created from a Web Service from XI.

While I run this Application, and while it tries to connect to XI, I am getting following error.

<b>Service call exception; nested exception is: java.net.ConnectException: Connection refused</b>

Can Someone please help me out on this issue?

Thanks in advance,

Tejas.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tejas

check if any authentication is required to access the XI Webservice.

There may a reason the XI Webservice is down.

Let me know which model u have used to access the XI Webservice

Regards

Satya

Former Member
0 Kudos

Hi Satya,

Regarding Authentication, I have passed User name and Password of my XI Server in the executeRequest_MI_FILE_MI_FILE( ) method of my controller as follows.

wdContext.currentRequest_MI_FILE_MI_FILEElement().modelObject()._setUser("user");

wdContext.currentRequest_MI_FILE_MI_FILEElement().modelObject()._setPassword("password");

Thanks,

Tejas

Former Member
0 Kudos

Hi Tejas

Can u try in the following way , it may help you

For example

Request_MI_ObSyncGetDocketInfo_MI_ObSyncGetDocketInfo

objReqDocktInfo = new Request_MI_ObSyncGetDocketInfo_MI_ObSyncGetDocketInfo();

objReqDocktInfo._setUser(username);

objReqDocktInfo._setPassword(password);

objReqDocktInfo._setEndPoint(url);

Let me know if u are using any HTTP Destinations to access the XI Websrvice

Regards

Satya

Former Member
0 Kudos

Satya,

actually there is no connection established with XI. the authentication issue comes into picture later on.

What i think is the connection with XI is refused so it dsnt even go to check for authorization.

Thanks,

Tejas

Former Member
0 Kudos

Tejas

you are correct tejas, what my suggestion is first you conforn whether the XI webservice is running sucessfully or not.

we also had the same exception while working with XI webservices in webdynpro.

we have tried to access them from SOAP UI(In which we can test the XI webserivces) we have got same as u got.

Regards

Satya

Former Member
0 Kudos

Hi Satya,

Could you please tell me where can I find this SOAP UI? and using that how can i Test the XI Web Service?

Thanks,

Tejas

Former Member
0 Kudos

Hi,

In my WebDynpro Application which is created by Importing a WSDL file from XI Web

Service is giving error : <b>Service call exception; nested exception is: java.net.ConnectException: Connection </b>

In NWDS-> Windows Menu-> Preferances -> Wrokbench -> Proxy Settings

Use Proxy Settings is <b>Checked</b>.

My Settings in Model's Logical Port is

<b>Use HTTP Port</b> is <b>Checked</b>.

In Securities-> <b>Authentication</b> is set to '<b>None</b>'

With this While I Execute the Application and when it tries to connect to XI..it throws

an error :

Service call exception; nested exception is: java.net.ConnectException: Connection

refused

Kindly help me on this issue.

Thanks in advance,

Tejas.