jruby and SOAP

View: New views
10 Messages — Rating Filter:   Alert me  

jruby and SOAP

by Marco Dohnke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

after trying one day to get jruby working with axis or actionwebservice,
I asked myself if I am the only who is trying to work with this
combination. Does anyone use SOAP web services with jruby (on Rails) ?
Which environment is usual for this?

thanks so far,
MD

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by Bob McWhirter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

TorqueBox is building soap support (at least serverside so far) on  
Apache CXF. We will address soap clients in a little while.

Bob

--
Sent from my iPhone


On Jun 26, 2009, at 11:37 AM, Marco Dohnke <dohnke@...> wrote:

> Hello all,
>
> after trying one day to get jruby working with axis or  
> actionwebservice, I asked myself if I am the only who is trying to  
> work with this combination. Does anyone use SOAP web services with  
> jruby (on Rails) ?
> Which environment is usual for this?
>
> thanks so far,
> MD
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by sshingler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have had successes with JRuby and SOAP by using the Mule ESB client library - My write-up of that is part of the Enterprise Java chapter of the JRuby Cookbook, pub O'Reilly.
HTH
Steven

On Fri, Jun 26, 2009 at 5:19 PM, Bob McWhirter <bob@...> wrote:
TorqueBox is building soap support (at least serverside so far) on Apache CXF. We will address soap clients in a little while.

Bob

--
Sent from my iPhone



On Jun 26, 2009, at 11:37 AM, Marco Dohnke <dohnke@...> wrote:

Hello all,

after trying one day to get jruby working with axis or actionwebservice, I asked myself if I am the only who is trying to work with this combination. Does anyone use SOAP web services with jruby (on Rails) ?
Which environment is usual for this?

thanks so far,
MD

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email





--
Steven Shingler
http://twitter.com/sshingler

Re: jruby and SOAP

by Marco Dohnke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

thanks for your answers. TorqueBox is unfortunately not a solution for
me because I am using glassfish, not JBoss. But I will keep that in mind.

Regrettably, I do not have the Jruby Cookbook, so I cannot test the mule
examples. Google books shows only a little part of this chapter. This
part does not help me.

At the moment I am trying something with Metro which is included in
glassfish. Maybe I am able to build a bridge between Java (Annotations)
and jruby.

If anyone else has an idea, please do not hesitate to tell me.

Thanks so far.
MD

steven shingler schrieb:

> I have had successes with JRuby and SOAP by using the Mule ESB client
> library - My write-up of that is part of the Enterprise Java chapter
> of the JRuby Cookbook, pub O'Reilly.
> HTH
> Steven
>
> On Fri, Jun 26, 2009 at 5:19 PM, Bob McWhirter <bob@...
> <mailto:bob@...>> wrote:
>
>     TorqueBox is building soap support (at least serverside so far) on
>     Apache CXF. We will address soap clients in a little while.
>
>     Bob
>
>     --
>     Sent from my iPhone
>
>
>
>     On Jun 26, 2009, at 11:37 AM, Marco Dohnke <dohnke@...
>     <mailto:dohnke@...>> wrote:
>
>         Hello all,
>
>         after trying one day to get jruby working with axis or
>         actionwebservice, I asked myself if I am the only who is
>         trying to work with this combination. Does anyone use SOAP web
>         services with jruby (on Rails) ?
>         Which environment is usual for this?
>
>         thanks so far,
>         MD
>
>         ---------------------------------------------------------------------
>         To unsubscribe from this list, please visit:
>
>          http://xircles.codehaus.org/manage_email
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe from this list, please visit:
>
>       http://xircles.codehaus.org/manage_email
>
>
>
>
>
> --
> Steven Shingler
> http://twitter.com/sshingler

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by Peter Ehrenberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/6/26 Marco Dohnke <dohnke@...>:

> after trying one day to get jruby working with axis or actionwebservice, I
> asked myself if I am the only who is trying to work with this combination.
> Does anyone use SOAP web services with jruby (on Rails) ?
> Which environment is usual for this?

Creating a soap client from wsdl file using axis2 wsdl2java works without
much hassle.

/Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by Chiaming Hsu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


For SOAP clients, we have been using Ruby SOAP on JRuby without any problem.  Ruby SOAP is a lot simpler to use compared to any Java variants.  This is an example call in just a few lines:

require 'net/http'
require 'soap/wsdlDriver'

rpc_soap_client = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
response = rpc_soap_client.search request_parameters


The original question seems to be about server-side, though, which we still use pure Java, not JRuby.

Cheers,
Chiaming Hsu




----- Original Message ----
From: Peter Ehrenberg <pe@...>
To: user@...
Sent: Wednesday, July 1, 2009 10:05:39 AM
Subject: Re: [jruby-user] jruby and SOAP

2009/6/26 Marco Dohnke <dohnke@...>:

> after trying one day to get jruby working with axis or actionwebservice, I
> asked myself if I am the only who is trying to work with this combination.
> Does anyone use SOAP web services with jruby (on Rails) ?
> Which environment is usual for this?

Creating a soap client from wsdl file using axis2 wsdl2java works without
much hassle.

/Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by Marco Dohnke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your little example. My problem lies more on the server side.
Consuming SOAP Services is possible with the ideas you gave me.
Providing services has often a bigger context. Either I have to use an
application server or another kind of server which is publishing the
services. In my context I have to use something to interact with Java.
So an application server is the best choice.

