3 Replies Latest reply: Apr 16, 2013 12:18 PM by Vinit Ahuja RSS

    How to receive Binary Data or Attachment through BPEL

    Vinit Ahuja
      Hi,
      Is it possible to receive binary data or some zip file through BPEL component without using FTP adapter or File Adapter.
      Client wants to send "*.axml" file over webservice call.. He is suggesting to send it in binary form through webservice call.
      Do BPEL have that capability to receive it n convert to ".xml" ???

      Thanks,
      Vinit
        • 1. Re: How to receive Binary Data or Attachment through BPEL
          Vamseeg-Oracle
          Yes. BPEL can receive/send attachments(binary/text etc). It does not matter if input to BPEL is an adapter or WS call. Make sure your input WSDL is configured to use attachment part of type base64binary. Once attachment is received by BPEL, use BPEL XPATH function getAttachmentContent or writeBinaryToFile and convert it to required format.

          Here is doc for your reference: http://docs.oracle.com/cd/E15586_01/integration.1111/e10224/sca_large_docs.htm#CIHEGHBF
          • 2. Re: How to receive Binary Data or Attachment through BPEL
            Vinit Ahuja
            Hi ,
            When i'm using 'ora:writeBinaryToFile()' , i'm getting below error:-

            <exception class="java.lang.NullPointerException">
            message can't be null
            <stack>
            <f>javax.xml.xpath.XPathException.<init>#66</f>
            <f>javax.xml.xpath.XPathExpressionException.<init>#60</f>
            <f>javax.xml.xpath.XPathFunctionException.<init>#59</f>
            <f>com.collaxa.cube.xml.xpath.BPELXPathFunctionWrapper.evaluate#88</f>
            <f>oracle.xml.xpath.JXPathContext$JXFunction.invoke#157</f>
            <f>oracle.xml.xpath.JXPathContext$JXFunction.invoke#126</f>
            <f>oracle.xml.xpath.XPathExtFunction.evaluate#264</f>
            <f>oracle.xml.xpath.JXPathExpression.evaluate#203</f>
            <f>com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate#240</f>
            <f>com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue#339</f>
            <f>com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements#137</f>
            <f>com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform#158</f>
            <f>com.collaxa.cube.engine.CubeEngine._performActivity#2463</f>
            <f>com.collaxa.cube.engine.CubeEngine.performActivity#2334</f>
            <f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1115</f>
            <f>com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal#73</f>
            <f>...</f>
            </stack>
            </exception>
            • 3. Re: How to receive Binary Data or Attachment through BPEL
              Vinit Ahuja
              After struggling alot , finally i come to know it was issue with SOAP UI version....... Code was completely fine.