on 04-24-2010 8:42 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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();
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.