Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Web Service Not Returning Same Results As Remote Function Module

Former Member
0 Likes
1,176

Dear All,

I have a Web Service which calls a Remote-enabled Function Module. When I test the Web Service from wsadmin transaction I do not get the same results as when I execute the remote-enabled function module from se80. I used the same username for the tests.

Would any of you have a suggestion as to why this could happen?

Regards,

Philon

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,072

Hi,

maybe it is due to the format of the parameters that you fill in in the browser when you test the webservice.

If you want to know the right format, check out the WSDL of the webservice. It's a guess, but it might help...

regards,

Rolf

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,072

What do you mean, "not returning same results". Do you mean that it is not returning anything? What are you passing and what do you expect back?

REgards,

Rich Heilman

Read only

Former Member
0 Likes
1,073

Hi,

maybe it is due to the format of the parameters that you fill in in the browser when you test the webservice.

If you want to know the right format, check out the WSDL of the webservice. It's a guess, but it might help...

regards,

Rolf

Read only

Former Member
0 Likes
1,072

Hi Rich,

No. In fact what happens is that in the se80 case, it returns 29 lines of results and in the wsadmin case it returns 25 lines of results. The web service/function module actually executes unit tests remotely by doing an RFC from the development system to the test system (where the unit tests are executed). In the se80 case, for one object, the unit tests execute correctly. In the wsadmin, the unit tests for that object don't execute hence returning less lines of result.

In both cases, the users used to log in the web service or se80 are the same and the users for the RFC are the same.

Thank you for your insight.

Regards,

Philon

Read only

0 Likes
1,072

Are the unit tests implemented as ABAP Units?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,072

They are local classes implemented as ABAP Unit. Why?

Regards,

Philon

Read only

0 Likes
1,072

There are some things that may prevent the ABAP unit from executing on a particular system. You mentioned that the WS is over a funciton module which inside this FM, you are doing another RFC to another server, which this FM has some class which has some ABAP unit within.

And you are sure that this remote system has the correct config to allow the ABAP unit to run?

Regards,

RIch Heilman

Read only

Former Member
0 Likes
1,072

Yes I am sure, since it both se80 and wsadmin execution call the same RFC destination which has a user which can execute unit tests. They both execute but just return different results for a given object.

Thanks,

Philon