bin/b2bpo data.source.sourcedirectory=/data/outbnd data.source.filename=tm1102a.txt
With an open commmand prompt or command shell
CD into the
Root Directory
where you installed the software, and
then use the above expression. This command line runs a script with 2 parameters
whose values determine the data source that will be passed into into the B2B interface.
On your PC or LAN, the file matching the above values for sourcedirectory and the filename
will be sent.
Note: resources in the software download already include files necessary to run Track 1 demos. You can run the expression above with no changes.
In all of the Demo samples that follow, the script is always the same and only the value for the
parameters varies. For that reason, only the parameters will be mentioned. To run the program,
you will have to type the shellscript name on Unix systems and follow it with the parameter values
that are listed in the box. On Windows you will type in the name of the bat file
bin\b2bpo
followed by all parameter keys and values typed all on one line in the command window.
For more information on running samples go
here.
-- listing properties -- data.topic.action=publish data.source.sourcedirectory=e:\po_1_2\data/outbnd data.source.filename=tm1102a.txt rename.session.id.disp.from=0 wsdl.service.addr.port.name=urn:EchoAttachmentsService rename.session.id.disp.to=15 wsdl.service.addr.axis.webapp=axis/services data.source.regex= soap.rpc.methodname.attachment=postFile wsdl.service.addr.host=http://localhost:80 data.source.lastfile= data.topic.name=mytest ws.invocation.typ=soapconnparms
------=_Part_1_30752603.1062728302189 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: <16E7296D34B3A986F1151F6CF25D3808> <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:postFileResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService"> <ns1:postFileReturn href="#id0"/> </ns1:postFileResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" href="cid:AB7E2435B40B968FE9AAC03AF3D0C949" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://xml.apache.org/xml-soap"/> </soapenv:Body> </soapenv:Envelope>
------=_Part_1_30752603.1062728302189 Content-Type: text/xml Content-Transfer-Encoding: binary Content-Id: <AB7E2435B40B968FE9AAC03AF3D0C949> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <network_file_exchange xsi:schemaLocation="http://simple C:/2/ftppostoffice_1_0/data/ftp.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://simple"> <exchangeSession> <session>49FBCA580793D0C4709650E72C6EEE23</session> <asof>2003-09-04T19:18:21.979-08:00</asof> <endson>2003-09-04T19:18:21.979-08:00</endson> <host> <server>199.174.114.46</server> </host> <client> <username>rowntrob</username> <password>******</password> </client> <items> <fileAssociation> <source> <filename>fff</filename> <sourcedirectory> G:\jakarta-tomcat-5\dist\work\Catalina\localhost\axis </sourcedirectory> <regex>D9AB91D9FFA9ABB.*</regex> <lastfile>2003-09-04T19:18:21.979-08:00</lastfile> </source> <target> <targetdirectory>data</targetdirectory> </target> </fileAssociation> </items> </exchangeSession> </network_file_exchange> ------=_Part_1_30752603.1062728302189--
Verify by going to the following URL and observing files within the list having a name
matching the value of the regex
element in Part 3
above:
bin/b2bpo data.source.sourcedirectory=/data/outbnd data.source.regex=tm11.*
The expression "tm11.*"
, defined in the regex property above, matches 2 files
included as resources in the download. These 2 files will be sent to default subscriber.
-- listing properties -- data.topic.action=publish data.source.sourcedirectory=e:\po_1_2\data/outbnd data.source.filename= rename.session.id.disp.from=0 wsdl.service.addr.port.name=urn:EchoAttachmentsService rename.session.id.disp.to=15 wsdl.service.addr.axis.webapp=axis/services data.source.regex=tm11.* soap.rpc.methodname.attachment=postFile wsdl.service.addr.host=http://localhost:80 data.source.lastfile= data.topic.name=mytest ws.invocation.typ=soapconnparms
------=_Part_1_20092482.1062728486154 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: <E366E05C15C7B2B3D1C81CB8E2AFC366> <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:postFileResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService"> <ns1:postFileReturn href="#id0"/> </ns1:postFileResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" href="cid:AD8D12A8CCC9C12AF0C61BE9A9F15ACF" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://xml.apache.org/xml-soap"/> </soapenv:Body> </soapenv:Envelope>
------=_Part_1_20092482.1062728486154 Content-Type: text/xml Content-Transfer-Encoding: binary Content-Id: <AD8D12A8CCC9C12AF0C61BE9A9F15ACF> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <network_file_exchange xsi:schemaLocation="http://simple C:/2/ftppostoffice_1_0/data/ftp.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://simple"> <exchangeSession> <session>10F295687D1345C3C900464B4686CF8E</session> <asof>2003-09-04T19:21:25.943-08:00</asof> <endson>2003-09-04T19:21:25.943-08:00</endson> <host> <server>199.174.114.46</server> </host> <client> <username>rowntrob</username> <password>******</password> </client> <items> <fileAssociation> <source> <filename>fff</filename> <sourcedirectory> G:\jakarta-tomcat-5\dist\work\Catalina\localhost\axis </sourcedirectory> <regex>ED10D2ADEB02010.*</regex> <lastfile>2003-09-04T19:21:25.943-08:00</lastfile> </source> <target> <targetdirectory>data</targetdirectory> </target> </fileAssociation> </items> </exchangeSession> </network_file_exchange> ------=_Part_1_20092482.1062728486154--
Verify by going to the following URL and observing files within the list having a name
matching the value of the regex
element in Part 3
above:
bin/b2bpo \ data.source.sourcedirectory=/data/outbnd \ data.source.regex=tm11.* \ data.source.lastfile=2001-11-01T15:23:30.609-08:00
The expression "tm11.*" , defined in the regex property above, matches 2 files included as
resources in the download. However, the presence of the lastfile
property
mandates an extra file selection filter that inspects the value of each file's
lastModified
attribute. Since one of the 2 files matching on the regex
property
was modified before 2001-11-01T15:23:30.609-08:00 it is too old. For that
reason, it gets bypassed and as a result, only 1 file is sent to default subscriber.
-- listing properties -- data.topic.action=publish data.source.sourcedirectory=e:\po_1_2\data/outbnd data.source.filename= rename.session.id.disp.from=0 wsdl.service.addr.port.name=urn:EchoAttachmentsService rename.session.id.disp.to=15 wsdl.service.addr.axis.webapp=axis/services data.source.regex=tm11.* soap.rpc.methodname.attachment=postFile wsdl.service.addr.host=http://localhost:80 data.source.lastfile=2001-11-01T15:23:30.609-08:00 data.topic.name=mytest ws.invocation.typ=soapconnparms
------=_Part_1_2545159.1062955328946 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: <3990206B81F992EAB4BF692D2138096D> <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:postFileResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService"> <ns1:postFileReturn href="#id0"/> </ns1:postFileResponse> <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" href="cid:6E694A6450ACC1E64539F645C4B5A4CC" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://xml.apache.org/xml-soap"/> </soapenv:Body> </soapenv:Envelope>
------=_Part_1_2545159.1062955328946 Content-Type: text/xml Content-Transfer-Encoding: binary Content-Id: <6E694A6450ACC1E64539F645C4B5A4CC> <network_file_exchange xsi:schemaLocation="http://simple C:/2/ftppostoffice_1_0/data/ftp.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://simple"> <exchangeSession> <session>B2534E3AF64C909F66230C5B01CEC39A</session> <asof>2003-09-07T10:22:08.736-08:00</asof> <endson>2003-09-07T10:22:08.736-08:00</endson> <host> <server>199.174.114.46</server> </host> <client> <username>rowntrob</username> <password>******</password> </client> <items> <fileAssociation> <source> <filename>fff</filename> <sourcedirectory> G:\jakarta-tomcat-5\dist\work\Catalina\localhost\axis </sourcedirectory> <regex>1A6B60922BA6DF3.*</regex> <lastfile>2003-09-07T10:22:08.736-08:00</lastfile> </source> <target> <targetdirectory>data</targetdirectory> </target> </fileAssociation> </items> </exchangeSession> </network_file_exchange> ------=_Part_1_2545159.1062955328946--
Verify by going to the following URL and observing files within the list having a name
matching the value of the regex
element in Part 3
above: