# Soap4r problem

**URL:** <https://www.ruby-forum.com/t/soap4r-problem/108325>\
**Category:** Ruby\
**Created:** [July 2, 2007, 10:29am UTC](https://www.ruby-forum.com/t/soap4r-problem/108325 "2007-07-02T10:29:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcin\_r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Post date:** [July 2, 2007, 10:29am UTC](https://www.ruby-forum.com/t/soap4r-problem/108325/1 "2007-07-02T10:29:12Z")

</div>

I generated 3 files from wsdl using ruby4r now when i try to run it, i  
get  
correct response and Exception:

============================

ruby -d DetaExchangeClient.rb  
Set XSD::XMLParser::XMLParser as XML processor.  
Wire dump:

= Request

! CONNECT TO 194.56.211.106:443  
! CONNECTION ESTABLISHED  
/usr/lib/ruby/1.8/http-access2.rb:1101: warning: using default DH  
parameters.  
ng: /C=PL/ST=Mazowieckie/L=Warszawa/O=ACTION  
S.A./OU=IT/CN=i-serwis2.action.pl  
at depth 0 - 20: unable to get local issuer certificate  
POST /DetaExchange.asmx HTTP/1.1  
SOAPAction: “[https://DetaExchange.action.pl/Product\_Get](https://DetaExchange.action.pl/Product_Get)”  
Content-Type: text/xml; charset=utf-8  
User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.5 (2006-08-25) [i486-linux])  
Date: Mon Jul 02 08:26:51 +0000 2007  
Content-Length: 450  
Host: 194.56.211.106

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

\<soap:Envelope xmlns:soap=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”\>  
soap:Body  
\<Product\_Get xmlns=“[https://DetaExchange.action.pl/](https://DetaExchange.action.pl/)”\>  
was\_here  
666  
ID1234  
secret  
\</Product\_Get\>  
\</soap:Body\>  
\</soap:Envelope\>

= Response

HTTP/1.1 200 OK  
Connection: close  
Date: Mon, 02 Jul 2007 08:22:23 GMT  
Server: Microsoft-IIS/6.0  
X-Powered-By: [ASP.NET](http://ASP.NET)  
X-AspNet-Version: 2.0.50727  
Cache-Control: private, max-age=0  
Content-Type: text/xml; charset=utf-8  
Content-Length: 685

\<?xml version="1.0" encoding="utf-8"?\>\<soap:Envelope

xmlns:soap=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)”  
xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”  
xmlns:xsd=“[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)”\>soap:Body\<Product\_GetResponse  
xmlns=“[https://DetaExchange.action.pl/](https://DetaExchange.action.pl/)”\>\<Product\_GetResult\>AGDAEGPRW0001Pralka  
Automatyczna AEG LAVAMAT  
54610AEGAGDAGD-PRWF2411060.0000000\</Product\_GetResult\>\</Product\_GetResponse\>\</soap:Body\>\</soap:Envelope\>!  
CONNECTION CLOSED

# Exception `NoMethodError' at /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:321 - undefined method `name’ for nil:NilClass /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:321:in `add_elements2stubobj': undefined method `name’ for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/soap/baseData.rb:605:in `each' from /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:292:in `add\_elements2stubobj’ from /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:277:in `soapele2stubobj' from /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:264:in `any2obj’ from /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:305:in `add_elements2stubobj' from /usr/lib/ruby/1.8/soap/baseData.rb:605:in `each’ from /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:292:in `add_elements2stubobj' from /usr/lib/ruby/1.8/soap/mapping/wsdlliteralregistry.rb:277:in `soapele2stubobj’ … 13 levels… from /usr/lib/ruby/1.8/soap/rpc/proxy.rb:149:in `call' from /usr/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call’ from (eval):6:in `product\_Get’ from DetaExchangeClient.rb:167

anyone have any ide what i did wrong?
