# SOAP and WSDL?

**URL:** <https://www.ruby-forum.com/t/soap-and-wsdl/97322>\
**Category:** Ruby\
**Created:** [July 6, 2006, 11:45am UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322 "2006-07-06T11:45:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9bcb4/32.png) [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Post date:** [July 6, 2006, 11:45am UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322/1 "2006-07-06T11:45:40Z")

</div>

Hi,  
is there a RUBY library which will automatically generate a WSDL file  
for a SOAP service?

Thanks.  
Dan.

---

<div class="post-metadata">

**Author:** ![fishman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9bcb4/32.png) [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Post date:** [July 6, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322/2 "2006-07-06T14:14:23Z")

</div>

On 7/6/06, fish man [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> is there a RUBY library which will automatically generate a WSDL file  
> for a SOAP service?

[http://www.google.ca/search?q=Ruby+SOAP+WSDL+-sam](http://www.google.ca/search?q=Ruby+SOAP+WSDL+-sam)

(The last search term is because the first gives you stuff about Sam  
Ruby.)

-austin

---

<div class="post-metadata">

**Author:** ![fishman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9bcb4/32.png) [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Post date:** [July 6, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322/3 "2006-07-06T16:01:30Z")

</div>

It’s built into Rails.

jp

fish man wrote:

> Hi,  
> is there a RUBY library which will automatically generate a WSDL file  
> for a SOAP service?
> 
> Thanks.  
> Dan.

---

<div class="post-metadata">

**Author:** ![fishman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9bcb4/32.png) [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Post date:** [July 6, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322/4 "2006-07-06T20:16:13Z")

</div>

On 7/6/06, Jeff P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It’s built into Rails.

Which won’t help if the OP isn’t using Rails.

Ruby is much more than Rails.

-austin

---

<div class="post-metadata">

**Author:** ![fishman2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e9bcb4/32.png) [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Post date:** [July 13, 2006, 12:58pm UTC](https://www.ruby-forum.com/t/soap-and-wsdl/97322/5 "2006-07-13T12:58:27Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi,

Austin Z. wrote:

> On 7/6/06, Jeff P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > It’s built into Rails.
> 
> Which won’t help if the OP isn’t using Rails.
> 
> Ruby is much more than Rails.

I agree but as far as I know ActionWebServices is the only solution for  
generating WSDL from Ruby. We can’t know expected class (or duck type)  
from static method definition so annotation or something is needed. I  
don’t know Rails and ActionWebServices well but it must use annotation  
like method.

I hope bare Ruby have annotation. Expecting;

1. SOAP4R can see Web service annotations.
2. [important] Applications who doesn’t know anything about that  
annotation can only ignore it.

Both following A and B breaks 2.

require ‘soap/annotations’  
class Servant  
include WebService # A  
def service(foo, bar)  
…  
end  
web\_service :service, … # B  
end

Regards,  
// NaHi  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRLYnGR9L2jg5EEGlAQKUtQgAnYmmAzqfD3nkfAKvn2imLXMaYFm+AXxA  
mi9owUSNNWFSaIqHyv7Q2DcaFxvtWhaUhTmKVSFCSCHw9CAXgr0OyPn53iB9cUVE  
jBUH9IIRIEMz+FaDJ4JAo5ExXbiAjUiq1yXcUzyWPfzdgl09cdzaqHeUegLXMagy  
4sqQrkfj7/lvHdUq6oBAzuTgXegGiqNNbEHzYXwUU6X6ZWtbIJ3QnSMEuI76N3zm  
eqMEorPx1CGYGYJ8QJBWt83ZSr1fk8DwkL4bzPIzSKRFEOfmwznC0bKEemHQYeCV  
9EdK7VUJ42TzTioOR/YQ6guZICNxIeuBaYJXrtteuYTBhwLtaPGPVA==  
=ALlv  
-----END PGP SIGNATURE-----
