Custom Search SOABYTE here

Monday, November 8, 2010

How do I read the filename of the generated file from a write operation in BPEL

You will need to manually tweak the process wsdl for the outbound File/Ftp adapter in order to receive the filename after the interaction. Add an output message of type outbound header to the portType as shown below. Remember that the namespace prefix (hdr) is already defined in the wsdl.

<portType name="Write_ptt">
<operation name="Write">
<input message="tns:PurchaseOrder_msg"/>
<output message="hdr:OutboundHeader_msg"/>
</operation>
</portType>
In the BPEL file, manually create a variable of type outbound header as shown below; the namespace may vary.
<variable name="Invoke_1_Write_OutputVariable" messageType="ns3:OutboundHeader_msg"/>
Use this variable as the outbound variable in the invoke activity
<invoke name="Invoke_1" partnerLink="FileOut"
portType="ns2:Write_ptt" operation="Write"
inputVariable="Invoke_1_Write_InputVariable"
outputVariable="Invoke_1_Write_OutputVariable"/>.
 
Blogger Profile
{"cc_re__cc_re__cc_by_sa_4_0": ["<a class='quickedit' href='//www.blogger.com/rearrange?blogID=7909815894795431738&widgetType=Label&widgetId=Label1&action=editWidget&sectionId=sidebar' onclick='return _WidgetManager._PopupConfig(document.getElementById(\"Label1\"));' rel='nofollow' target='configLabel1' title='Edit'>\n<img alt='' height='18' src='https://resources.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>\n</a>\n</span>\n</span>\n<div class='clear'></div>\n</div>\n</div><div class='widget HTML' data-version='1' id='HTML1'><a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://lh6.googleusercontent.com/proxy/ZXHe9is4hRgOo4H1y6TPo78umUsx23XwjgOFVI8mODRxwmz5R5AUGukL7SF_YhxoORHJZKcEwhka0kTXx35nTbgUK8d6uw=s0-d\"></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\" href=\"http://purl.org/dc/dcmitype/Text\" property=\"dct:title\" rel=\"dct:type\">SOABYTE</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"www.soabyte.com\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">Team Fusion</a> is licens", "reative Commons License\" style=\"border-width:0\" src=\"https://lh6.googleusercontent.com/proxy/ZXHe9is4hRgOo4H1y6TPo78umUsx23XwjgOFVI8mODRxwmz5R5AUGukL7SF_YhxoORHJZKcEwhka0kTXx35nTbgUK8d6uw=s0-d\"></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\" href=\"http://purl.org/dc/dcmitype/Text\" property=\"dct:title\" rel=\"dct:type\">SOABYTE</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"www.soabyte.com\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">Team Fusion</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</div><div class='widget Blog' data-version='1' id='Blog2'>\n\n\n               <meta name=\"keywords\" content=\"Adapters\" />\n\n\n            \n</div></div>\n</div>\n<!-- spacer for skins that want sidebar and main to be the same height-->\n<div class='clear'>&#160;</div>\n</div>\n<!-- end content-wrapper -->\n<div id='content-wrapper-butt'></div>\n<div id='footer'>\n<div id='inner_footer'>\n<div id='footer_link'> 2010 <a href='https://www.soa"]}