axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: WSDL type mapping for List
Date Wed, 27 Dec 2006 14:16:10 GMT
Correction -- return an array, not a soap array. (Soap array is used
only with rpc/encoded).

On 12/25/06, Martin Gainty <mgainty@hotmail.com> wrote:
>
>
> Good Morning Chinmay
>
> If I look at return types available in
> \org\apache\axis2\namespace\Constants.java I dont see an
> implementation for Vector currently available
> therefore following anne's suggestion of returning a SOAP_ARRAY is your best
> alternative
>
> Martin--
> ---------------------------------------------------------------------------
> This e-mail message (including attachments, if any) is intended for the use
> of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure. If you are not the intended recipient, you are notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited.
> ---------------------------------------------------------------------------
> Le présent message électronique (y compris les pièces qui y sont annexées,
> le cas échéant) s'adresse au destinataire indiqué et peut contenir des
> renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> destinataire de ce document, nous vous signalons qu'il est strictement
> interdit de le diffuser, de le distribuer ou de le reproduire.
>
>
> ----- Original Message -----
> From: c b
> To: axis-user@ws.apache.org
> Sent: Monday, December 25, 2006 8:55 AM
> Subject: Re: WSDL type mapping for List
>
>
> Rahul,
> Thanks a lot for your reply.
>
> I have done my stuff by using an array of value objects.
> Wht I was trying to point out was Java2WSDL generates a proper schema defn
> for a 1D String[], but not for a 2D String[].
>
> Thanks again,
> Chinmay
>
> Rahul Devgan <rdevgan@gmail.com> wrote:
> If I understand you correctly, you are trying to return string pairs, with a
> key and corresponding value?
>
> If this is right, 1. you could either use a Hashmap (axis has buitl in
> serializers for hasmap, for sake of brevity both your client must also be a
> java one. I am not saying that you can not invoke such a service from .Net
> clients, that would require you to use no 2 on client side) or 2. an array
> of a value objects, their class being a simple one with 2 attributes, the
> key and value. Ofcoucrse, following the java bean rules and having getters
> and setters for both of them.
>
>
> On 12/22/06, c b <chinbaj_derby@yahoo.com> wrote:
> >
> > Hey Anne,
> > Thanks for the reply.
> > My thing works fine now.
> >
> > I have now tried returning a 2D String array, but the schema generated for
> it is also
> > similar to a 1D array. And the web service fails.
> >
> > have u come across anything like this??
> >
> > Thanks,
> > Chinmay
> >
> > Anne Thomas Manes < atmanes@gmail.com> wrote:
> > Use an array rather than a List.
> >
> >
> > On 12/15/06, c b wrote:
> > >
> > > Hi Axis-Users,
> > >
> > > I have a simple web service operation which returns a string. This was
> > > working fine for me.
> > > Recently I needed to change the return type from String to a
> > > List(ArrayList).
> > > I duly generated the new wsdl and a new client and tried to invoke the
> newly
> > > deployed
> > > web service.
> > > But it gives me an AXIS fault.
> > > I checked the newly generated WSDL and the response element now shows
> the
> > > type as
> > > "xsd:anytype".
> > > Does this have anything to do with the axis fault that I am getting?
> > >
> > > Thanks,
> > > Chinmay.
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>
>
> --
> warm regards,
> Rahul Devgan
> Cell: +61-412163412
> --- there is no pleasure in life like music ---
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message