Skip to Content
avatar image
Former Member

avoiding a parameter in the mapping if it is empty

hello experts

what is the name of the function in the mapping of RFC to WS, that if the RFC return in the attribute an empty string, I will not pass to the WS anything (the attribute will not pass to the WS), and if the RFC deliever something, it will pass the attribute.

for example - 2 scenarios:

RFC sends

<a>

<last name>gold</last name>

<name>kfir</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

<name>

<part>bcd</part>

</name>

</a>

WS recieve

<a>

<last name>gold</last name>

<name>kfir</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

<name>

<part>bcd</part>

</name>

</a>

scenario 2:

RFC sends

<a>

<last name>gold</last name>

<name>kfir</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

<name>

<part>bcd</part>

</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

</a>

Thanks for the help

Kfir

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 06, 2008 at 01:52 PM

    Hi,

    You can use the condtitional mapping.

    If you get the attributes then you can pass it to Web Service else pass null value..ie.e nothing will get passed. Make the occurance of those fields as optional.

    Thanks

    swarup

    Add comment
    10|10000 characters needed characters exceeded