cancel
Showing results for 
Search instead for 
Did you mean: 

Not all values pass from webservice... need help.

former_member186148
Active Participant
0 Kudos

Hello SDN!

I've got a webservice based on the ABAP function module. This WS imported in my Webdynpro application (NW 7.0).

Webservice has some input parameters and one table. Structure of that table contain one include and some other fields. If I test this FM in SAP GUI, table contains all fields filled values. But in Web dynpro application after execute this WS only fields belonging to include contains values and other fields has no values although function module return values for all fields.

Did anybody face with similar issue& How to resolve it?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have you tried by running the web service from the WSNavigator. Try this once.

Can you reply with the node structure you are getting when imported in dynpro and the code written for the execution

Regards,

Amol

former_member186148
Active Participant
0 Kudos

Hi!

This webservice has been successfully tested with another instrument...

Node structure is follwoing:

Request_Z_CO_PLN0_ZD_SP_1:

....+--- Response_Z_CO_PLN0_ZD_SP_1

...........+--- Result_Z_CO_PLN0_ZD_SP_1

.......................|---- resAttr1

.......................|---- resAttr2

.......................|---- resAttr3

...

.......................|---- resAttrN

....|---- attr1

....|---- attr2

....|---- attr3

...

....|---- attrN

where attr1 - attrN are input parameters.

Here the code:

	wdContext.nodeRequest_Z_CO_PLN0_ZD_SP_1().bind(new Request_Z_CO_PLN0_ZD_SP_1PortType_z_CO_PLN0_ZD_SP_1());
		
		IPrivateZD.IRequest_Z_CO_PLN0_ZD_SP_1Element elem = wdContext.currentRequest_Z_CO_PLN0_ZD_SP_1Element();
// fill input parameters
		if( params.getWerks() != null){
			elem.setWERKS( params.getWerks() );
		}
		
		ru.sng.phd.models.z_co_pln0_zd_sp_1.Request_Z_CO_PLN0_ZD_SP_1PortType_z_CO_PLN0_ZD_SP_1 modelObj =
			wdContext.currentRequest_Z_CO_PLN0_ZD_SP_1Element().modelObject();
		modelObj._setUser("user");
		modelObj._setPassword("pwd");
		modelObj.execute();
		
		wdContext.nodeResponse_Z_CO_PLN0_ZD_SP_1().invalidate();
		wdContext.nodeResult_Z_CO_PLN0_ZD_SP_1().invalidate();