1 Reply Latest reply: Feb 11, 2013 4:57 AM by Vaibhav Saraogi RSS

    Email Attachment is not Working for xml file

    user593826
      Hi All,

      if any one has any answer to this below Query, Your help will be highly appreciated.

      1- while configuring the email for attachment i am getting the selection failure Error in Content Encoding line where i am setting the base64 for encoding. Please fine configuration done for Email activity

      <scope name="Email1">
      <bpelx:annotation>
      <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
      </bpelx:annotation>
      <variables>
      <variable name="varNotificationReq"
      messageType="ns1:EmailNotificationRequest"/>
      <variable name="varNotificationResponse"
      messageType="ns1:ArrayOfResponse"/>
      <variable name="NotificationServiceFaultVariable"
      messageType="ns1:NotificationServiceErrorMessage"/>
      </variables>
      <sequence name="Sequence1">
      <assign name="EmailParamsAssign">
      <copy>
      <from expression="string('Default')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:FromAccountName"/>
      </copy>
      <copy>
      <from expression="string('')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Bcc"/>
      </copy>
      <copy>
      <from expression="string('')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Cc"/>
      </copy>
      <copy>
      <from expression="string('')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:ReplyToAddress"/>
      </copy>
      <copy>
      <from expression="bpws:getVariableData('subject')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Subject"/>
      </copy>
      <copy>
      <from expression="bpws:getVariableData('mailId')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:To"/>
      </copy>
      <copy>
      <from>
      <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
      <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/mixed</MimeType>
      <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
      <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
      <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
      <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      </BodyPart>

      <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
      <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      <contentencoding xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
      </BodyPart>
      </MultiPart>
      </ContentBody>
      </Content>
      </from>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content"/>
      </copy>
      <copy>
      <from expression="string('base64')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentEncoding"/>
      </copy>

      <copy>
      <from expression="string('application/xml')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:MimeType"/>
      </copy>

      <copy>
      <from expression="bpws:getVariableData('body')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:ContentBody"/>
      </copy>
      <copy>
      <from expression="string('application/xml')"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:MimeType"/>
      </copy>
      <copy>
      <from expression="'abc.xml'"/>
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:BodyPartName"/>
      </copy>

      <copy>
      <from expression="ora:readFile('file:///*/*.xml')"/
      <to variable="varNotificationReq" part="EmailPayload"
      query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentBody"/>
      </copy>
      </assign>




      If any one has done it before please help me out...

      thanks
      Dillip