# SOAP '-' problem

**URL:** <https://www.ruby-forum.com/t/soap-problem/150419>\
**Category:** Ruby\
**Created:** [October 8, 2008, 11:35am UTC](https://www.ruby-forum.com/t/soap-problem/150419 "2008-10-08T11:35:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krzysztof\_Kaczmarek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d9b06d/32.png) [@Krzysztof\_Kaczmarek](https://www.ruby-forum.com/u/Krzysztof_Kaczmarek)\
**Post date:** [October 8, 2008, 11:35am UTC](https://www.ruby-forum.com/t/soap-problem/150419/1 "2008-10-08T11:35:50Z")

</div>

Hello,

I try to use this wsdl: [Allegro Developer Portal - baza wiedzy o Allegro REST API](http://webapi.allegro.pl/uploader.php?wsdl) .  
The problem is: variables are like “country-id”. When I use ‘soap/  
wsdlDriver’ or soap4r I become message like this:

`@country-id’ is not allowed as an instance variable name

How can i solve this problem? Maybe there are another soap library?

Sorry for my english =)

best regards  
Krzysztof Kaczmarek

---

<div class="post-metadata">

**Author:** ![Krzysztof\_Kaczmarek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/d9b06d/32.png) [@Krzysztof\_Kaczmarek](https://www.ruby-forum.com/u/Krzysztof_Kaczmarek)\
**Post date:** [October 8, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/soap-problem/150419/2 "2008-10-08T15:20:44Z")

</div>

On Oct 8, 5:33 am, Krzysztof Kaczmarek  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> I try to use this wsdl:[Allegro Developer Portal - baza wiedzy o Allegro REST API](http://webapi.allegro.pl/uploader.php?wsdl).  
> The problem is: variables are like “country-id”. When I use ‘soap/  
> wsdlDriver’ or soap4r I become message like this:
> 
> `@country-id’ is not allowed as an instance variable name
> 
> How can i solve this problem? Maybe there are another soap library?

That looks like a bug from an old version of soap4r. With soap4r  
1.5.8, I performed the following:

wsdl2ruby --wsdl [Allegro Developer Portal - baza wiedzy o Allegro REST API](http://webapi.allegro.pl/uploader.php?wsdl) --type  
client

and the generated classes had instance variables with underscores,  
like @country\_id. So I recommend that you install the latest via ‘gem  
install soap4r’

– Mark.
