Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 16668 invoked from network); 20 Dec 2005 02:39:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Dec 2005 02:39:43 -0000 Received: (qmail 4619 invoked by uid 500); 20 Dec 2005 02:39:12 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 4589 invoked by uid 500); 20 Dec 2005 02:39:12 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 4577 invoked by uid 99); 20 Dec 2005 02:39:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 18:39:12 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of xjchen001@gmail.com designates 64.233.182.207 as permitted sender) Received: from [64.233.182.207] (HELO nproxy.gmail.com) (64.233.182.207) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2005 18:39:10 -0800 Received: by nproxy.gmail.com with SMTP id k26so397294nfc for ; Mon, 19 Dec 2005 18:38:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=uDXQ2dyszRDrWLkCL1lufg84uaTxvwXplEXD7Vo1JqOWG4y3C4tXkUEUgMA6CKb4R9lxjHTftIBiqhjurq4EkZTLfYUYjVphII0ni6nLG0EtowJ27Rx098ejC6CVMBH62qk7UpFrMF0HLTgb3IdtyW4nCQUuIQN7SZqxV5Tw8jY= Received: by 10.48.80.1 with SMTP id d1mr289017nfb; Mon, 19 Dec 2005 18:38:49 -0800 (PST) Received: by 10.48.226.9 with HTTP; Mon, 19 Dec 2005 18:38:49 -0800 (PST) Message-ID: <84f31d220512191838w4cc276ddpda80110c51b84c6@mail.gmail.com> Date: Tue, 20 Dec 2005 10:38:49 +0800 From: Xinjun Chen To: axis-user@ws.apache.org Subject: Re: wsdd - How do I represent return type of List? In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_810_14007632.1135046329191" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_810_14007632.1135046329191 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Do you have any complete sample of customized serializerFactory/deserializerFactory? Why do you not encourage customized serializerFactory/deserializerFactory? Regards, Xinjun On 12/20/05, Ben Reif wrote: > > Iksrazal, > > Did you just create your own for java.util.List and then > use reflection in the serializer/deserializer class to call the > individual serializers/deserializers for the objects inside the List? > Also, how did you implement the writeSchema() method? Did you have it > generate a complex type definition for a wrapper object like ListOfxxx? > Any issues with interoperability with things like .Net? > > Thanks, > Ben > > -----Original Message----- > From: trebor iksrazal [mailto:iksrazal@yahoo.com] > Sent: Friday, December 16, 2005 7:26 PM > To: axis-user@ws.apache.org > Subject: Re: wsdd - How do I represent return type of List? > > Anne actuallly helped me with 'List of complex type objects' a couple > days ago. I've done what you describe alot with 'rpc encoded', but the > future is pointing to doc / lit, as you seem to be using anyways > : > > http://marc.theaimsgroup.com/?l=3Daxis-user&m=3D113459148202564&w=3D2 > > I've got it about 99% working at this point. I might be able to help > more code wise should you get stuck. > > HTH, > iksrazal > > --- Anne Thomas Manes wrote: > > > Ben, > > > > For better interoperability, you should convert your list into an > > array. > > > > See > > http://www.osmoticweb.com/axis-wsdd/operation.htm > > for documentation of > > the WSDD definition. > > > > name =3D the name of the Java method > > qname =3D the qname of the element that represents the method name in > > XML returnQName =3D the qname of the element that represents the return > > value in XML returnType =3D the XML type of the element that represents > > the return value > > > > Anne > > > > On 12/16/05, Ben Reif wrote: > > > > > > I'm using Axis 1.3 to create document / literal > > style services, so as I > > > understand it, I need to be more declarative in my > > wsdd file and define the > > > operations. I have a method in my service that > > returns a List of complex > > > type objects. In reading through the documentation > > I need to set the name, > > > qname, returnQName, and returnType attributes. > > Something like: > > > > > > > returnType=3D"?"> > > > > > > I also noticed in the WSDDConstants class there > > were constants defined for > > > returnItemQName, returnItemType, itemQName, and > > itemType attributes, but > > > there is no mention of them in the documentation. > > Can anyone explain how to > > > represent a List of complex types as either an > > input parameter or a return > > > parameter in the tag? Also, what's the > > difference between qname, > > > returnQName and the returnType (which could also > > be a QName maybe?). > > > > > > Thanks a bunch, > > > Ben > > > > > > > > "None are more hopelessly enslaved than those who falsely believe they > are free. -- Goethe" > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------=_Part_810_14007632.1135046329191 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
 
