Write File using File adapter

Hi,
I need to write atleast two lines. first the column headers and in second line, the data. Tried using 2 PLs but I think first line is getting overwritten by second one.
How can I achieve this?
Pls. help me out.
Regards,
Nikhil

I think i made u confused. Sorry about that. I have a new XSD that I am dealing with now. (Created using the file content pasted below)
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
targetNamespace="http://TargetNamespace.com/ReadPOReceiptInbound856.2"
xmlns:tns="http://TargetNamespace.com/ReadPOReceiptInbound856.2"
elementFormDefault="qualified"
attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
<xsd:element name="ControlNumber">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ecedi701.bano" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="ecedi020.neta" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.shpm" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.stat" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.cdat" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.pddt" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.fval" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.cdec" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.wght" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whwmd000.wght" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.stco" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.stco2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="ecedi224.code" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.itbp" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.itbp2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="ecedi224.code2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.risk" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.koch" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.cham" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.shpm2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="|" nxsd:quotedBy="&quot;">
</xsd:element>
<xsd:element name="whinh430.curr" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<!--NXSDWIZ:C:\Projects\FAI\090605-1929\856.2:-->
<!--USE-HEADER:false:-->
the sample file content that is repeating is below:
12020090605000000000000000000000071|C320|OUT340136|Sent|20090605192120|20090601111531|0|102|0|kg|20I|SN|ShpTo|||InvTo||0|0|OUT340136|
12020090605000000000000000000000072|C320|OUT340151|Sent|20090605192155|20090601113334|0|102|0|kg|20I|SN|ShpTo|||InvTo||0|0|OUT340151|
12020090605000000000000000000000073|C320|OUT340153|Sent|20090605192229|20090601113348|0|102|0|kg|20I|SN|ShpTo|||InvTo||0|0|OUT340153|
12020090605000000000000000000000074|C320|OUT340154|Sent|20090605192256|20090601113357|0|102|0|kg|20I|SN|ShpTo|||InvTo||0|0|OUT340154|
12020090605000000000000000000000075|C320|OUT340155|Sent|20090605192323|20090601113409|0|102|0|kg|20I|SN|ShpTo|||InvTo||0|0|OUT340155|
How can I modify this xsd to achieve my desired goal?
Rgds,
Nikhil

