cancel
Showing results for 
Search instead for 
Did you mean: 

RFC empty node delivery

Former Member
0 Kudos

hello

I have an RFC2WS scenario. I have a problem that if the RFC will send an empty value, I would like nothing to be deliever to the WS and that this element will not pass on, other wise, if there is a data deliver from the RFC the data will be passed.

I thought to use mapwithdefault or exist, but always the WS recieve an empty string and the element exist.

is there a set function to use or any written function that anyone knows of?

(this suppose to be like xsi:null)

Thanks

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can try to put XSLT mapping as a second mapping and put xsi:nil

into all empty elements - code is here:

http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/00c152e8-f87f-46f6-a522-33d6de4a3bf...

I never tested it but give it a try

Regards,

Michal Krawczyk

Answers (2)

Answers (2)

Former Member
0 Kudos

solved.

I made some functions that will make a demo of the situation. if the value is empty, the String in the WS will not be shown, other wise will show the value

former_member206760
Active Contributor
0 Kudos

if the source node is coming in the structure ..map with default will not work..

may be u can compare the value in that node with a blank constant and if it is satisfied...u can deliberately send the mapping in error