Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Sending User object (tried everything!)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sergio  
View profile  
 More options Jun 16, 3:18 pm
From: Sergio <sergio.souj...@gmail.com>
Date: Tue, 16 Jun 2009 12:18:23 -0700 (PDT)
Local: Tues, Jun 16 2009 3:18 pm
Subject: Sending User object (tried everything!)

Here is my live service so you can try for yourself:
http://saoj-office.dyndns.org:8080/ts?wsdl

Now my code which does not work: (feel free to try for yourself)

require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'

url = 'http://saoj-office.dyndns.org:8080/ts?wsdl'
service = SOAP::WSDLDriverFactory.new(url).create_rpc_driver
puts service.sayHello(nil).m_return # OK
puts service.sayHelloTo("Sergio").m_return # Does not work
u = service.getUserFromEmail("s...@saoj.com").m_return # OK
puts u.username
## How do I send an User object to the method sayHelloToUser(User
u) ???

c:\eclipse\workspace\HelloWS\ruby>ruby client.rb
Hi there! Now is: Tue Jun 16 16:12:09 BRT 2009
Hi null! Now is: Tue Jun 16 16:12:09 BRT 2009
saoj

PROBLEMS/QUESTIONS:

- See the "Hi null" in the second line of the output above? "Sergio"
parameter is not being passed to the server somehow.
- How do you pass an User object with an username attribute? I really
tried everything without success. This is now very clear at all. :-(


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergio  
View profile  
 More options Jun 16, 5:47 pm
From: Sergio <sergio.souj...@gmail.com>
Date: Tue, 16 Jun 2009 14:47:22 -0700 (PDT)
Local: Tues, Jun 16 2009 5:47 pm
Subject: Re: Sending User object (tried everything!)
Solution: you have to pass the param objects created from you.

Ex: For the method sayHelloTo(String username) the classes SayHelloTo
and SayHelloToResponse get created for you.

Once I found out about that everything else was easy.

-Sergio

On Jun 16, 4:18 pm, Sergio <sergio.souj...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google