Skip to Content
avatar image
Former Member

RFC -> XI -> WebService - Walkthrough ----Importing WSDL, problem

Hi

I am following this weblog

/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

I have createed RFC as mentioned in this blog

<b>BLOG-----RFC</b>

-


Import :

FROMZIP type CHAR10

TOZIP type CHAR10

Export:

DISTANCE type CHAR10

source code:

FUNCTION Z_WEBSERVICE_TEST_SHABZ.

*"----


""Local interface:

*" IMPORTING

*" VALUE(FROMZIP) TYPE CHAR10

*" VALUE(TOZIP) TYPE CHAR10

*" EXPORTING

*" VALUE(DISTANCE) TYPE CHAR10

*"----


ENDFUNCTION.

-


<b>My RFC</b>

-


Import :

FROMZIP type CHAR10

TOZIP type CHAR10

Export:

DISTANCE type CHAR10

source code:

FUNCTION Zdushanth_webservice.

*"----


""Local interface:

*" IMPORTING

*" <b>REFERENCE</b>(FROMZIP) TYPE CHAR10

*" <b>REFERENCE</b>(TOZIP) TYPE CHAR10

*" EXPORTING

*" <b>REFERENCE</b>(DISTANCE) TYPE CHAR10

*"----


ENDFUNCTION.

when I activate I am getting as Reference parameters are not allowed with RFC ?

I have created by referring this blog but in the source code (Importing and exporting) I am getting REFERENCE ?

why I am getting this ?

Thanks

dushanth

Message was edited by:

dushanth ry

Message was edited by:

dushanth ry

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 20, 2007 at 08:13 PM

    Dushanth,

    Change all parameters i.e. import / export / changing in your RFC function module to pass by value. I mean there is a checkbox "Pass value" for every import/export/changing parameter.. Check this checkbox.

    RFC always expect values to be pass by values...not by reference.

    Nilesh

    Add comment
    10|10000 characters needed characters exceeded