# Trouble with WSDL

**URL:** <https://www.ruby-forum.com/t/trouble-with-wsdl/87407>\
**Category:** Ruby\
**Created:** [January 2, 2006, 6:29pm UTC](https://www.ruby-forum.com/t/trouble-with-wsdl/87407 "2006-01-02T18:29:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 2, 2006, 6:29pm UTC](https://www.ruby-forum.com/t/trouble-with-wsdl/87407/1 "2006-01-02T18:29:50Z")

</div>

I’m having some trouble getting the WSDLDriverFactory to create a  
driver for an Apache Axis generated wsdl. Whenever I attempt to  
connect this is the error I get:

/usr/lib/ruby/1.8/wsdl/xmlSchema/sequence.rb:33:in  
`elementformdefault': undefined method `elementformdefault’ for  
#WSDL::XMLSchema::ComplexContent:0x..fdbd8f280 (NoMethodError)

I’m inexperienced with web services so I’m not sure if it’s a problem  
with their wsdl or the ruby classes. Here’s a snippet of the generated  
wsdl I’m trying to load:

\<?xml version="1.0" encoding="UTF-8"?\>

\<wsdl:definitions targetNamespace=“[http://ws.rs.com](http://ws.rs.com)”  
xmlns:apachesoap=“[http://xml.apache.org/xml-soap](http://xml.apache.org/xml-soap)”  
xmlns:impl=“[http://ws.rs.com](http://ws.rs.com)” xmlns:intf=“[http://ws.rs.com](http://ws.rs.com)”  
xmlns:wsdl=“[http://schemas.xmlsoap.org/wsdl/](http://schemas.xmlsoap.org/wsdl/)”  
xmlns:wsdlsoap=“[http://schemas.xmlsoap.org/wsdl/soap/](http://schemas.xmlsoap.org/wsdl/soap/)”  
xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”\>

wsdl:types

Here’s the code I’m attempting to access it with:

require “soap/wsdlDriver”

begin

wsdl =  
“[http://local.razorstream.com:8080/eve-service/wsdl/RazorStreamEve.wsdl](http://local.razorstream.com:8080/eve-service/wsdl/RazorStreamEve.wsdl)”  
soap = SOAP::WSDLDriverFactory.new(wsdl).createDriver

result = soap.call(‘GetUsageRequest’)  
end

I’d appreciate any insight you can offer.

Cheers,  
Marty

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 5, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/trouble-with-wsdl/87407/2 "2006-02-05T13:19:07Z")

</div>

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

Hi,

Sorry for late reply.

removed\_email\_address@domain.invalid wrote:

> I’m having some trouble getting the WSDLDriverFactory to create a  
> driver for an Apache Axis generated wsdl. Whenever I attempt to  
> connect this is the error I get:
> 
> /usr/lib/ruby/1.8/wsdl/xmlSchema/sequence.rb:33:in  
> `elementformdefault': undefined method `elementformdefault’ for  
> #WSDL::XMLSchema::ComplexContent:0x..fdbd8f280 (NoMethodError)

It must be a bug of soap4r. Can you try ruby-1.8.4 or soap4r latest  
snapshot tarball release at [http://dev.ctor.org/download/](http://dev.ctor.org/download/) ? Tell me if  
it still does not work.

Regards,  
// NaHi

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFD5extf6b33ts2dPkRAjnAAJ4oLVOS4rLTTVo3pGwmmwZNvkJX+ACeKd2i  
c6OZcCffartrqiCiz0BbaMs=  
=Pfsn  
-----END PGP SIGNATURE-----
