# SOAP access Ruby

**URL:** <https://www.ruby-forum.com/t/soap-access-ruby/173697>\
**Category:** Ruby\
**Created:** [August 13, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/soap-access-ruby/173697 "2009-08-13T14:31:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@bogea](https://www.ruby-forum.com/u/bogea)\
**Post date:** [August 13, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/soap-access-ruby/173697/1 "2009-08-13T14:31:08Z")

</div>

Hey,  
I am having trouble calling a web service with ruby.

factory =  
SOAP::WSDLDriverFactory.new(‘[https://api.affili.net/V2.0/Logon.svc?wsdl](https://api.affili.net/V2.0/Logon.svc?wsdl)’)

driver = factory.create\_rpc\_driver  
parameters = {  
‘Username’ =\> ‘’,  
‘Password’ =\> ‘’,  
‘WebServiceType’ =\> ‘Product’,  
‘DeveloperSettings’ =\> {‘SandboxPublisherID’ =\>  
0},  
‘ApplicationSettings’ =\> {‘ApplicationID’ =\> 0,  
‘DeveloperID’ =\> ‘1000’ }  
}  
driver\_logon.Logon(parameters)

I get the following ERROR : Unknown xml indentifier xml:lang

What should I do? … I am checking now the driver options… maybe.

Thanks a lot 🙂

* * *

The WSDL for the logon function

\<xsd:complexType name=“Logon”\>  
xsd:sequence  
\<xsd:element minOccurs=“0” name=“Username” nillable=“true”  
type=“xsd:string”/\>  
\<xsd:element minOccurs=“0” name=“Password” nillable=“true”  
type=“xsd:string”/\>  
\<xsd:element name=“WebServiceType” type=“tns:WebServiceTypes”/\>  
\<xsd:element minOccurs=“0” name=“DeveloperSettings” nillable=“true”  
type=“tns:TokenDeveloperDetails”/\>  
\<xsd:element minOccurs=“0” name=“ApplicationSettings” nillable=“true”  
type=“tns:TokenApplicationDetails”/\>  
\</xsd:sequence\>  
\</xsd:complexType\>  
\<xsd:element name=“Logon” nillable=“true” type=“tns:Logon”/\>

---

<div class="post-metadata">

**Author:** ![bogea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@bogea](https://www.ruby-forum.com/u/bogea)\
**Post date:** [August 13, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/soap-access-ruby/173697/2 "2009-08-13T16:52:58Z")

</div>

It was because I need it to force it to use the gem and not the ruby  
api. at least this is what I think.

I have used this. Weird but it works.

require ‘rubygems’  
gem ‘soap4r’  
require ‘soap/wsdlDriver’  
require ‘soap/header/simplehandler’

---

<div class="post-metadata">

**Author:** ![bogea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@bogea](https://www.ruby-forum.com/u/bogea)\
**Post date:** [August 13, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/soap-access-ruby/173697/3 "2009-08-13T20:16:02Z")

</div>

On Aug 13, 2009, at 07:53, Gabriel Policiuc wrote:

> It was because I need it to force it to use the gem and not the ruby  
> api. at least this is what I think.
> 
> I have used this. Weird but it works.
> 
> require ‘rubygems’  
> gem ‘soap4r’  
> require ‘soap/wsdlDriver’  
> require ‘soap/header/simplehandler’

This is correct.

---

<div class="post-metadata">

**Author:** ![bogea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@bogea](https://www.ruby-forum.com/u/bogea)\
**Post date:** [August 13, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/soap-access-ruby/173697/4 "2009-08-13T20:24:14Z")

</div>

On Thu, Aug 13, 2009 at 8:53 AM, Gabriel Policiuc  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> It was because I need it to force it to use the gem and not the ruby  
> api. at least this is what I think.
> 
> I have used this. Weird but it works.
> 
> require ‘rubygems’  
> gem ‘soap4r’  
> require ‘soap/wsdlDriver’  
> require ‘soap/header/simplehandler’

FWIW I’ve had a lot of problems using soap4r.

You might have a look at TorqueBox if you continue to have problems  
yourself. Its SOAP support seems pretty nifty:

> **[Вулкан Казино Официальный Сайт в России - Вход на Vulkan Casino](https://kes-krasnogorsk.ru/)**
>
> Вход и регистрация в онлайн казино Вулкан для новых и зарегистрированных игроков: играть с бонусами и фриспинами. Официальный сайт Vulkan Casino для России с выводом денег и постоянным доступом.