Thanks for your ideas!

Chiaming Hsu schrieb:

> For SOAP clients, we have been using Ruby SOAP on JRuby without any problem.  Ruby SOAP is a lot simpler to use compared to any Java variants.  This is an example call in just a few lines:
>
> require 'net/http'
> require 'soap/wsdlDriver'
>
> rpc_soap_client = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
> response = rpc_soap_client.search request_parameters
>
>
> The original question seems to be about server-side, though, which we still use pure Java, not JRuby.
>
> Cheers,
> Chiaming Hsu
>
>
>
>
> ----- Original Message ----
> From: Peter Ehrenberg <pe@...>
> To: user@...
> Sent: Wednesday, July 1, 2009 10:05:39 AM
> Subject: Re: [jruby-user] jruby and SOAP
>
> 2009/6/26 Marco Dohnke <dohnke@...>:
>
>  
>> after trying one day to get jruby working with axis or actionwebservice, I
>> asked myself if I am the only who is trying to work with this combination.
>> Does anyone use SOAP web services with jruby (on Rails) ?
>> Which environment is usual for this?
>>    
>
> Creating a soap client from wsdl file using axis2 wsdl2java works without
> much hassle.
>
> /Peter
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>  

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by timuckun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 8, 2009 at 6:22 PM, Marco Dohnke<dohnke@...> wrote:
> Thanks for your little example. My problem lies more on the server side.
> Consuming SOAP Services is possible with the ideas you gave me. Providing
> services has often a bigger context. Either I have to use an application
> server or another kind of server which is publishing the services. In my
> context I have to use something to interact with Java. So an application
> server is the best choice.


I am using actionwebservice to provide SOAP services to my clients.
It works OK but it's limited and it might work with Jruby.

However my clients are increasing demanding more "enterprisey"
functionality like wssec FIPS compliant encryption etc.    Also
actionwebservice does not allow for optional fields (one fork of it
does but I can't seem to get that fork to work with rails 2.3 and my
plugins).

I too would appreciate any points, hints, caviats, code snippets,
anything at all.

I want to be able to provide a robust set of SOAP services to along
with my rails apps and actionwebservice is falling a little short due
to neglect.

I would be willing to move my SOAP services to another rails app
running on jruby if I could do this.

P.S.

I am pretty sure I will be required to use the pgp commercial
libraries which are written in C for the encryption and decryption so
that might also provide a hurdle.

Thanks in advance for any help anybody could provide me.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by Bob McWhirter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have a look at how TorqueBox allows you to provide SOAP services from  
within your application:

        http://torquebox.org/documentation/browse/1.0.0.Beta13/soap-endpoints.html

We support WS-Security to some extent (more as use-cases and users  
demand), including X.509 signature verification.  We also help  
databind your WSDL to friendly ruby objects so they're easy to play  
with, and the services themselves appear not unlike Rails controllers  
with each soap operation mapping to a method on your class.

        -Bob


On Jul 8, 2009, at 8:47 PM, Tim Uckun wrote:

> On Wed, Jul 8, 2009 at 6:22 PM, Marco Dohnke<dohnke@...> wrote:
>> Thanks for your little example. My problem lies more on the server  
>> side.
>> Consuming SOAP Services is possible with the ideas you gave me.  
>> Providing
>> services has often a bigger context. Either I have to use an  
>> application
>> server or another kind of server which is publishing the services.  
>> In my
>> context I have to use something to interact with Java. So an  
>> application
>> server is the best choice.
>
>
> I am using actionwebservice to provide SOAP services to my clients.
> It works OK but it's limited and it might work with Jruby.
>
> However my clients are increasing demanding more "enterprisey"
> functionality like wssec FIPS compliant encryption etc.    Also
> actionwebservice does not allow for optional fields (one fork of it
> does but I can't seem to get that fork to work with rails 2.3 and my
> plugins).
>
> I too would appreciate any points, hints, caviats, code snippets,
> anything at all.
>
> I want to be able to provide a robust set of SOAP services to along
> with my rails apps and actionwebservice is falling a little short due
> to neglect.
>
> I would be willing to move my SOAP services to another rails app
> running on jruby if I could do this.
>
> P.S.
>
> I am pretty sure I will be required to use the pgp commercial
> libraries which are written in C for the encryption and decryption so
> that might also provide a hurdle.
>
> Thanks in advance for any help anybody could provide me.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: jruby and SOAP

by timuckun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 9, 2009 at 3:11 PM, Bob McWhirter<bob@...> wrote:

> Have a look at how TorqueBox allows you to provide SOAP services from within
> your application:
>
>
>  http://torquebox.org/documentation/browse/1.0.0.Beta13/soap-endpoints.html
>
> We support WS-Security to some extent (more as use-cases and users demand),
> including X.509 signature verification.  We also help databind your WSDL to
> friendly ruby objects so they're easy to play with, and the services
> themselves appear not unlike Rails controllers with each soap operation
> mapping to a method on your class.
>

I did look at it. It certainly looks like it could be very useful.  I
noticed that the documentation says outgoing encryption is not
supported and that's something I will need to do for sure.

I have also been looking at wso2 http://wso2.org/.

In either case I haven't figured out how I could use the pgp C library yet.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email