cancel
Showing results for 
Search instead for 
Did you mean: 

Exception on execution of web service

Former Member
0 Kudos

I have imported adaptive webservice model in my webdynpro application and

I get the following error .

com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://srepldev:50400/wsdl/globalweather.WSDL' with operation 'GetWeather' in interface 'GlobalWeatherSoap'

I have written the code as follows:

Webmodel model1= new Webmodel();

Request_GetWeather requestmo= new Request_GetWeather(model1);

GetWeather getweathermo = new GetWeather(model1);

getweathermo.setCityName("CHICAGO");

getweathermo.setCountryName("UNITED STATES");

requestmo.setGetWeather(getweathermo);

wdContext.nodeRequest_GetWeather().bind(requestmo);

try{

wdContext.currentRequest_GetWeatherElement() .modelObject().execute();

wdContext.nodeResponse().invalidate();

}

catch(Exception e)

{

String msg = e.getLocalizedMessage();

if ((msg==null) || (msg.length()==0))

{

msg = e.getMessage();

}

wdComponentAPI.getMessageManager().reportException(e.toString(),true);

}

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anzar,

You can not check the services from site http://www.webserviceX.NET in webservice navigator. And please have a look in following code snippet


Webmodel model1= new Webmodel();
Request_GetWeather requestmo= new Request_GetWeather(model1);
wdContext.nodeRequest_GetWeather().bind(requestmo); // Please add this line the model node should 
GetWeather getweathermo = new GetWeather(model1);  // be binded with application node
getweathermo.setCityName("CHICAGO");
getweathermo.setCountryName("UNITED STATES");
requestmo.setGetWeather(getweathermo);
wdContext.nodeRequest_GetWeather().bind(requestmo);
try{
wdContext.currentRequest_GetWeatherElement() .modelObject().execute();
wdContext.nodeResponse().invalidate();
}
catch(Exception e)
{
String msg = e.getLocalizedMessage();
if ((msg==null) || (msg.length()==0))
{
msg = e.getMessage();
}
wdComponentAPI.getMessageManager().reportException(e.toString(),true);
}

Give it a try and let us know.

Regards

Jeetendra

Former Member
0 Kudos

HI

I used the code provided by you by I get this error again

com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://srepldev:50400/wsdl/globalweather.WSDL' with operation 'GetWeather' in interface 'GlobalWeatherSoap'

See I ll tell you what I have done.

I have placed my wsdl file by creating a wsdl place holder in our server through visual admin by following steps in the given link.

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2684. [original link is broken] [original link is broken] [original link is broken]

I published the webservice through my uddi client and was alos able to search for it and get it in test registry. . But then when I try to import it through the nwds wizard for importing adaptive webservice model and search for it in the client through that wizard I don't get the webservice.

So I decided to go for an alternate way and import the model using the url of wsdl placed in wsdl place holder on our server. But now I am getting this error .

Please guide me if I am going wrong in my approach anywhere. Thanks for your help.Please guide me I want to crack this topic.

Answers (2)

Answers (2)

Former Member
0 Kudos

Anzar,

Were you able to resolve this problem ? I am having the same issue now.

Thanks,

Praveen

Former Member
0 Kudos

Hi,

open Web Services Navigator from the main page of your web application server,

and execute the web service manually - do you also get the error?

Maybe you do not have problem with your code, but the web service is wrong.

Regards,

--

Przemysław