You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "陳照東) <alex@erp.ncu.edu.tw>" <Alex> on 2001/03/27 08:59:05 UTC

Re: Receive a complex return value Dino De Luca

Dear Dino De Luca:
              i saw some of ur question from soap mailing list,
              i am interesting in ur case to exchange data.
              can u tell me some of ur samples and details .....

             Regards. 

IT DEP. Special Team-XML 
       Alex      
Tel:(03)4227151 ext:6024

alex@ERP.NCU.EDU.TW
=We Do Enterprise Services=
----- Original Message ----- 
From: "Bill Binole" <bi...@Attachmate.com>
To: <so...@xml.apache.org>
Sent: Tuesday, March 27, 2001 1:07 AM
Subject: RE: Receive a complex return value


Yes, you can do that.  Set it up as a bean and use the beanserializer to
marshall the object, or write your own serializer though the documentation
on the particulars of writing your own do not exist.

Bill

> -----Original Message-----
> From: Prabhakar, V [SMTP:V.Prabhakar@compaq.com]
> Sent: Monday, March 26, 2001 12:03 PM
> To: 'soap-user@xml.apache.org'
> Subject: RE: Receive a complex return value
> 
> I wonder if you can return an object with these fields (Name, Address and
> Phone).
> 
> -P
> 
> -----Original Message-----
> From: Dino De Luca [mailto:dinodeluca@hotmail.com]
> Sent: Monday, March 26, 2001 11:33 AM
> To: soap-user@xml.apache.org
> Subject: Receive a complex return value
> 
> 
> It's clear how to manage a simple response with just a value:
> 
>         Parameter result = resp.getReturnValue ();
>         result.getName();
> 
> but, if the response is more comlex, for instance:
> 
> <Name>John</Name>
> <Address>Smith</Address>
> <Phone>35765858</Phone>
> 
> the result contains the first tag. What I have to do to reach the other 
> values
> 
> 
> 
> A second question: if the response is
> <User>
> <Name>John</Name>
> <Address>Smith</Address>
> <Phone>35765858</Phone>
> </User>
> 
> the SOAP client generate the following error
> 
> SOAP-ENV:Client - The 'http://www.w3.org/1999/XMLSchema-instance:type' 
> attribute must be specified for every parameter.
> 
> thanks
> Dino
> 
> 
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org