Author: ruwan Date: Sun May 24 21:19:06 2009 New Revision: 36677 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=36677
Log: sample 256 changes from the synapse trunk Modified: trunk/esb/java/docs/xdoc/samples/transport_samples.xml trunk/esb/java/modules/samples/src/main/conf/synapse/synapse_sample_256.xml Modified: trunk/esb/java/docs/xdoc/samples/transport_samples.xml URL: http://wso2.org/svn/browse/wso2/trunk/esb/java/docs/xdoc/samples/transport_samples.xml?rev=36677&r1=36676&r2=36677&view=diff ============================================================================== --- trunk/esb/java/docs/xdoc/samples/transport_samples.xml (original) +++ trunk/esb/java/docs/xdoc/samples/transport_samples.xml Sun May 24 21:19:06 2009 @@ -570,6 +570,7 @@ <parameter name="mail.pop3.socketFactory.class">javax.net.ssl.SSLSocketFactory</parameter> <parameter name="mail.pop3.socketFactory.fallback">false</parameter> <parameter name="mail.pop3.socketFactory.port">995</parameter> + <parameter name="transport.mail.ContentType">application/xml</parameter> <target> <inSequence> @@ -619,6 +620,14 @@ <p>After a few seconds (e.g. 30s), you should receive a POX response in your email account with the stock quote reply. </p> +<p>Note that in this sample we used the <tt>transport.mail.ContentType</tt> property to make sure +that the transport parses the request message as POX. If you remove this property, you may still +be able to send requests using a standard mail client if instead of writing the XML in the body of +the message, you add it as an attachment. In that case, you should use <tt>.xml</tt> as a suffix +for the attachment and format the request as a SOAP 1.1 message. Indeed, for a file with suffix +<tt>.xml</tt> the mail client will most likely use <tt>text/xml</tt> as the content type, exactly +as required for SOAP 1.1. Sending a POX message using this approach will be a lot trickier, +because most standard mail clients don't allow the user to explicitly set the content type.</p> <h2> <a name="Sample257">Sample 257: Proxy services with the Modified: trunk/esb/java/modules/samples/src/main/conf/synapse/synapse_sample_256.xml URL: http://wso2.org/svn/browse/wso2/trunk/esb/java/modules/samples/src/main/conf/synapse/synapse_sample_256.xml?rev=36677&r1=36676&r2=36677&view=diff ============================================================================== --- trunk/esb/java/modules/samples/src/main/conf/synapse/synapse_sample_256.xml (original) +++ trunk/esb/java/modules/samples/src/main/conf/synapse/synapse_sample_256.xml Sun May 24 21:19:06 2009 @@ -31,6 +31,7 @@ <parameter name="mail.pop3.socketFactory.class">javax.net.ssl.SSLSocketFactory</parameter> <parameter name="mail.pop3.socketFactory.fallback">false</parameter> <parameter name="mail.pop3.socketFactory.port">995</parameter> + <parameter name="transport.mail.ContentType">application/xml</parameter> <target> <inSequence> _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