Similar Messages

  • How to write Header and Footer elements in Write file Adapter

    Hi,
    I have a requirement to write the file.The write file contains header and footer elements ,how we can write these elements. These elements are fixed for all files.these are not come from any input.below is the sample file.
    $begintable
    name,Id,Desg
    ad,12,it
    $endtable

    Hi,
    I have created the XSD for you, and i created a sample SOA Composite which writes the file same like what you want, the below XSD can write a file with one header record, multiple data records and one trailer record.
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://TargetNamespace.com/WriteFile"
    targetNamespace="http://TargetNamespace.com/WriteFile"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    nxsd:version="NXSD" nxsd:stream="chars" nxsd:encoding="UTF-8">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <!--xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=","-->
    <xsd:sequence>
    <xsd:element name="RECORD1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="header" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"
    nxsd:quotedBy='"'/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="RECORD2" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="data1" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy=","
    nxsd:quotedBy='"'/>
    <xsd:element name="data2" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy=","
    nxsd:quotedBy='"'/>
    <xsd:element name="data3" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"
    nxsd:quotedBy='"'/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="RECORD4" nxsd:conditionValue="$endtable">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="trailer" type="xsd:string"
    nxsd:style="terminated" nxsd:terminatedBy="${eol}"
    nxsd:quotedBy='"'/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Hope this helps,
    N

  • Appending in file using File Adapter

    Hi,
    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.
    Another query is can we create the file at run time with the supplied file name?

    Hi,
    To write a file in append mode, you need to add one line in wsdl file.
    Make an entry with Append="true"
    inside <jca:operation> tag found in wsdl file, created after Write file adapter.
    <jca:operation
    PhysicalDirectory="C:\TMP"
    InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
    FileNamingConvention="write.txt"
    OpaqueSchema="true"
    Append="true">
    </jca:operation>
    Cheers,
    Abhi...

  • Write file using FileAdaptor

    Hi,
    I need to write the file like below format using fileadaptor.
    *"smiith"*,Old Street,Old Town
    *"Manchester"*,98-12-1988,hello
    *"taisder"*,opppstreet ,juytr     
    *"vansuha"*,dordan,utre
    Anyone please tell me how we can provide double quotes to to this fields when we r writing file.

    I have posted the answer in the other thread.
    Re: How to write Header and Footer elements in Write file Adapter
    Thanks,
    N

  • Problem Using File adapter(Urgent)

    Hi,
    I have a simple ESB service where I have one Read File adapter for reading a file and other Write file adapter to write the same file to a folder.
    I was able to deploy it to ESB instance successfully.
    But when I put a file to read ESB is throwing
    "OracleASjms/ESBDeferredTopic" error.
    Can any one please help me.
    Thanks
    Rao.

    We would be able to help you better if you provided the full error stack as this is very generic.
    Generally the most common issue with the file adapter is permissions, make sure the SOA suite owner is able to read and write on the directory and the file.
    otherwise post the error stack which may identify the real cause.
    cheers
    James

  • File Adapter - Schema Reference Issue

    Hi Experts,
    I am working on project in SOA Suite 11.1.1.6
    The project has a File Adapter which writes the files to a particular destination.
    Following is the WSDL of WRITE File Adapter :
    <wsdl:definitions name="QCCCEQFileWriteOutbound"
    targetNamespace="XXXXXXXXX"
    xmlns:tns="XXXXXXXXX"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    <plt:partnerLinkType name="Write_plt">
    <plt:role name="Write_role">
    <plt:portType name="tns:Write_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="opaqueElement" type="base64Binary"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="Write_msg">
    <wsdl:part name="opaque" element="opaque:opaqueElement"/>
    </wsdl:message>
    <wsdl:portType name="Write_ptt">
    <wsdl:operation name="Write">
    <wsdl:input message="tns:Write_msg"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    When the process is running on TST server, if DEV server is DOWN its throwing this error:
    <bindingFault>
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Write' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.file.outbound.FileInteractionSpec due to: XSD Resolution problem. XSD Resolution problem. Unable to load Translation schemas from for http://xmlns.oracle.com/pcbpel/adapter/opaque/ due to: Unable to lookup schema for 'http://xmlns.oracle.com/pcbpel/adapter/opaque/' Please make sure all used XML schemas are imported/included correctly. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>Tried all: '1' addresses, but could not connect over HTTP to server: 'XXXdev.XXXXXXXX.com', port: '80'</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    Why is Test File Adapter WSDL is trying to connect DEV Server. I haven't added anything specific is File Adapter WSDL its the default generated WSDL of File Adapter. I am also not using MDS in project
    Please help me in this regards. Thanks in Advance.

    Hi Mathieu, Vijay,
    Here is the import and reference of File Write Adapter which is failing from composite.xml. It doesn't have any DEV references as its an Adapter pointing to JCA file.
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/file/XXX/XXXXProcess/XXXFileWriteOutbound"
    location="XXXFileWriteOutbound.wsdl" importType="wsdl"/>
    <reference name="XXXFileWriteOutbound"
    ui:wsdlLocation="XXXFileWriteOutbound.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/file/XXX/XXXProcess/XXXFileWriteOutbound#wsdl.interface(Write_ptt)"/>
    <binding.jca config="XXXFileWriteOutbound_file.jca"/>
    </reference>
    There are other references which are pointing to DEV, which I replacing with deployment plan. This service is failing at the Adapter call with the message i mentioned in initial post.
    I checked the WSDL Binding in System Mbean Browser - the values are properly replaced with TST URIs.
    Please share your thoughts, thanks again for your response.

  • How to test File Adapter from EM Console

    Hi All,
    I have one issue with File Adapter where I am trying to implement a simple BPEL process. Below are the steps;
    1. I have created an empty BPEL process and then add a read file adapter to the left side which will read from a file aa.txt which is present in D:\work folder. File is having data like XXXX,YYYY,ZZZZ. (I have used Native builder for schema generation)
    2. Then I have added Write file adapter on the right side which will write to an other file bb.txt.
    Then I have rebuild and deploy this on weblogic SOA server but on the EM console I am not able to test it as Test button is disabled. Then how to test this scenario? Also I tried testing by placing a new file aa1.txt in the same directory with some content. Logically it should be picked up and then write it to the bb.txt but it is not happening.
    Can anyone please help me in this as how to troubleshoot it.
    Thanks
    RJ

    Thanks for the reply.
    So if i understood correctly it means that we cannot test it using EM console as we have read adapter on the left side because of which we have not exposed it as SOAP service. When we put any file in the D:\XXX then automatically read adapter will pick that up and create one instance in the EM console and then write adapter will write it into the destination file?
    But in our case no instance is getting created in the EM console even when I am copying a file to the directory. Below is the read_file.jca
    <adapter-config name="Read" adapter="File Adapter" wsdlLocation="Read.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="rj*.txt"/>
    <endpoint-activation portType="Read_ptt" operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property name="DeleteFile" value="false"/>
    <property name="MinimumAge" value="0"/>
    <property name="PhysicalDirectory" value="D:\mywork"/>
    <property name="Recursive" value="true"/>
    <property name="PollingFrequency" value="60"/>
    <property name="IncludeFiles" value="rj.*\.txt"/>
    <property name="UseHeaders" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Please help as why it is not getting picked up?
    Regards
    RJ

  • File Adapter: File Deletion Failure

    Hi everyone.
    My File Adapter is having trouble deleting a file that I placed on a server through FTP. Even after executing chmodd 777 on that file. But, my File Adapter will delete a file that was created by another File Adapter on that same server.
    Any suggestion as to why the File Adapter is able to delete a file created by another File Adapter but not able to delete a file uploaded through FTP?

    984188 wrote:
    It is relevant in this case. As my original post stated, my SynchRead File Adapter will delete a file that is create by my Write File Adapter.The way you write the file is irrelevant... The user that is writing the file is the key... It works FileAdapter to FileAdapter because in that case the user that creates is the same that deletes... Anyway, the solution for your problem is to chmod directory where the files are...
    I reckon your directory is sticky so one user can not delete files from the other user...
    Read this...
    http://linuxgazette.net/issue39/tag/5.html
    Cheers,
    Vlad

  • Can't open up file adapter in JDev

    Hi,
    I have installed the file adapter sample adapters-file-101-FlatStructure from here
    https://java.net/projects/oraclesoasuite11g/pages/FileAdapters
    deployed, ran.
    I want to open either read or write file adapter in JDeveloper but when I double click on it or right click/choose 'Edit' nothing happens. Why?
    Thank you

    Karan,
    No problem with database adapter or BPEL processes, they open up fine. So far only file adapter give me trouble.
    Thank you
    A
    PS Not sure if this make a difference - in my jca file (FlatStructureIn_file.jca) the second line which is <?binding.jca FlatStructureIn_file.jca?> is in GREY color (all of it).
    All other lines are "normal" with "usual" color scheme, not sure if this can be seen from below
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?binding.jca FlatStructureIn_file.jca?> ------------------------------(this is the GREY color line)
    <definitions name="FlatStructureIn" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/FlatStructureIn/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/FlatStructureIn/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:imp1="http://xmlns.oracle.com/pcbpel/demoSchema/csv">
        <documentation>Flat Structure Inbound File Adapter</documentation>
        <types>....
    PS2
    Karan, I downloaded / installed another sample today from
    http://technology.amis.nl/wp-content/uploads/images/ProductCatalog.zip
    No problem opening file adapter here, could you have a look at the wsdl, the file doesn't have ....jca line though, the wsdl looks like this:
    <wsdl:definitions
         name="ScanCatalogFile"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/ProductCatalog/ProductCatalog/ScanCatalogFile"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/ProductCatalog/ProductCatalog/ScanCatalogFile"
         xmlns:imp1="http://myshop.com/ScanCatalogFile"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
        >
      <plt:partnerLinkType name="ScanProducts_plt" >
        <plt:role name="ScanProducts_role" >
          <plt:portType name="tns:ScanProducts_ptt" />
        </plt:role>
      </plt:partnerLinkType>
        <wsdl:types>
          <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/ProductCatalog/ProductCatalog/ScanCatalogFile"
                  xmlns="http://www.w3.org/2001/XMLSchema" >
            <import namespace="http://myshop.com/ScanCatalogFile" schemaLocation="xsd/SampleProductCatalog_1.xsd" />
          <element name="empty"><complexType/></element>
          </schema>
        </wsdl:types>
        <wsdl:message name="Empty_msg">
            <wsdl:part name="Empty" element="tns:empty"/>
        </wsdl:message>
        <wsdl:message name="ScanProducts_msg">
            <wsdl:part name="body" element="imp1:Catalog"/>
        </wsdl:message>
        <wsdl:portType name="ScanProducts_ptt">
            <wsdl:operation name="ScanProducts">
                <wsdl:input message="tns:Empty_msg"/>
                <wsdl:output message="tns:ScanProducts_msg"/>
            </wsdl:operation>
        </wsdl:portType>
    </wsdl:definitions>
    and the jca file looks like this:
    <adapter-config name="ScanCatalogFile" adapter="File Adapter" wsdlLocation="ScanCatalogFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
        <connection-factory location="eis/FileAdapter"/>
      <endpoint-interaction portType="ScanProducts_ptt" operation="ScanProducts">
        <interaction-spec className="oracle.tip.adapter.file.outbound.FileReadInteractionSpec">
          <property name="DeleteFile" value="false"/>
          <property name="PhysicalDirectory" value="d:\temp\products"/>
          <property name="FileName" value="ProductCatalog.txt"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>

  • How to use File Adapter Receiver to write attachments

    Hi,
    i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments 
    On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
    The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
    I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
    Could anyone give me any ideas?
    thanks a lot in advance
    Xiang

    hi,
    receiver file adapters do not supprt attachments.
    Only File Sender adapter is capable of handling attachments not the receiver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
    Configuring the sender FILE adapter
    The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
    access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
    under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
    Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
    MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
    and also change the file extension.
    The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
    data with another payload which is appended to the message as an attachment. In our case, the payload
    would be file1.xml whereas the attachment would be file1.jpg
    The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the
    MIME header.
    regards,
    pradeep.

  • How to write a plain string into a file using File Adapter

    Hi All,
    I am new to ESB technology. I have created one ESB application to invoke a java web service(Which will return string as result) and to write retrieved result in to a file. To achieve it i have created the file adapter using user defined schema. It was working fine. But, I got the modifications in my requirement to store the returned result(String value) in to a text file without any user defined schema. So i used native format for FileAdapter and mapped the returnedResponse(String value) to opaque:opaqueElement. But i am facing relationship error.
    anybody can help me to solve this issue?.. is there any method to convert a string value to opaqueElement..
    Thanks in advance..

    Hi All,
    I am new to ESB technology. I have created one ESB application to invoke a java web service(Which will return string as result) and to write retrieved result in to a file. To achieve it i have created the file adapter using user defined schema. It was working fine. But, I got the modifications in my requirement to store the returned result(String value) in to a text file without any user defined schema. So i used native format for FileAdapter and mapped the returnedResponse(String value) to opaque:opaqueElement. But i am facing relationship error.
    anybody can help me to solve this issue?.. is there any method to convert a string value to opaqueElement..
    Thanks in advance..

  • File Read and Write using File Adapter in Bpel

    In Bpel Process i am using File Adapter ( Schema is Opaque) for read and write the file contents. i am able do successful deployment and read, write function in first time deployment, after that again i tired to run the application, its not going to write the content of file, its only writing the file with out data's or content in that file.
    Please help me...
    Saravanan

    Hi Eric
    In my domain.log file having the following details. In this file im unable to find out what the exact problem. Please look at this and help me.
    <2008-01-22 18:25:42,024> <INFO> <default.collaxa.cube.compiler> validating "C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\tmp\.bpel_BPELProcess2_1.1_298e83988d77b6640c33dfeec11ed31b.tmp\BPELProcess2.bpel" ...
    <2008-01-22 18:25:49,850> <INFO> <default.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    Process "BPELProcess2" (revision "1.1") successfully compiled.
    <2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Loading JCAActivationAgent for {portType=Read_ptt}
    <2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Locating Adapter Framework instance: OraBPEL
    <2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Done loading JCAActivationAgent for processId='bpel://localhost/default/BPELProcess2~1.1/
    <2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.engine.deployment> Process "BPELProcess2" (revision "1.1") successfully loaded.
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::uninit Shutting down the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.0/', activation properties={portType=Read_ptt}
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Endpoint De-activation called in adapter for endpoint : D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.1/
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/BPELProcess2~1.1/'
    domain='default'
    WSDL location='rd.wsdl'
    portType='Read_ptt'
    operation='Read'
    activation properties={portType=Read_ptt}
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Endpoint Activation called in File Adapter for endpoint: D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
    <2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,890> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Managed Connection Created
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Connection Created
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction Created

  • Can file adapter be used to write to remote server

    Hi, can file adpater be used to write to a remote server(say from linux to windows) or we have to run an ftp server and use the ftp adapter only.
    Thanks
    Manish

    Hi Manish,
    As mentioned by Hisaak, File adapter should be used to write files locally and FTP adapter should be used to write files on remote servers. Still if you want to use file adapter then you have to mount/map the network drive (drive at remote server) to your local machine and then you may use File adapter, provided proper permissions are there.
    Regards,
    Anuj

  • How to Write a PDF using File Adapter

    Hi All,
    Can anyone please let me know how to create a PDF file at the receiving end using a File Receiver Adapter. The source is an XML file. The scenario is as follows.
    XML-File ---> XI --->PDF-File.
    Any help would be highly appreciated.
    Thanks in Advance
    Anil.

    hi ,
    if u r using pi7.1 you  can  use agents concept.
    please find the links.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/fc39c16bfb025ee10000000a1553f7/frameset.htm
    How to get started using Conversion Agent from Itemfield
    More on the SAP Conversion Agent by Itemfield
    Integrate SAP Conversion Agent by Itemfield with SAP XI
    Conversion Agent a Free Lunch?
    How to get started using Conversion Agent from Itemfield
    https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
    https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
    XI: Generate PDF file out of file adapter
    XI: Read data from PDF file in Sender Adapter
    The specified item was not found.
    regards,
    navneet

  • How to write file into multiple directories by using file adapter?

    i need to write my file into multiple directories,i able to do in single directory.But i need to write to muliple directories.Please help me out.Thanks in advance.

    If you are passing the values at runtime then you can loop it and and invoke the file adapter in loop by dynamically passing the value in invoke properties for "File Directory and File name" etc.

  • Error in using file adapter valves

    Hi,
    I'm working on Oracle SOA Suite 11g (11.1.1.4). I'm doing an exercise on using adapter valves for encryption. I need to write an encrypted file using File adapter. I created pipeline.xml and also specified property in jca file. And added bpm-infra.jar file to classpath.
    Also, I've compiled SimpleEncryptValve.java and created a jar file and placed it in lib directory of domain.
    Pipeline.xml is as below :
    <?xml version="1.0"?>
    <pipeline xmlns="https://www.oracle.com/adapter/pipeline">
    <valves>
    <valve>valves.SimpleEncryptValve</valve>
    </valves>
    </pipeline>
    writeFile_file.jca contents are as below :
    <adapter-config name="writeFile" adapter="File Adapter" wsdlLocation="writeFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter"/>
    <endpoint-interaction portType="Write_ptt" operation="Write">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileInteractionSpec">
    <property name="PhysicalDirectory" value="D:\PoC\FileAdapters"/>
    <property name="Append" value="false"/>
    <property name="FileNamingConvention" value="new_%SEQ%.txt"/>
    <property name="NumberMessages" value="1"/>
    <property name="PipelineFile" value="pipeline.xml"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    Got below error while testing. What could be wrong in valve configuration ?
    <Jun 6, 2011 7:29:25 PM IST> <Error> <oracle.soa.adapter> <BEA-000000> <File
    pter Project2:writeFile [ Write_ptt::Write(body) ]
    oracle.tip.pc.services.pipeline.PipelineException: Invalid configurations for valves
    at oracle.tip.pc.services.pipeline.PipelineImpl.validate(PipelineImpl
    va:237)
    at oracle.tip.pc.services.pipeline.PipelineFactory.instantiateModel(P
    lineFactory.java:198)
    at oracle.tip.pc.services.pipeline.PipelineTemplate.newPipeline(Pipel
    Template.java:39)
    at oracle.tip.adapter.file.outbound.FileSender.getPipeline(FileSender
    va:378)
    at oracle.tip.adapter.file.outbound.FileSender.sendNonBatchedSerializ
    late(FileSender.java:254)
    at oracle.tip.adapter.file.outbound.FileInteraction.executeFileWrite(
    eInteraction.java:623)
    at oracle.tip.adapter.file.outbound.FileInteraction.execute(FileInter
    ion.java:426)
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteracti
    nvoker.executeJcaInteraction(JCAInteractionInvoker.java:311)
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteracti
    nvoker.invokeJcaReference(JCAInteractionInvoker.java:548)
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteracti
    nvoker.invokeAsyncJcaReference(JCAInteractionInvoker.java:508)
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAEndpointI
    raction.performAsynchronousInteraction(JCAEndpointInteraction.java:491)
    at oracle.integration.platform.blocks.adapter.AdapterReference.post(A
    terReference.java:247)
    at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler
    Post(AsynchronousMessageHandler.java:142)
    at oracle.integration.platform.blocks.mesh.MessageRouter.post(Message
    ter.java:194)
    at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.jav
    15)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingRefle
    on(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invok
    inpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proce
    ReflectiveMethodInvocation.java:149)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseE
    tAspect.java:71)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proce
    ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDyn
    cAopProxy.java:204)
    at $Proxy299.post(Unknown Source)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post2Mesh(
    iatorServiceEngine.java:1120)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseA
    onHandler.java:200)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseA
    onHandler.java:94)
    at oracle.tip.mediator.service.BaseActionHandler.requestProcess(BaseA
    onHandler.java:74)
    at oracle.tip.mediator.service.OneWayActionHandler.process(OneWayActi
    andler.java:47)
    at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProces
    .java:64)
    at oracle.tip.mediator.dispatch.MessageDispatcher.executeCase(Message
    patcher.java:137)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCase(
    tialMessageDispatcher.java:503)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases
    itialMessageDispatcher.java:401)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processNorma
    ses(InitialMessageDispatcher.java:284)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.processCases
    itialMessageDispatcher.java:251)
    at oracle.tip.mediator.dispatch.InitialMessageDispatcher.dispatch(Ini
    lMessageDispatcher.java:143)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.process(Me
    torServiceEngine.java:848)
    at oracle.tip.mediator.serviceEngine.MediatorServiceEngine.post(Media
    ServiceEngine.java:624)
    at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler
    Post(AsynchronousMessageHandler.java:142)
    at oracle.integration.platform.blocks.mesh.MessageRouter.post(Message
    ter.java:194)
    at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.jav
    15)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingRefle
    on(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invok
    inpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proce
    ReflectiveMethodInvocation.java:149)
    at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseE
    tAspect.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proce
    ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDyn
    cAopProxy.java:204)
    at $Proxy299.post(Unknown Source)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComp
    nt.doMessageProcessing(WebServiceEntryBindingComponent.java:1271)
    at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComp
    nt.processIncomingMessage(WebServiceEntryBindingComponent.java:859)
    at oracle.integration.platform.blocks.soap.FabricProvider.processMess
    (FabricProvider.java:113)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcess
    (ProviderProcessor.java:1187)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementa
    n(WebServiceProcessor.java:1081)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessi
    ProviderProcessor.java:581)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServic
    ocessor.java:232)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProc
    or.java:192)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.j
    :459)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPo
    FabricProviderServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.
    (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSec
    tyHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.
    a:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl
    va:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:1
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java
    3)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatfor
    il.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.
    a:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.jav
    61)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl
    va:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java
    6)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl
    va:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAc
    n.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAc
    n.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authentic
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.ja
    120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebA
    ervletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServl
    ontext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImp
    ava:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    >

    Hi Surfraz,
    Did you go through this link?
    http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_file.htm#BABCFDGC
    Regards,
    Neeraj Sehgal

Maybe you are looking for

  • How get rid of flashback info in database documentation?

    Hi everyone, I tried to create a database documentation in SQLDeveloper using the context menu on the connection icon. For each table SQLDeveloper extracted flashback info, amounting to several GB. It took hours to complete! Is it possible to disable

  • How to do product with sum using DAX

    Hi Everyone, How I can get the Value result using DAX: Calculation for Value on 3/1/2014: 6*20 + 10*10 + 4*30 = 340                                     4/1/2014: 8*30 + 2*10 + 0*40 = 260 ..... so on... Please reply on this... Performance of the measu

  • Are there any Client/Server Application (using sockets) design patterns?

    Hi, The title of the post nearly says it all. I am searching for different design patterns related with the development of a client/server application. I understand that there must be any different ways on how a client/server application can be devel

  • Constant ruler measure and object dimensions between files

    how do you make sure each file you are using use the same ruler measurements? and how do you copy & paste, say an object in a layer, to another file and know it will be exactly the same?

  • IPod and iTunes communication

    I keep getting a message when trying to update my iPod mini that the iPod and iTunes are unable to communicate. I uninstalled and reinstalled iTunes and downloaded the most recent iPod updater. All my songs from my iPod were erased and I still cannot