cancel
Showing results for 
Search instead for 
Did you mean: 

Processing Empty files

Former Member
0 Kudos

Hi Friends,

We got a scenario of processing empty XML files with output as empty files.

Two possible soultions are with the help of custom modules in Sender adapters and by using XSLT mapping by adding the XML tags if the payload is empty.

Is there is any other easy way around?

Can anyone provide the java coding for this...

system details XI 3.0 ,SP-18.

Thanks &Regards,

Sunil.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi sunil,

the PI version has option to process empty file no need to code or use XSL mapping.

I will just check XI 3.0 SP18 has this feature or not....

regards

Ramesh P

Former Member
0 Kudos

Hi Ramesh,

the empty file proceesing is supported in SP19 in XI3.0 and SP10 in PI.

We want an output, eventhough if you check the processing of empty files check box in Communication Channel the empty payload will throw a error in message mapping, since its not a valid XML.

So I want to add the Xml tags using java through modules.

Thanks and Regards,

Sunil.

Former Member
0 Kudos

hi sunil,

I too just confirmed.

I have just read forum discussion where you can process and empty file for your reference here is the link

regards

ramesh P

Former Member
0 Kudos

Also sunil

Check this note 821267 and 31st question and answer.

Also this forum discussion, hope you will near to ur solution

regards

Ramesh P

Former Member
0 Kudos

Hi Ramesh,

The only option left open to me is using custom module adapters to convert the empty payload to ...

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Source_OB xmlns:ns0="http:
MyNameSapce">

</ns0:MT_Source_OB>

....before the CallSapAdapter.

Any Help to build the EJB modules?

Regards,

Sunil.

Former Member
0 Kudos

hi sunil

this is basic guide to develop a ejb module

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac2...

Let me know how it goes, i ll try for other options tooo.

regards

Ramesh P

Answers (0)