2 Replies Latest reply: May 19, 2014 10:39 AM by 922073 RSS

    FTP Adapter -- synchronous read -- native format

    922073

      You would think an FTP connection would be simple. While I have done a bunch of "puts" without difficulty; I can't get a sync read to work AT ALL.

       

      What the heck is wrong with this mess anyway? This should be simple.

       

      Here is my WSDL .. what is wrong here?

       

      <wsdl:definitions

           name="getRawFile"

           targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/caseList/caseList/getRawFile"

           xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"

           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

           xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/caseList/caseList/getRawFile"

           xmlns:imp1="http://TargetNamespace.com/getRawFile"

           xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"

          >

        <plt:partnerLinkType name="SynchRead_plt" >

          <plt:role name="SynchRead_role" >

            <plt:portType name="tns:SynchRead_ptt" />

          </plt:role>

        </plt:partnerLinkType>

          <wsdl:types>

            <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/caseList/caseList/getRawFile"

                    xmlns="http://www.w3.org/2001/XMLSchema" >

              <import namespace="http://TargetNamespace.com/getRawFile" schemaLocation="xsd/F17QBA1_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="SynchRead_msg">

              <wsdl:part name="body" element="imp1:HUDCaseList"/>

          </wsdl:message>

          <wsdl:portType name="SynchRead_ptt">

              <wsdl:operation name="SynchRead">

                  <wsdl:input message="tns:Empty_msg"/>

                  <wsdl:output message="tns:SynchRead_msg"/>

              </wsdl:operation>

          </wsdl:portType>

      </wsdl:definitions>

       

      Here is my jca

       

      <adapter-config name="getRawFile" adapter="FTP Adapter" wsdlLocation="getRawFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">

          <connection-factory location="eis/Ftp/FtpAdapterP011"/>

        <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">

          <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec">

            <property name="DeleteFile" value="true"/>

            <property name="PhysicalDirectory" value="/opt/oracle/work/domains/dev_total_vr_domain/TOTAL"/>

            <property name="FileName" value="F17QBA1"/>

            <property name="FileType" value="ascii"/>

          </interaction-spec>

        </endpoint-interaction>

      </adapter-config>