on 12-08-2011 8:22 AM
Hi,
I try to execute a WebService from PI in the component controller with following coding:
Country model = new Country();
wdContext.nodeRequest_SO_SelectCountries().bind(
new Request_SO_SelectCountries(model));
executeCountries();
Furthermore I have following in the executionCountries() method:
public void executeCountries() {
// @@begin executeCountries()
// $$begin Service Controller3(-682530173)
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try {
wdContext.currentRequest_SO_SelectCountriesElement().modelObject()
.execute();
wdContext.nodeResponse().invalidate();
} catch (Exception e) {
manager.reportException(e.getMessage());
}
// $$end
// @@end
}
When executing the application I get always following error:
Exception on execution of web service on destination 'Country_Exec' for operation 'SO_SelectCountries' in interface '{http:.....
I have already maintained the destinations for the webService but I think that the error raised before the destinations will be checked. I already restart the server and reimport the model but unfortunately always the same error.
Dear ABAPOO_Newie
Please check the context node binding if there is need to create object 'Country_Exec' also. open the wd component controller >> context tab >> see the model binding for Request_SO_SelectCountries in the RIGHT side >> expand the Request_SO_SelectCountries in right side for model data >> see the brackets..that you need to create the object.
Like :-
Country model = new Country();
Request_SO_SelectCountries reqObject = new Request_SO_SelectCountries(model);
Country_Exec conExec = new Country_Exec(model);
//Set the attribute if required lile
// conExec.set<>("VALULE");
wdContext.nodeRequest_SO_SelectCountries().bind(reqObject);
//Call for the model execute method
executeCountries();
Hope it will helps.
Best Regards
Arun Jaiswal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.