Return-Path: X-Original-To: apmail-synapse-dev-archive@www.apache.org Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE82810C96 for ; Sun, 18 Aug 2013 13:59:18 +0000 (UTC) Received: (qmail 83430 invoked by uid 500); 18 Aug 2013 13:59:17 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 83372 invoked by uid 500); 18 Aug 2013 13:59:17 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 83363 invoked by uid 99); 18 Aug 2013 13:59:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 13:59:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of isudana@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 13:59:10 +0000 Received: by mail-wg0-f51.google.com with SMTP id a12so2777855wgh.30 for ; Sun, 18 Aug 2013 06:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=OMJbWFYKqlQX9CiygABgvfAy7GU9VrT59RvLhRiOdwg=; b=EPZ07MlfBJW+i/LMJP4R4WhgOVZYcs/11POMe+UFAwDwxeg09Q5qEzoHzHOO23Ctg5 9HQbWlUG/wjwooMDVdRTPrCr7cbQSGSsO3BX4u723hKfjIvgrQS1/znRBFS3F/5qDn4l rbrxj6I6sc6i9qTK00+bd8cna7FjcUyzYS9vqMVfTbcz4sQI2uzOj/8XFMtf4MkoPOP4 N0UoCjXpdjUWEi79Rpq680nyYhdT6jdQQvbiA2FxsU3WYfO2RQdT/SLozfBWOR5nvtU7 F+ley5RqzebIESgB4sb/pKl3Q/lJoYa0QWqFaOQFNa1PnhXpMm8BGo6Iqw3JeeWIrpFg MzSA== X-Received: by 10.194.174.36 with SMTP id bp4mr4896812wjc.7.1376834329768; Sun, 18 Aug 2013 06:58:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.119.200 with HTTP; Sun, 18 Aug 2013 06:58:29 -0700 (PDT) From: Isuru Udana Date: Sun, 18 Aug 2013 19:28:29 +0530 Message-ID: Subject: New Blocking Sender implementation To: dev@synapse.apache.org Content-Type: multipart/alternative; boundary=089e0141a0ae23fa5604e439392c X-Virus-Checked: Checked by ClamAV on apache.org --089e0141a0ae23fa5604e439392c Content-Type: text/plain; charset=ISO-8859-1 Hi All, Currently we have following two main places we use a blocking client to invoke services. 1. Callout Mediator 2. Forwarding Message Processor Both these components use the axis2 service client to invoke services in a blocking manner. Since the implementation is very simple, provided functionality is very limited. Currently we have following major limitations. * Supports only SOAP * Message format conversion is not supported * QOS functionality (WS-Security, etc.) are not supported * Cannot specify an endpoint as the service endpoint reference (In message processors we can specify an Address endpoint. But none of the other endpoint types and other endpoint functionality is supported) I have implemented a new blocking client which can be used as a common blocking sender for both above components. This new implementation will provide the following functionality. * Support all leaf endpoint types * Support for REST * Support Endpoint functionality. - Endpoint format conversions (soap11,soap12,pox, etc.) - WS-Security, WS-A - Endpoint Timeout (nhttp transport specific functionality is not supported) * message format conversions (ability to use messageType/ContentType properties) I have attached this implementation as patch to SYNAPSE-966 [1]. I have also attached a patch[2] to migrate the Callout mediator to this implementation. A sample with documentation and an integration test is also attached at [3]. If others interested, I can provide patches to migrate Message processor to this implementation and more samples. [1] https://issues.apache.org/jira/browse/SYNAPSE-966 [2] https://issues.apache.org/jira/browse/SYNAPSE-967 [3] https://issues.apache.org/jira/browse/SYNAPSE-968 Thanks. Isuru -- *Isuru Udana* * * * Senior ** Software Engineer; WSO2 Inc.; http://wso2.com email: isudana@gmail.com blog: http://mytecheye.blogspot.com/ twitter: http://twitter.com/isudana * --089e0141a0ae23fa5604e439392c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi All,

Currently we h= ave following two main places we use a blocking client to invoke services.= =A0
1. Callout Mediator=A0
2. Forwarding Message Proces= sor=A0

Both these components use the axis2 service client to i= nvoke services in a blocking manner.=A0
Since the implementation = is very simple, provided functionality is very limited.=A0

Currently we have following major limitations.=A0

=
* Supports only SOAP=A0
* Message format conversion is not s= upported=A0
* QOS functionality (WS-Security, etc.) are not suppo= rted=A0
* Cannot specify an endpoint as the service endpoint reference (In mes= sage processors we can specify an Address endpoint. But none of the other e= ndpoint types and other endpoint functionality is supported)=A0

I have implemented a new blocking client which can be used a= s a common blocking sender for both above components.=A0
This new= implementation will provide the following functionality.=A0

* Support all leaf endpoint types=A0
* Support for RES= T=A0
* Support Endpoint functionality.=A0
=A0 =A0 =A0 -= Endpoint format conversions (soap11,soap12,pox, etc.)=A0
=A0 =A0= =A0 - WS-Security, WS-A=A0
=A0 =A0 =A0 - Endpoint Timeout (nhttp transport specific functionality= is not supported)=A0
* message format conversions (ability to us= e messageType/ContentType properties)=A0

I have at= tached this implementation as patch to SYNAPSE-966 [1].
I have also attached a patch[2] to migrate the Callout mediator to thi= s implementation.
A sample with documentation and an integration = test is also attached at [3].

If others interested= , I can provide patches to migrate Message processor to this=A0implementati= on=A0and more samples.

--089e0141a0ae23fa5604e439392c--