cancel
Showing results for 
Search instead for 
Did you mean: 

Exception on execution WebService from PI

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

solved

p330068
Active Contributor
0 Kudos

Great!!!