Commits

Anonymous committed c379325

fixed minor issues

  • Participants
  • Parent commits 12c682f
  • Branches 2.2

Comments (0)

Files changed (4)

File resources/samples/conf/ultra-sample-350.xml

     "*.edi" every 2 seconds, and sends them over the AS2 transport to a URL http://localhost:8080/as2/HttpReceiver
 
     The files sent successfully are moved to the directory /tmp/AS2/sent and those that fail are moved to
-    /tmp/AS2/senderror with a timestamp attached in the specified format of the 'ultra.file.move_timestamp_format' property-->
+    /tmp/AS2/senderror with a timestamp attached in the specified format of the 'ultra.file.move_timestamp_format' property
+
+    In-order to setup a local station at http://localhost:8080/as2/HttpReceiver, you can use an AS2 communication software
+    product such as "mendelson AS2".
+    For more information, please refer http://docs.adroitlogic.org/display/esb/Setting+up+a+Sample+AS2+Trading+Partner
+    -->
     <u:proxy id="file-poller">
         <u:transport id="file-rcv">
             <u:property name="ultra.transport.url" value="file:///tmp/AS2/tosend"/>
                     partner.setRequestSignedMDN(true);
                     partner.setSignatureInfo(new org.adroitlogic.as2.api.SignatureInfo(org.adroitlogic.as2.api.SignatureInfo.DigestAlgorithm.SHA256, null));
                     partner.setEncryptionInfo(org.adroitlogic.as2.api.EncryptionInfo.DISABLED);
-                    partner.setUrl("http://localhost:8081/rssbus/as2connector/pub/ReceiveFile.rsb");
-                    //partner.setRequestAsyncMDN(true);
-                    //partner.setAsyncReceiptURL("http://localhost:8280/service/AS2Receiver");
+                    partner.setUrl("http://localhost:8080/as2/HttpReceiver");
+                    partner.setRequestAsyncMDN(true);
+                    partner.setAsyncReceiptURL("http://localhost:8280/service/AS2AsyncMDNReceiver");
 
                     mediation.getAS2Manager().prepareAS2MessageForSend(msg, partner);
                 ]]></u:java>

File resources/samples/conf/ultra-sample-351.xml

                     Smooks smooks = new Smooks("samples/resources/smooks-config.xml");
                     try {
                         ExecutionContext executionContext = smooks.createExecutionContext();
-                        DOMResult domResult = new DOMResult();
+                        org.milyn.payload.StringResult result = new org.milyn.payload.StringResult();
 
                         // Filter the input message to the outputWriter, using the execution context...
                         smooks.filterSource(executionContext,
-                            new StreamSource(msg.getCurrentPayload().getInputStream()), domResult);
+                            new StreamSource(msg.getCurrentPayload().getInputStream()), result);
 
-                        Node node = domResult.getNode();
-                        if (node instanceof Document) {
-                            msg.setCurrentPayload(new org.adroitlogic.ultraesb.core.format.DOMMessage((Document) node));
-                        } else {
-                            msg.setCurrentPayload(new org.adroitlogic.ultraesb.core.format.StringMessage(node.getTextContent()));
-                        }
+                        msg.setCurrentPayload(new org.adroitlogic.ultraesb.core.format.StringMessage(result.getResult()));
                     } finally {
                         smooks.close();
                     }

File resources/samples/conf/ultra-sample-504.xml

         </property>
     </bean>
 
-    <!--A POP3 mail proxy service that checks an email account, prints the subject and body to the logger and
+    <!--An IMAP mail proxy service that checks an email account, prints the subject and body to the logger and
     saves attachments into the file system -->
     <u:proxy id="mail-proxy">
         <u:transport id="mail">

File resources/samples/conf/ultra-sample-505.xml

         </property>
     </bean>
 
-    <!--A POP3 mail proxy service that checks an email account, prints the subject and body to the logger and
-    saves attachments into the file system -->
+    <!--A POP3 mail proxy service that checks an email account, and if new mails are present,
+    those mails will be fetched and forwarded to SimpleStockQuoteService. The response from
+    the SimpleStockQuoteService will be emailed back to the original email sender
+    For more information, please refer http://docs.adroitlogic.org/display/esb/Invoking+a+Web+Service+via+Email
+    -->
     <u:proxy id="demo-proxy">
         <u:transport id="mail-listener">
             <u:property name="ultra.transport.url" value="mail.maildemo.demo@gmail.com"/>