RunTimeError from SOAP::WSDLDriverFactory(...).create_rpc_dr

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) 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”>

<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:incollect_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:inadd_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:ineach’
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:increate_rpc_driver’
from C:/dev/SoftwareSupport/ruby/misc/gpts.rb:6

-----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-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs