cancel
Showing results for 
Search instead for 
Did you mean: 

problem execution web service which display a table

former_member215107
Active Participant
0 Kudos

Hi everybody,

I create a web dynpro appication which calls an Adaptative Web Service.

The associated RFC ZTEST_ROD takes 2 inputs parameters and delivers a table like this:

- Field Import: MATNR type MATNR WERKS type WERKS_D

- Field Tables: TABLE_DEST like ZSTRUCT_ARTICLE

-


When i import the Webservice in WebDynpro, i have the following model binding:

Context:

Request_ZTEST_ROD

Response

ZTEST_ROD_Response

TABLE_DEST

Item

LABST

LGORT

MAKTG

ZTEST_ROD

MATNR

WERKS

-


For The inputView, i link the context binding:

ZTEST_ROD->MATNR and WERKS

For the ResultView, i link the context binding:

Response->ZTEST_ROD_Response->TABLE_DEST->Item LABST,LGORT and MAKTG

and i create a table associated to Response->ZTEST_ROD_Response->TABLE_DEST->Item

-


At last, when i execute the application, i obtain the text:

"Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST'

for operation 'ZTEST_ROD' in interface"

With NO information in the log defaultTrace.trc

Any suggestions about this problem ?

rewarded points ...

Thanks a lot!

Rodolphe

Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM

Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM

Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

did you [configure logical destinations|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5186] [original link is broken] [original link is broken] [original link is broken];?

nikhil

Answers (5)

Answers (5)

former_member215107
Active Participant
0 Kudos

Ok

I solve my problem by using the field "export" instead the field "Table" ... no explication ... but it works!

Thanks four your attention.

Rodolphe.

former_member215107
Active Participant
0 Kudos

Hi Manoj,

Yes i check all the required parameters.

I create an other web service and an other web dynpro but

instead of using a table in output, i use only 3 parameters in export (a row of a table) and it works fine !

i think the using table cause a problem in executioin of my webservice ....

Hi Gopal,

I have difficulties to understant that you say ...

my table is using only in ouput of my RFC ....

And how send a blank record ?

Thanks for your help ...

Rodolphe.

Former Member
0 Kudos

Hi Rodolphe,

I am not an expert in ABAP. Have a basic understanding of it. RFC have in itself, input parameters, output parameters

and Table parameters. Now whatever is defined as Table parameter can be used both for input and output.So you can pass

any number of records as input in this parameter and then RFC applies some business logic according to what input

you have provided in input and table parameter and send back the output in output parameters and as set of records in

same Table parameter.

In general it is not necessary that you give any input in Table parameter BUT if RFC is exposed as web service then due to some

reason it becomes necessary that whatever you have provided as Table parameter you should provide atleast one blank record

for each of the Table Parameter.

Hope I have not confused you.

Regards,

Gopal

Former Member
0 Kudos

Hi Rodolphe,

While setting input for Web Service execution, you have to send a blank record for all the table parameters. For each of the Table

Parameter used in RFC, you have to send a blank record. This is a problem with Web Service created from RFC.

Regards,

Gopal

Former Member
0 Kudos

Hi,

There is problem in the web-service. Please check if you are passing all the required parameters required to execute the web-service. Hope you have tested the web-service in the wsnavigator.

And as Nikhil said check your logical destination and if possible delete and create a new again.

thanks & regards,

Manoj

former_member215107
Active Participant
0 Kudos

Hi Nikhil

Yes i configure the logical destinations !

Thanks