petals-bc-ftp-v3.3

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (7)

View Page History
h1. FTP Service

{include:0 CDK SU Provide Configuration}


h2. PROVIDE MODE

\\


h3. Service Unit descriptor



The service unit is configurable via its extensions in the jbi.xml file:
\\
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<!-- JBI descriptor for PEtALS' "petals-bc-ftp" (FTP), version 3.0 -->
<jbi:jbi version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:ftp="http://petals.ow2.org/components/ftp/version-3"
xmlns:interfaceNs="http://petals.ow2.org/components/ftp/version-3"
xmlns:serviceNs="http://myservice">
<!-- Import a Service into PEtALS or Expose a PEtALS Service use a BC. -->
<jbi:services binding-component="true">
<!-- Import a Service into PEtALS provides a Service. -->
<jbi:provides
interface-name="interfaceNs:Ftp"
service-name="serviceNs:FtpSrv"
endpoint-name="FtpSrvEndpoint">
<!-- CDK specific elements -->
<petalsCDK:wsdl>FtpService.wsdl</petalsCDK:wsdl>
<!-- Component specific elements -->
<ftp:server>server</ftp:server>
<ftp:port>21</ftp:port>
<ftp:user>user</ftp:user>
<ftp:password>password</ftp:password>
<ftp:folder>folder</ftp:folder>
</jbi:provides>
</jbi:services>
</jbi:jbi>{code}
\\
&nbsp; *Service Unit attributes to provide services*
{table-plus}




















|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server | | Yes (except when uins FtpService) |
| port | the port number of the ftp server | 21 | No |
| user | the user login name used to connect to the server | | Yes (except when using FtpService) |
| password | the user password | | Yes (except when using FtpService) |
| folder | the folder on the FTP server | | No |
| filename | file name for the standard PUT operation (write the XML message content on the FTP server) | content.xml | No |
| connection-mode | In Active mode, the connection port is set by the client. In Passive mode, it is set by the server (default is Active) | active | No |
| transfer-type | transfer mode used for put or get files ascii/binary | ascii | No |
| delete-processed-files | If true, the service delete the files processed by operation get or mget | false | No \\ |
| encoding | Set the encoding encoding value used to process ftp operation. | Default JVM Encoding \\ | No \\ |
{table-plus}



h3. Service Unit content&nbsp;



The Service Unit has to contain the following elements, packaged in an archive:
\\
* The META-INF/jbi.xml descriptor file, has described above,
* An optional wsdl file describing the related service

{code}service-unit.zip
+ META-INF
- jbi.xml (as defined above)
- service.wsdl (optional)
{code}



h3. FTP Service




When using the FTP service, you can optionnaly define the FTP connection information in your XML request. If you don't, the service unit parameters are used.
\\
The available exchange pattern is : InOnly.

h3. Configuration

h4. Service Unit descriptor

The service unit is configurable via its extensions in the jbi.xml file:
\\
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<!-- JBI descriptor for PEtALS' "petals-bc-ftp" (FTP), version 3.0 -->
<jbi:jbi version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:ftp="http://petals.ow2.org/components/ftp/version-3"
xmlns:interfaceNs="http://petals.ow2.org/components/ftp/version-3"
xmlns:serviceNs="http://myservice">
<!-- Import a Service into PEtALS or Expose a PEtALS Service use a BC. -->
<jbi:services binding-component="true">
<!-- Import a Service into PEtALS provides a Service. -->
<jbi:provides
interface-name="interfaceNs:Ftp"
service-name="serviceNs:FtpSrv"
endpoint-name="FtpSrvEndpoint">
<!-- CDK specific elements -->
<petalsCDK:wsdl>FtpService.wsdl</petalsCDK:wsdl>
<!-- Component specific elements -->
<ftp:server>server</ftp:server>
<ftp:port>21</ftp:port>
<ftp:user>user</ftp:user>
<ftp:password>password</ftp:password>
<ftp:folder>folder</ftp:folder>
</jbi:provides>
</jbi:services>
</jbi:jbi>{code}
\\
&nbsp; *Service Unit attributes to provide services*
{table-plus}


|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server | | Yes (except when uins FtpService) |
| port | the port number of the ftp server | 21 | No |
| user | the user login name used to connect to the server | | Yes (except when using FtpService) |
| password | the user password | | Yes (except when using FtpService) |
| folder | the folder on the FTP server | | No |
| filename | file name for the standard PUT operation (write the XML message content on the FTP server) | content.xml | No |
| connection-mode | In Active mode, the connection port is set by the client. In Passive mode, it is set by the server (default is Active) | active | No |
| transfer-type | transfer mode used for put or get files ascii/binary | ascii | No |
| delete-processed-files | If true, the service delete the files processed by operation get or mget | false | No \\ |
| encoding | Set the encoding encoding value used to process ftp operation. | Default JVM Encoding \\ | No \\ |
{table-plus}

h4. Service Unit content&nbsp;

The Service Unit has to contain the following elements, packaged in an archive:
\\
* The META-INF/jbi.xml descriptor file, has described above,
* An optional wsdl file describing the related service

{code}service-unit.zip
+ META-INF
- jbi.xml (as defined above)
- service.wsdl (optional)
{code}

h1. Component Configuration

h1. Service Configuration

{include:0 CDK SU Provide Configuration}

{column}
{column:width=25%}