Do you have any complete sample of customized serializerFactory/deseri= alizerFactory? Why do you not encourage customized serializerFactory/d= eserializerFactory? 
 
Regards,
Xinjun
 
On 12/20/05, Ben Reif <Ben.Reif@cgi-ams.= com > wrote:=20
Iksrazal,

Did you just cr= eate your own <typeMapping> for java.util.List and then
use reflec= tion in the serializer/deserializer class to call the=20
individual serializers/deserializers for the objects inside the List?Also, how did you implement the writeSchema() method? Did you have it
= generate a complex type definition for a wrapper object like ListOfxxx?=20
Any issues with interoperability with things like .Net?

Thanks,<= br>Ben

-----Original Message-----
From: trebor iksrazal [mailto:<= a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"mailto:i= ksrazal@yahoo.com" target=3D"_blank"> iksrazal@yahoo.com]
Sent: Friday, December 16, 2005 7:26 PM
To: = axis-user@ws.apache.org
S= ubject: Re: wsdd <operation> - How do I represent return type of List= ?

Anne actuallly helped me with 'List of complex type objects' a coup= le
days ago. I've done what you describe alot with 'rpc encoded', but t= he
future is pointing to doc / lit, as you seem to be using anyways
:

http://marc.theaimsgroup.com/?l=3Daxis-user&m= =3D113459148202564&w=3D2

I've got it about 99% working at this point. I might be able to= help
more code wise should you get stuck.

HTH,
iksrazal
--- Anne Thomas Manes < atmanes@gmail.com> wrote:

> Ben,
>
> For bette= r interoperability, you should convert your list into an
> array.
= >
> See
> http://www.osmoticweb.com/axis-wsdd/operation.htm
> for documenta= tion of
> the WSDD <operation> definition.
>
> name= =3D the name of the Java method
> qname =3D the qname of the elemen= t that represents the method name in
> XML returnQName =3D the qname of the element that represents the r= eturn
> value in XML returnType =3D the XML type of the element that = represents
> the return value
>
> Anne
>
> O= n 12/16/05, Ben Reif < Ben.Reif@cgi-ams.com> wrote:=
> >
> > I'm using Axis 1.3 to create document / literal =
> style services, so as I
> > understand it, I need to be more = declarative in my
> wsdd file and define the
> > operations.= I have a method in my service that
> returns a List of complex
> > type objects. In reading through the documentation
> I need= to set the name,
> > qname, returnQName, and returnType attribute= s.
> Something like:
> >
> > <operation name=3D&= quot;query" qname=3D"?" returnQName=3D"?"=20
> returnType=3D"?">
> >
> > I also no= ticed in the WSDDConstants class there
> were constants defined for> > returnItemQName, returnItemType, itemQName, and
> itemTyp= e attributes, but=20
> > there is no mention of them in the documentation.
> Can= anyone explain how to
> > represent a List of complex types as ei= ther an
> input parameter or a return
> > parameter in the &= lt;operation> tag? Also, what's the=20
> difference between qname,
> > returnQName and the returnT= ype (which could also
> be a QName maybe?).
> >
> >= Thanks a bunch,
> > Ben
> >
>


"Non= e are more hopelessly enslaved than those who falsely believe they=20
are free. -- Goethe"

______________________________________= ____________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has= the best spam protection around
http://mail.yahoo.com

------=_Part_810_14007632.1135046329191--