Read File As attachment from a File Adapter in SOA
Tags: Publish
April 12, 2017 at 01:09PM
Open in Evernote
Attach a BPEL process to it with the BPEL code as
<assign name="Assign1">
<copy>
<from expression="ora:getAttachmentContent('Receive1_Read_InputVariable','attach','/ns2:attachmentElement')"/>
<to variable="Variable1"/>
</copy>
</assign>
++
Copy the file test1.xml to the directory /tmp/readattach1.
Open EM and go to the flow trace
for variable1 you should see the data as
<Variable1>
<Variable1 xsi:type="ns:string">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjxwcm9jZXNzIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiCiAgICAgICAgIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL3htbG5zLm9yYWNsZS5jb20vQXBwbGljYXRpb24yL1Byb2plY3QzL0JQRUxQcm9jZXNzMSB4c2QvQlBFTFByb2Nlc3MxLnhzZCIKICAgICAgICAgICAgICAgICAgeG1sbnM9Imh0dHA6Ly94bWxucy5vcmFjbGUuY29tL0FwcGxpY2F0aW9uMi9Qcm9qZWN0My9CUEVMUHJvY2VzczEiPgogICAgICAgICAgICAgICAgICAgIDxpbnB1dD5SQVZJPC9pbnB1dD4KICAgICAgICAgICAgICAgICAgICA8L3Byb2Nlc3M+Cgo=</Variable1>
</Variable1>
Open EM and go to the flow trace
for variable1 you should see the data as
<Variable1>
<Variable1 xsi:type="ns:string">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+Cjxwcm9jZXNzIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiCiAgICAgICAgIHhzaTpzY2hlbWFMb2NhdGlvbj0iaHR0cDovL3htbG5zLm9yYWNsZS5jb20vQXBwbGljYXRpb24yL1Byb2plY3QzL0JQRUxQcm9jZXNzMSB4c2QvQlBFTFByb2Nlc3MxLnhzZCIKICAgICAgICAgICAgICAgICAgeG1sbnM9Imh0dHA6Ly94bWxucy5vcmFjbGUuY29tL0FwcGxpY2F0aW9uMi9Qcm9qZWN0My9CUEVMUHJvY2VzczEiPgogICAgICAgICAgICAgICAgICAgIDxpbnB1dD5SQVZJPC9pbnB1dD4KICAgICAgICAgICAgICAgICAgICA8L3Byb2Nlc3M+Cgo=</Variable1>
</Variable1>
This is in base64 encoded format
Tags: Publish
April 12, 2017 at 01:09PM
Open in Evernote
No comments:
Post a Comment