unresolved attribute type for {}TrackIDs

1 view
Skip to first unread message

Rob Lievaart

unread,
Jun 27, 2008, 8:46:26 AM6/27/08
to soap4r
Hi,

I just ran wsdl2ruby on a wsdl, and I get the error mentioned in the
subject. It seems
to dislike some of the attributes used.

The attribute in question is:

<s:attribute name="TrackIDs">
<s:simpleType>
<s:list itemType="s:string" />
</s:simpleType>
</s:attribute>

When looking through the code to see where this occurs, I end up in
wsdl/soap/classDefCreatorSupport.rb, in function attribute_basetype

def attribute_basetype(attr)
if klass = basetype_class(attr.type)
klass
elsif attr.local_simpletype
basetype_class(attr.local_simpletype.base)
else
nil
end
end

but in this case, the attribute is a simple type that contains a list
of strings.
It seems the code does not handle this. Is this a problem in the code
or
am I doing something wrong?

I am new to soap4r (just installed it this morning).

Kind regards

Rob Lievaart
Reply all
Reply to author
Forward
0 new messages