Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
soap complex type seen as nil
Raymond O'connor
2/9/2007 10:01:00 AM
I can't figure out how to pass a complex type to a soap call. I thought
all you had to do was pass it as a hash, so I could do something like
this:
result = driver.GetArticle('Request' => {'ArticleId' => '20061208',
'Email' => 'myemail@me.com', 'Password' => 'mypassword'})
Unfortunately I always get this error:
SOAP::Mapping::MappingError: nil not allowed: ArticleId
Here is the schema I am working with:
<xs:complexType name="GetArticleRequestType">
<xs:sequence>
<xs:element name="ArticleId" type="xs:string"/>
<xs:element name="Email" type="xs:string"/>
<xs:element name="Password" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="GetArticle" type="tns:GetArticleType"/>
<xs:complexType name="GetArticleType">
<xs:sequence>
<xs:element minOccurs="0" name="Validate" type="xs:string"/>
<xs:element minOccurs="0" name="XMLEscaping" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="Request" type="tns:GetArticleRequestType"/>
<xs:element minOccurs="0" name="Shared"
type="tns:GetArticleRequestType"/>
<xs:element minOccurs="0" name="SubscriptionId"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
Any help would be greatly appreciated
--
Posted via
http://www.ruby-...
.
2 Answers
Mattias Bud
9/15/2008 1:38:00 PM
0
Did you solve this problem? I have something simular.
--
Posted via
http://www.ruby-...
.
Wouter De bie
5/15/2009 2:40:00 PM
0
Any luck on this one?
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
soap complex type seen as nil
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password