Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [SOAP4R] empty string in response with method defined by means of add_method

Reply
Thread Tools

[SOAP4R] empty string in response with method defined by means of add_method

 
 
aa
Guest
Posts: n/a
 
      01-09-2006
Hi,

I'm using a java web service with a ruby client. The easiest thing to
get me up & running quickly was to define the method by means of
add_method. Hence, I'm not using WSDL.

Sometimes I get a response where a parameter (formally described in
WSDL as type="soapenc:string") has attribute nil=true. In other
occasions it's empty.

The former is recognized by SOAP4R, telling me that the value is nil.
But the latter gives me a SOAP::Mapping::Object with @__soap_value={}
and @soap_value_type={}.

I don't know really what to do with this value. How can I either get an
empty string or understanand that the resulting object is really empty?

Thanks
AA

 
Reply With Quote
 
 
 
 
NAKAMURA, Hiroshi
Guest
Posts: n/a
 
      02-05-2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Sorry for late reply.

aa wrote:
> Sometimes I get a response where a parameter (formally described in
> WSDL as type="soapenc:string") has attribute nil=true. In other
> occasions it's empty.
>
> The former is recognized by SOAP4R, telling me that the value is nil.
> But the latter gives me a SOAP::Mapping::Object with @__soap_value={}
> and @soap_value_type={}.
>
> I don't know really what to do with this value. How can I either get an
> empty string or understanand that the resulting object is really empty?


Definitely it's a bug of soap4r... cf.
http://dev.ctor.org/soap4r/ticket/189 . I'll try to solve this soon.

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFD5fhKf6b33ts2dPkRAp8MAJ9RwhOyFi9NB9dZVUFpy/rc8Gw84QCgg1g3
oJWuqYiN7B7TeajlfNmRam0=
=ayGg
-----END PGP SIGNATURE-----


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Empty gridview cells and checking for empty string Savvoulidis Iordanis ASP .Net 1 09-05-2008 06:15 AM
behavior varied between empty string '' and empty list [] Tzury Bar Yochay Python 1 03-24-2008 06:56 PM
Soap add_method Justin Mazzi Ruby 2 02-22-2007 10:18 PM
#if (defined(__STDC__) && !defined(NO_PROTOTYPE)) || defined(__cplusplus) Oodini C Programming 1 09-27-2005 07:58 PM
Please explain what "Empty path has no directory" means with Server.MapPath Alan Silver ASP .Net 1 06-28-2005 06:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57