# RunTimeError from SOAP::WSDLDriverFactory(...).create\_rpc\_dr

**URL:** <https://www.ruby-forum.com/t/runtimeerror-from-soap-wsdldriverfactory-create-rpc-dr/69438>\
**Category:** Ruby\
**Created:** [September 21, 2006, 1:50am UTC](https://www.ruby-forum.com/t/runtimeerror-from-soap-wsdldriverfactory-create-rpc-dr/69438 "2006-09-21T01:50:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rene\_Perrier](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rene\_Perrier](https://www.ruby-forum.com/u/Rene_Perrier)\
**Post date:** [September 21, 2006, 1:50am UTC](https://www.ruby-forum.com/t/runtimeerror-from-soap-wsdldriverfactory-create-rpc-dr/69438/1 "2006-09-21T01:50:17Z")

</div>

Hi,

I’m trying to build a SOAP client using a wsdl and I get an error  
message saying that a part cannot be resolved.

The message is the same as the one I found in the archive  
([http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/161758](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/161758)) but  
the cause is different.

Any help would be greatly appreciated.

Regards

Rene

# Code is:

require “soap/wsdlDriver”

WSDL\_URL = “xxx.wsdl” #this is on the other side of a firewall  
factory = SOAP::WSDLDriverFactory.new(WSDL\_URL)  
driver = factory.create\_rpc\_driver

# wsdl looks like

\<wsdl:definitions targetNamespace=“[http://xxxx](http://xxxx)”\>  
  
\<wsdl:message name=“restartRequest”\>\</wsdl:message\>  
\<wsdl:message name=“getJgiSessionResponse”\>  
\<wsdl:part name=“getJgiSessionReturn” type=“xsd:anyType”/\>  
\</wsdl:message\>  
etc…

# error is

C:/ruby\_1.8.4/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:144:in  
`rpcdefinedtype': part: getJgiSessionReturn cannot be resolved (RuntimeError) from C:/ruby_1.8.4/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:56:in `collect\_rpcparameter’  
from C:/ruby\_1.8.4/lib/ruby/1.8/soap/wsdlDriver.rb:130:in  
`create_param_def' from C:/ruby_1.8.4/lib/ruby/1.8/soap/wsdlDriver.rb:101:in `add\_operation’  
from C:/ruby\_1.8.4/lib/ruby/1.8/xsd/namedelements.rb:58:in `each' from C:/ruby_1.8.4/lib/ruby/1.8/xsd/namedelements.rb:57:in `each’  
from C:/ruby\_1.8.4/lib/ruby/1.8/soap/wsdlDriver.rb:96:in  
`add_operation' from C:/ruby_1.8.4/lib/ruby/1.8/soap/wsdlDriver.rb:40:in `create\_rpc\_driver’  
from C:/dev/SoftwareSupport/ruby/misc/gpts.rb:6

---

<div class="post-metadata">

**Author:** ![Rene\_Perrier](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Rene\_Perrier](https://www.ruby-forum.com/u/Rene_Perrier)\
**Post date:** [September 24, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/runtimeerror-from-soap-wsdldriverfactory-create-rpc-dr/69438/2 "2006-09-24T16:35:54Z")

</div>

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

Hi,

Rene Perrier wrote:

> I’m trying to build a SOAP client using a wsdl and I get an error  
> message saying that a part cannot be resolved.

Can you send me the WSDL? I’ll try to fix soap4r to work with the WSDL.

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

iQEVAwUBRRaXPx9L2jg5EEGlAQJmzgf/Q7bc+Hekq7jYTImGXP+jn1853pLE5eLR  
CNfMT96bd9ZRVlKLZhGR4gQfNhAoNMi3bw4eOQDTbg6s/ZPs1RxbYvlJjfUFCob1  
+d3b6D7oPq6W41Au62xy2OVAdLmhot4kv5CwV99SmgUELFQ3+EWmQOrRrcRy15ls  
xDggv2kBF8NnalnNjeym9fsVTprLdgIcdZZPHBxR2n2oxf0RcPrGuLd1VICnueNq  
5CWu7wgz6Zk97fuXEzJn2DEFrmhq19MF7RcvyOrZBEaXjXZlIWco/pc6iLkSaeRm  
FHqhTrB5bczwcjT8SebkJWQVLONkvUjXZcW5rtTmmZ+o3uipqHFdgw==  
=tJqT  
-----END PGP SIGNATURE-----
