[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

multiple output parameters in SOAP

Jacob Maine

7/26/2006 4:51:00 PM


Hi all,

Apologies for the cross-posting to the Rails mailing list - I looked deeper
into Action Web Service and realized it probably isn't going to do what I
want.

I'm trying to use soap4r to write a web service server that will return
multiple output parameters - something like the following:

<?xml version="1.0" encoding="UTF-8" ?>
<Envelope>
<Body>
<doSomethingResponse>
<returnCode type="int">0</returnCode>
<returnText type="string">Success</returnText>
</doSomethingResponse>
</Body>
</Envelope>

This form is mentioned briefly in the W3C SOAP spec
http://www.w3.org/TR/soap12-pa... and again at
http://www.w3.org/TR/soap12-part0.... I wish I could use a struct or
array to wrap these responses, but I'm re-writing an existing web service,
and the existing clients won't be able to interpret this:

<?xml version="1.0" encoding="UTF-8" ?>
<Envelope>
<Body>
<doSomethingResponse>
<return type="ReturnStatus">
<returnText type="string">Success</returnText>
<returnCode type="int">0</returnCode>
</return>
</doSomethingResponse>
</Body>
</Envelope>

The extra <return> tag, representing an instance of a ReturnStatus struct,
is getting in the way. The problem seems to be that since Ruby functions
always return one value (possibly an object with attributes) the soap4r
implementation always sets that object as the only child of the web service
response tag. Is there a way to define a mapping that will leave an element
out, but encode its children? Or some other way to return multiple
un-wrapped values?

Thanks in advance for your help.

Jacob Maine



9 Answers

Ernie

11/20/2011 5:28:00 PM

0

On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
> On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > How many of you are stupid enough to believe anything posted by the
> > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp.com
> > snake oil site after seeing her silly posts using my name? Now let the
> > lying stupid whining cowardly vile HUNK of shit and convicted child
> > molester go finger herself, again. Ernie
>
> We do not believe anything you post using your name. Marcus

Is anybody going to believe anything posted by the crazy old pussy and
asshole farrel after seeing her lie about a mole being a wart? Now let
the lying stupid whining cowardly vile HUNK of shit and convicted
child molester go finger herself, again. Ernie

Marcus

11/20/2011 5:36:00 PM

0

On Nov 20, 9:27 am, Ernie <eprimea...@gmail.com> wrote:
> On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > > How many of you are stupid enough to believe anything posted by the
> > > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp.com
> > > snake oil site after seeing her silly posts using my name? Now let the
> > > lying stupid whining cowardly vile HUNK of shit and convicted child
> > > molester go finger herself, again. Ernie
>
> > We do not believe anything you post using your name. Marcus
>
> Is anybody going to believe anything posted by the crazy old pussy and
> asshole farrel after seeing her lie about a mole being a wart? Now let
> the lying stupid whining cowardly vile HUNK of shit and convicted
> child molester go finger herself, again. Ernie

I am Marcus and all you do is tell lies. Calling me "farrel" is just
one of them.

Marcus

Ernie

11/20/2011 9:09:00 PM

0

On Nov 20, 12:36 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
> On Nov 20, 9:27 am, Ernie <eprimea...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > > > How many of you are stupid enough to believe anything posted by the
> > > > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp..com
> > > > snake oil site after seeing her silly posts using my name? Now let the
> > > > lying stupid whining cowardly vile HUNK of shit and convicted child
> > > > molester go finger herself, again. Ernie
>
> > > We do not believe anything you post using your name. Marcus
>
> > Is anybody going to believe anything posted by the crazy old pussy and
> > asshole farrel after seeing her lie about a mole being a wart? Now let
> > the lying stupid whining cowardly vile HUNK of shit and convicted
> > child molester go finger herself, again. Ernie
>
> I am Marcus and all you do is tell lies. Calling me "farrel" is just
> one of them.
>
> Marcus

The crazy old pussy and asshole farrel was proven wrong about
inhibiting dht and 5 a-r being the answer for AGA, and she was proven
wrong about my method not working, now let the lying stupid whining
cowardly vile HUNK of shit and convicted child molester go finger
herself, again. Ernie

Marcus

11/21/2011 2:34:00 AM

0

On Nov 20, 1:08 pm, Ernie <eprimea...@gmail.com> wrote:
> On Nov 20, 12:36 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Nov 20, 9:27 am, Ernie <eprimea...@gmail.com> wrote:
>
> > > On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > > On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > > > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > > > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > > > > How many of you are stupid enough to believe anything posted by the
> > > > > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp.com
> > > > > snake oil site after seeing her silly posts using my name? Now let the
> > > > > lying stupid whining cowardly vile HUNK of shit and convicted child
> > > > > molester go finger herself, again. Ernie
>
> > > > We do not believe anything you post using your name. Marcus
>
> > > Is anybody going to believe anything posted by the crazy old pussy and
> > > asshole farrel after seeing her lie about a mole being a wart? Now let
> > > the lying stupid whining cowardly vile HUNK of shit and convicted
> > > child molester go finger herself, again. Ernie
>
> > I am Marcus and all you do is tell lies. Calling me "farrel" is just
> > one of them.
>
> > Marcus
>
> The crazy old pussy and asshole farrel was proven wrong about
> inhibiting dht and 5 a-r being the answer for AGA, and she was proven
> wrong about my method not working, now let the lying stupid whining
> cowardly vile HUNK of shit and convicted child molester go finger
> herself, again. Ernie

There are more lies from asshole ernie.

Ask her to see her results since she claims her hair loss method works
and watch the excuses about "shell games" and "doctored pictures" .
Marcus

Ernie

11/21/2011 3:54:00 AM

0

On Nov 20, 9:33 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
> On Nov 20, 1:08 pm, Ernie <eprimea...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Nov 20, 12:36 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > On Nov 20, 9:27 am, Ernie <eprimea...@gmail.com> wrote:
>
> > > > On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > > > On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > > > > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > > > > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > > > > > How many of you are stupid enough to believe anything posted by the
> > > > > > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp.com
> > > > > > snake oil site after seeing her silly posts using my name? Now let the
> > > > > > lying stupid whining cowardly vile HUNK of shit and convicted child
> > > > > > molester go finger herself, again. Ernie
>
> > > > > We do not believe anything you post using your name. Marcus
>
> > > > Is anybody going to believe anything posted by the crazy old pussy and
> > > > asshole farrel after seeing her lie about a mole being a wart? Now let
> > > > the lying stupid whining cowardly vile HUNK of shit and convicted
> > > > child molester go finger herself, again. Ernie
>
> > > I am Marcus and all you do is tell lies. Calling me "farrel" is just
> > > one of them.
>
> > > Marcus
>
> > The crazy old pussy and asshole farrel was proven wrong about
> > inhibiting dht and 5 a-r being the answer for AGA, and she was proven
> > wrong about my method not working, now let the lying stupid whining
> > cowardly vile HUNK of shit and convicted child molester go finger
> > herself, again. Ernie
>
> There are more lies from asshole ernie.
>
> Ask her to see her results since she claims her hair loss method works
> and watch the excuses about "shell games" and "doctored pictures" .
> Marcus

The crazy old pussy and asshole farrel was proven wrong about
inhibiting dht and 5 a-r being the answer for AGA, and she was proven
wrong about my method not working, now let the lying stupid whining
cowardly vile HUNK of shit and convicted child molester go finger
herself, again. Ernie

Marcus

11/21/2011 8:00:00 AM

0

On Nov 20, 7:54 pm, Ernie <eprimea...@gmail.com> wrote:
> On Nov 20, 9:33 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Nov 20, 1:08 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > On Nov 20, 12:36 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > > On Nov 20, 9:27 am, Ernie <eprimea...@gmail.com> wrote:
>
> > > > > On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > > > > On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > > > > > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > > > > > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > > > > > > How many of you are stupid enough to believe anything posted by the
> > > > > > > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp.com
> > > > > > > snake oil site after seeing her silly posts using my name? Now let the
> > > > > > > lying stupid whining cowardly vile HUNK of shit and convicted child
> > > > > > > molester go finger herself, again. Ernie
>
> > > > > > We do not believe anything you post using your name. Marcus
>
> > > > > Is anybody going to believe anything posted by the crazy old pussy and
> > > > > asshole farrel after seeing her lie about a mole being a wart? Now let
> > > > > the lying stupid whining cowardly vile HUNK of shit and convicted
> > > > > child molester go finger herself, again. Ernie
>
> > > > I am Marcus and all you do is tell lies. Calling me "farrel" is just
> > > > one of them.
>
> > > > Marcus
>
> > > The crazy old pussy and asshole farrel was proven wrong about
> > > inhibiting dht and 5 a-r being the answer for AGA, and she was proven
> > > wrong about my method not working, now let the lying stupid whining
> > > cowardly vile HUNK of shit and convicted child molester go finger
> > > herself, again. Ernie
>
> > There are more lies from asshole ernie.
>
> > Ask her to see her results since she claims her hair loss method works
> > and watch the excuses about "shell games" and "doctored pictures" .
> > Marcus
>
> The crazy old pussy and asshole farrel was proven wrong about
> inhibiting dht and 5 a-r being the answer for AGA, and she was proven
> wrong about my method not working, now let the lying stupid whining
> cowardly vile HUNK of shit and convicted child molester go finger
> herself, again. Ernie

See, ernie is a babbling idiot.

Marcus

Ernie

11/21/2011 1:22:00 PM

0

On Nov 21, 2:59 am, Marcus <marcus_cox2...@yahoo.com> wrote:
> On Nov 20, 7:54 pm, Ernie <eprimea...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Nov 20, 9:33 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > On Nov 20, 1:08 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > > On Nov 20, 12:36 pm, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > > > On Nov 20, 9:27 am, Ernie <eprimea...@gmail.com> wrote:
>
> > > > > > On Nov 20, 2:41 am, Marcus <marcus_cox2...@yahoo.com> wrote:
>
> > > > > > > On Nov 19, 8:58 pm, Ernie <eprimea...@gmail.com> wrote:
>
> > > > > > > > On Nov 19, 4:24 pm, "Ernie" <Ernie...@webtv.net> wrote:
>
> > > > > > > > > If the camper trailer is rockin', don't bother knockin'. Ernie
>
> > > > > > > > How many of you are stupid enough to believe anything posted by the
> > > > > > > > crazy old pussy and asshole farrel, here, or at herwww.hairlosshelp.com
> > > > > > > > snake oil site after seeing her silly posts using my name? Now let the
> > > > > > > > lying stupid whining cowardly vile HUNK of shit and convicted child
> > > > > > > > molester go finger herself, again. Ernie
>
> > > > > > > We do not believe anything you post using your name. Marcus
>
> > > > > > Is anybody going to believe anything posted by the crazy old pussy and
> > > > > > asshole farrel after seeing her lie about a mole being a wart? Now let
> > > > > > the lying stupid whining cowardly vile HUNK of shit and convicted
> > > > > > child molester go finger herself, again. Ernie
>
> > > > > I am Marcus and all you do is tell lies. Calling me "farrel" is just
> > > > > one of them.
>
> > > > > Marcus
>
> > > > The crazy old pussy and asshole farrel was proven wrong about
> > > > inhibiting dht and 5 a-r being the answer for AGA, and she was proven
> > > > wrong about my method not working, now let the lying stupid whining
> > > > cowardly vile HUNK of shit and convicted child molester go finger
> > > > herself, again. Ernie
>
> > > There are more lies from asshole ernie.
>
> > > Ask her to see her results since she claims her hair loss method works
> > > and watch the excuses about "shell games" and "doctored pictures" .
> > > Marcus
>
> > The crazy old pussy and asshole farrel was proven wrong about
> > inhibiting dht and 5 a-r being the answer for AGA, and she was proven
> > wrong about my method not working, now let the lying stupid whining
> > cowardly vile HUNK of shit and convicted child molester go finger
> > herself, again. Ernie
>
> See, ernie is a babbling idiot.
>
> Marcus

Is anybody going to believe anything posted by the crazy old pussy and
asshole farrel after seeing her lie about mole being a wart? Now let
the lying stupid whining cowardly vile HUNK of shit and convicted
child molester go finger herself, again. Ernie

Marcus

11/21/2011 2:24:00 PM

0

ernie`s bumper stickers on her trailer help hold it together.

Marcus

Ernie

11/21/2011 7:21:00 PM

0

On Nov 21, 9:23 am, Marcus <marcus_cox2...@yahoo.com> wrote:
> ernie`s bumper stickers on her trailer help hold it together.
>
> Marcus

Is anybody going to believe anything posted by the crazy old pussy and
asshole farrel after seeing her lie about a mole being a wart? Now let
the lying stupid whining cowardly vile HUNK of shit and convicted
child molester go finger herself, again. Ernie