I meant a posting AT forums.sun.com I got it.
Someone posted a simple example of what I was looking for and your
response helped me find it.

Thanks again,
Marc

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 12, 2008 10:50 AM
To: axis-user@ws.apache.org
Subject: RE: Array question

Thanks.
Between this and posting at forums.sun.com I got it.

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 12, 2008 8:00 AM
To: axis-user@ws.apache.org
Subject: Re: Array question

Marc,

You must register a type mapping for the SiteDTO type. (I suggest
using a BeanMapping.)

Anne

On Thu, Sep 11, 2008 at 5:26 PM,  <[EMAIL PROTECTED]> wrote:
> Thanks for your help!
>
>
>
> Marc
>
>
>
> ________________________________
>
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2008 5:14 PM
> To: axis-user@ws.apache.org
> Subject: RE: Array question
>
>
>
> sounds like the service faulted
> pls supply the wsdl so we can try
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
Sender
> does not endorse distribution to any party other than intended
recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
> ________________________________
>
> Subject: RE: Array question
> Date: Thu, 11 Sep 2008 15:51:48 -0500
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
>
> Hi Martin,
>
>
>
> Thanks for the input but it didn't work.
>
> Here's the code with the additional line you indicated I needed.
>
> I'm still getting: org.xml.sax.SAXException: No deserializer for
> {urn:DemandResponse}SiteDTO
>
>
>
>             call.setOperationName( "getSites" );
>
>             call.setReturnType( XMLType.SOAP_ARRAY );
>
>             call.registerTypeMapping(ArrayList.class,
XMLType.SOAP_ARRAY,
> new ArraySerializerFactory(), new ArrayDeserializerFactory());
>
>             call.addParameter("tokenId",
org.apache.axis.Constants.XSD_INT,
> javax.xml.rpc.ParameterMode.IN);
>
>             call.addParameter("username",
> org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
>
>             sites = (ArrayList) call.invoke( new Object[] { tokenId,
> "mhorv1" } );
>
>
>
> ________________________________
>
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2008 5:51 PM
> To: axis-user@ws.apache.org
> Subject: RE: Array question
>
>
>
> Marc-
>
> you'll need to associate the ArrayList java type to SOAP_ARRAY via
> call.registerTypeMapping(ArrayList.class, XMLType.SOAP_ARRAY, new
> ArraySerializerFactory(), new ArrayDeserializerFactory());<BR>
>
> then the call with a cast to ArrayList should work..<BR>
> ArrayList results = (ArrayList)call.invoke(...);<BR>
>
>
>
> BTW: the version of your axis implementation is REALLY outdated you
might
> want to think about updating to Axis 2..<BR>
>
>
>
>
>
>
>
> HTH<BR>
>
>
>
> Martin<BR>
>
>
>
> NB: be sure to do the registerTypeMapping for all the params as
well..<BR>
>
>
>
> ______________________________________________
>
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
Sender
> does not endorse distribution to any party other than intended
recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
> ________________________________
>
> Subject: Array question
> Date: Mon, 8 Sep 2008 15:22:17 -0500
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
>
> Hi there.
>
>
>
> I was wondering if someone could provide me with an example of (or
point me
> in the direction of) a java client which calls a web service that
returns an
> array of a bean.
>
> I'm using Axis 1.4 dated April 22, 2006 and have already researched
this
> question only to find the majority of the responses were related to
earlier
> releases.
>
>
>
> The relevant portion of my client code is:
>
>
>
> call.setOperationName( "getSites" );
>
> call.setReturnType( XMLType.SOAP_ARRAY );
>
> call.addParameter("tokenId", org.apache.axis.Constants.XSD_INT,
> javax.xml.rpc.ParameterMode.IN);
>
> call.addParameter("username", org.apache.axis.Constants.XSD_STRING,
> javax.xml.rpc.ParameterMode.IN);
>
> Object[] obj = (Object[]) call.invoke( new Object[] { tokenId, "test"
} );
>
>
>
> I'm receiving the following exception:
>
> org.xml.sax.SAXException: No deserializer for
{urn:DemandResponse}SiteDTO
>
>
>
> I'm sure I'm missing something in the client but I don't
know/understand
> what it is.
>
> I wrote the original interface and implementation and then used
Java2Wsdl
> and Wsdl2Java to generate the wsdl, server side code and wsdd.
>
>
>
> Thanks,
>
> Marc
>
>
>
> ________________________________
>
> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
Learn Now
>
>
>
> ________________________________
>
> Stay up to date on your PC, the Web, and your mobile phone with
Windows
> Live. See Now
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to