Wednesday, April 30, 2008

BPEL: File Adapter - Write Opeartion

Problem:Can we use File Adapter to write in a file in append mode. i.e. a BPEL process opening a file appending some text and closing the file each time it called.


Solution:
To write a file in append mode, you need to add one line in wsdl file.

Make an entry with Append="true"
inside tag found in wsdl file, created after Write file adapter.

PhysicalDirectory="C:\TMP"
InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
FileNamingConvention="write.txt"
OpaqueSchema="true"
Append="true">

4 comments:

Achoo's Blog said...

for me this append=true not working ...i am using 10.1.3.1 soa basic install

Abhishek Saurabh said...

Hi,

Are you using append="true" or append=true?

Anonymous said...

which one is right ? the one with quotes or w/o quotes ?

Abhishek Saurabh said...

It works with quotes.

append="true"

Cheers,
Abhishek