Skip to content

Commit

Permalink
Merge pull request #7622 from wso2/DinithiDiaz-patch-14
Browse files Browse the repository at this point in the history
[master] Update the URI format
  • Loading branch information
DinithiDiaz authored Sep 11, 2024
2 parents 188b8d4 + ecd09ef commit 1ee4abb
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Following are the integration artifacts (proxy service) that we can used to impl

```xml
<proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxy" transports="vfs">
<parameter name="transport.vfs.FileURI">smb://host/test/in</parameter>
<parameter name="transport.vfs.FileURI">vfs:smb://host/test/in</parameter>
<parameter name="transport.vfs.ContentType">text/xml</parameter>
<parameter name="transport.vfs.FileNamePattern">.*\.xml</parameter>
<parameter name="transport.PollInterval">15</parameter>
<parameter name="transport.vfs.MoveAfterProcess">smb://host/test/original</parameter>
<parameter name="transport.vfs.MoveAfterFailure">smb://host/test/failed</parameter>
<parameter name="transport.vfs.MoveAfterProcess">vfs:smb://host/test/original</parameter>
<parameter name="transport.vfs.MoveAfterFailure">vfs:smb://host/test/failed</parameter>
<parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
<parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>

Expand Down Expand Up @@ -103,7 +103,7 @@ When the sample is executed, the VFS transport listener picks the file from the
Windows share URI format for SMB v2/3 use cases is shown below.

```
smb2://[username]:[password]@[hostname]/[absolute-path]
vfs:smb2://[username]:[password]@[hostname]:[port]/[absolute-path]
```
You can use the proxy given below to test the SMB2 functionality.
Expand All @@ -122,18 +122,18 @@ You can use the proxy given below to test the SMB2 functionality.
<property name="OUT_ONLY" value="true"/>
<send>
<endpoint>
<address uri="smb2://username:password@/host/SMBFileShare/out"/>
<address uri="vfs:smb2://username:password@host/SMBFileShare/out"/>
</endpoint>
</send>
</inSequence>
</target>
<parameter name="transport.PollInterval">15</parameter>
<parameter name="transport.vfs.FileURI">smb2://username:password@/host/SMBFileShare/in</parameter>
<parameter name="transport.vfs.FileURI">vfs:smb2://username:password@host/SMBFileShare/in</parameter>
<parameter name="transport.vfs.ContentType">text/plain</parameter>
<parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
<parameter name="transport.vfs.MoveAfterFailure">smb2://username:password@/host/SMBFileShare/fail</parameter>
<parameter name="transport.vfs.MoveAfterFailure">vfs:smb2://username:password@host/SMBFileShare/fail</parameter>
<parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
<parameter name="transport.vfs.FileNamePattern">.*\.txt</parameter>
<parameter name="transport.vfs.MoveAfterProcess">smb2://username:password@/host/SMBFileShare/original</parameter>
<parameter name="transport.vfs.MoveAfterProcess">vfs:smb2://username:password@host/SMBFileShare/original</parameter>
</proxy>
```

0 comments on commit 1ee4abb

Please sign in to comment.