Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 2941 invoked from network); 10 May 2007 22:33:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 22:33:11 -0000 Received: (qmail 84994 invoked by uid 500); 10 May 2007 22:33:08 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 84975 invoked by uid 500); 10 May 2007 22:33:08 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 84963 invoked by uid 99); 10 May 2007 22:33:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 15:33:08 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of dfeist@gmail.com designates 209.85.134.184 as permitted sender) Received: from [209.85.134.184] (HELO mu-out-0910.google.com) (209.85.134.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 15:33:00 -0700 Received: by mu-out-0910.google.com with SMTP id w9so132415mue for ; Thu, 10 May 2007 15:32:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=E0MzUWgA86vceXAw2OKRGIlnGUiTlp46X0/ZTinWb8L/9ppL/4fuwmL5eAQXHgdircmZVuV1rVQm327N0RFh/NXW6VSFG/q6ycwIRU9tOzL2kvtj2H62S2dZVz0+hObTUYIl3CCiy9xMXCSmyLT4PAWZku6ziLfHmHRHPP1wwro= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XgFzElrAcakp7e4sGXxZ41ZdNagIwJqeSYexxaeqbwILj4I8np3cZbzYbrY3GVs1DRTIRJFMlJS87XIrXVrKERwVlubN3PGrosqd6UsHUNw9ul9KOEk4Yui/hhhUG/T29HSRmJFM10ThQtoZfWlXxEIHZGvs/JMXJ4WcIUYP/Rg= Received: by 10.82.146.14 with SMTP id t14mr4059015bud.1178836358580; Thu, 10 May 2007 15:32:38 -0700 (PDT) Received: by 10.82.175.6 with HTTP; Thu, 10 May 2007 15:32:38 -0700 (PDT) Message-ID: <804a2eb80705101532o1bc4f153yfb053acd77fef068@mail.gmail.com> Date: Thu, 10 May 2007 19:32:38 -0300 From: "Daniel Feist" To: axis-user@ws.apache.org Subject: Re: [Axis2] Web service with no implementation In-Reply-To: <687390.33869.qm@web81608.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_121684_22770322.1178836358513" References: <687390.33869.qm@web81608.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_121684_22770322.1178836358513 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, I was planning to do this programmatically rather than using aar. It looks like i'll need to implement my own dispatcher and receiver. My concern was that the axis2 API would not let me create axis engine/services without serviceClass. Although you are right i can use a dummy service implementation. Looking at synapse I think will give me some clues about how I can do this. thanks On 5/10/07, Shantanu Sen wrote: > > I do not think you can get away without having a serviceClass element in > the services.xml if you want to use an aar for creating the service. > > What you want is possible programmatically, but when axis tries to read > the service info from an aar file it looks for the serviceClass I believe. > > You can set it up with a 'dummy' service class that never gets invoked > since you can overeride RawXMLInoutMessageReceiver and do whatever you want > with the raw message. > > Shantanu > > ----- Original Message ---- > From: Daniel Feist > To: axis-user@ws.apache.org > Sent: Tuesday, May 8, 2007 7:19:21 AM > Subject: Re: [Axis2] Web service with no implementation > > I don't mind the sales pitch, just i was ideally looking for a lightweight > solution using axis2 as a transport for esb with the option of using and > passing on raw xml rather than binding and invoking. > > I am planning to use mule, but i don't quite see what axis2/synapse/mule > would give me over and above axis2/mule apart from more config files and > more dependencies, yet neither have i looked into synapse much. > > If there any doc or information or wiki page on using axis2/synapse/mule? > Is the book on using Synapse and Mule available yet? > > I saw the RawXMLInOutMessageReceiver receiver, I can try this out.. i was > just wondering before going down that path it is was possible to configure > and start up an axis engine with null service implementation? In other web > services stacks the definition of service implementation is integral and not > optional which would be a problem for the approach i want to take. > > > thanks > > > > On 5/8/07, Paul Fremantle wrote: > > > > Sorry I wasn't very clear!!! > > > > > Take a look at the RawXMLInOutMessageReceiver. > > > > This is an Axis2 MessageReceiver that can give you the body of the > > message as an XML. > > > > Paul > > > > > > > > But even if you are looking at using another ESB, it might still be > > > useful to use Synapse. > > > > > > Here's my sales pitch: > > > > > > 1) Its really not that big. Its a 20Mb download but the core Synapse > > > code is about 300k over and above Axis2. > > > 2) You might end up using some of the features later. > > > 3) We have tested our code a lot, so we're pretty sure that its going > > > to work well in your case. > > > 4) One of our committers is writing a book on using Synapse and Mule. > > > So you wouldn't be alone in using Synapse as a way of adding really > > > top rate XML and WS handling to your existing ESBs. > > > > > > Paul > > > > > > On 5/8/07, Daniel Feist wrote: > > > > I will have a look at synapse... > > > > > > > > If i was starting from scratch it seems that would be the best > > option but as > > > > I am planning to integrate with an esb solution I am already use > > that > > > > provide message routing, transformation etc. I think the best option > > would > > > > be to extend axis to achieve what I need rather than using synapse > > which has > > > > functionality that i already have in my esb. > > > > > > > > I need to use axis as a SOAP stack that receives SOAP messages, > > processes > > > > them using phases/pipelines and then spits out the xml message > > payload > > > > rather than binding to java objects and invoking a service that has > > been > > > > configured. > > > > > > > > How would I go about doing this with axis2, using axis > > programaticaly if > > > > needed? > > > > > > > > - What the implementation of a custom Reciever allow me to output > > xml rather > > > > than bind and invoke? > > > > - Is it possible to configure axis engine that works without > > configuring a > > > > server implementation? > > > > - Can i specifiy wsdl instead of generating from service > > interface/class (i > > > > wouldn't have a service interface/class) > > > > - Any others things I should take into account? > > > > > > > > thanks, > > > > Dan > > > > > > > > > > > > On 5/8/07, Paul Fremantle wrote: > > > > > > > > > > Dan > > > > > > > > > > As Chathura also said, Synapse basically does what you want - > > > > > out-of-the-box. We already have built and tested samples where we > > do: > > > > > > > > > > XML/JMS->SOAP mapping > > > > > and SOAP/WSRM->XML/JMS > > > > > > > > > > We have also done plain-text/JMS -> XML/SOAP. > > > > > > > > > > Synapse is simply configured using an XML config file. If you send > > me > > > > > an example message or two I can help you create the config to test > > it. > > > > > > > > > > Paul > > > > > > > > > > On 5/8/07, Daniel Feist < dfeist@gmail.com> wrote: > > > > > > Hi, > > > > > > > > > > > > I am attempting to implement a web-services using a web service > > stack > > > > such > > > > > > as axis in order to export functionality through a web service > > defined > > > > by > > > > > > wsdl but with a twist...I want to integrate this into a message > > based > > > > esb > > > > > > type architecture. > > > > > > > > > > > > What i want to do is the following: > > > > > > 1) WSDL first development > > > > > > 2) Http transport > > > > > > 3) Phase/handlers as normal > > > > > > 4) BUT receiver does not invoke a service but rather forwards > > message > > > > (SOAP > > > > > > payload, as defined in WSDL) to a message broker ( e.g. JMS > > queue) where > > > > it > > > > > > will be routed to the service implementation. > > > > > > > > > > > > I don't want to attempt to do this with axis1, and at having > > quickly > > > > looking > > > > > > at other web service stacks it doesn't look particularly > > easy. I was > > > > > > wondering if with the new more open, message based architecture > > of axis2 > > > > > > this could be implemented, even if it means using axis2 > > programatically > > > > > > instead of via config file and where I should start looking...? > > > > > > > > > > > > thanks, > > > > > > Dan > > > > > > > > > > > > > > > > > > > > > -- > > > > > Paul Fremantle > > > > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair > > > > > > > > > > http://bloglines.com/blog/paulfremantle > > > > > paul@wso2.com > > > > > > > > > > "Oxygenating the Web Service Platform", www.wso2.com > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > > axis-user-unsubscribe@ws.apache.org > > > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Paul Fremantle > > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair > > > > > > http://bloglines.com/blog/paulfremantle > > > paul@wso2.com > > > > > > "Oxygenating the Web Service Platform", www.wso2.com > > > > > > > > > -- > > Paul Fremantle > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair > > > > http://bloglines.com/blog/paulfremantle > > paul@wso2.com > > > > "Oxygenating the Web Service Platform", www.wso2.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > ------=_Part_121684_22770322.1178836358513 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, I was planning to do this programmatically rather than using aar.  It looks like i'll need to implement my own dispatcher and receiver.

My concern was that the axis2 API would not let me create axis engine/services without serviceClass.  Although you are right i can use a dummy service implementation.  Looking at synapse I think will give me some clues about how I can do this.

thanks

On 5/10/07, Shantanu Sen <ssen@pacbell.net> wrote:
I do not think you can get away without having a serviceClass element in the services.xml if you want to use an aar for creating the service.

What you want is possible programmatically, but when axis tries to read the service info from an aar file it looks for the serviceClass I believe.

You can set it up with a 'dummy' service class that never gets invoked since you can overeride RawXMLInoutMessageReceiver and do whatever you want with the raw message.

Shantanu


----- Original Message ----
From: Daniel Feist < dfeist@gmail.com>
To: axis-user@ws.apache.org
Sent: Tuesday, May 8, 2007 7:19:21 AM
Subject: Re: [Axis2] Web service with no implementation

I don't mind the sales pitch, just i was ideally looking for a lightweight solution using axis2 as a transport for esb with the option of using and passing on raw xml rather than binding and invoking.

I am planning to use mule, but i don't quite see what axis2/synapse/mule would give me over and above axis2/mule apart from more config files and more dependencies, yet neither have i looked into synapse much.

If there any doc or information or wiki page on using axis2/synapse/mule?  Is the book on using Synapse and Mule available yet?

I saw the RawXMLInOutMessageReceiver receiver, I can try this out.. i was just wondering before going down that path it is was possible to configure and start up an axis engine with null service implementation? In other web services stacks the definition of service implementation is integral and not optional which would be a problem for the approach i want to take.


thanks



On 5/8/07, Paul Fremantle < pzfreo@gmail.com> wrote:
Sorry I wasn't very clear!!!

> Take a look at the RawXMLInOutMessageReceiver.

This is an Axis2 MessageReceiver that can give you the body of the
message as an XML.

Paul

>
> But even if you are looking at using another ESB, it might still be
> useful to use Synapse.
>
> Here's my sales pitch:
>
> 1) Its really not that big. Its a 20Mb download but the core Synapse
> code is about 300k over and above Axis2.
> 2) You might end up using some of the features later.
> 3) We have tested our code a lot, so we're pretty sure that its going
> to work well in your case.
> 4) One of our committers is writing a book on using Synapse and Mule.
> So you wouldn't be alone in using Synapse as a way of adding really
> top rate XML and WS handling to your existing ESBs.
>
> Paul
>
> On 5/8/07, Daniel Feist < dfeist@gmail.com> wrote:
> > I will have a look at synapse...
> >
> > If i was starting from scratch it seems that would be the best option but as
> > I am planning to integrate with an esb solution I am already use that
> > provide message routing, transformation etc. I think the best option would
> > be to extend axis to achieve what I need rather than using synapse which has
> > functionality that i already have in my esb.
> >
> > I need to use axis as a SOAP stack that receives SOAP messages, processes
> > them using phases/pipelines and then spits out the xml message payload
> > rather than binding to java objects and invoking a service that has been
> > configured.
> >
> > How would I go about doing this with axis2, using axis programaticaly if
> > needed?
> >
> > - What the implementation of a custom Reciever allow me to output xml rather
> > than bind and invoke?
> > - Is it possible to configure axis engine that works without configuring a
> > server implementation?
> > - Can i specifiy wsdl instead of generating from service interface/class (i
> > wouldn't have a service interface/class)
> > - Any others things I should take into account?
> >
> > thanks,
> > Dan
> >
> >
> >  On 5/8/07, Paul Fremantle < pzfreo@gmail.com> wrote:
> > >
> > > Dan
> > >
> > > As Chathura also said, Synapse basically does what you want -
> > > out-of-the-box. We already have built and tested samples where we do:
> > >
> > > XML/JMS->SOAP mapping
> > > and SOAP/WSRM->XML/JMS
> > >
> > > We have also done plain-text/JMS -> XML/SOAP.
> > >
> > > Synapse is simply configured using an XML config file. If you send me
> > > an example message or two I can help you create the config to test it.
> > >
> > > Paul
> > >
> > > On 5/8/07, Daniel Feist < dfeist@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > I am attempting to implement a web-services using a web service stack
> > such
> > > > as axis in order to export functionality through a web service defined
> > by
> > > > wsdl but with a twist...I want to integrate this into a message based
> > esb
> > > > type architecture.
> > > >
> > > > What i want to do is the following:
> > > > 1) WSDL first development
> > > > 2) Http transport
> > > > 3) Phase/handlers as normal
> > > > 4) BUT receiver does not invoke a service but rather forwards message
> > (SOAP
> > > > payload, as defined in WSDL) to a message broker ( e.g. JMS queue) where
> > it
> > > > will be routed to the service implementation.
> > > >
> > > > I don't want to attempt to do this with axis1, and at having quickly
> > looking
> > > > at other web service stacks it doesn't look particularly easy.  I was
> > > > wondering if with the new more open, message based architecture of axis2
> > > > this could be implemented, even if it means using axis2 programatically
> > > > instead of via config file and where I should start looking...?
> > > >
> > > > thanks,
> > > > Dan
> > > >
> > >
> > >
> > > --
> > > Paul Fremantle
> > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >
> > > http://bloglines.com/blog/paulfremantle
> > > paul@wso2.com
> > >
> > > "Oxygenating the Web Service Platform", www.wso2.com
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
>
>
> --
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
>
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




------=_Part_121684_22770322.1178836358513--