The Artima Developer Community
Sponsored Link

Web Services Forum
Axis : problem with java.util.List objects !

4 replies on 1 page. Most recent reply: Dec 15, 2005 4:00 AM by Marin Tzvetkov

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Y

Posts: 2
Nickname: yann57
Registered: Jul, 2005

Axis : problem with java.util.List objects ! Posted: Jul 22, 2005 2:59 AM
Reply to this message Reply
Advertisement
Hi,
I'm working on a web service project with axis and have some problems with the generated java classes by the axis tools :

I start from a java interface "EmplloyeeAxis" that uses an "Employee" object.
This object has a few attributes including a java.util.List attribute "phoneList"

I create the WSDL descriptor with java2wsdl
And then I generate the bindings and the deploy.wsdd with wsdl2java

And.... MY PROBLEM is that axis has changed the declaration of my attribute "phonelist" into the type Object[] !!!

So... I'm looking for a solution ... changing the java2wsdl or wsdl2java options perhaps...?

If someone got an idea to fix this, thx a lot !

PS: I also speak french so you could also answer me "en français" if you want :)


Geoff Raeder

Posts: 2
Nickname: graeder
Registered: Jul, 2005

Re: Axis : problem with java.util.List objects ! Posted: Jul 28, 2005 9:55 AM
Reply to this message Reply
Why not just have you clients use Object[]? It's more platform compatible. If you really want List, register a beanMapping for it in your wsdd.

Y

Posts: 2
Nickname: yann57
Registered: Jul, 2005

Re: Axis : problem with java.util.List objects ! Posted: Jul 29, 2005 7:04 AM
Reply to this message Reply
Thx for your reply Geoff,

Why not just have you clients use Object[]? --> because I already have programs with methods using the attribute as a List and I can't re-program all previous work...

register a beanMapping for it in your wsdd --> could you please give me an example of beanmapping with a list ?

Sebastián

Posts: 1
Nickname: sebas
Registered: Sep, 2005

Re: Axis : problem with java.util.List objects ! Posted: Sep 7, 2005 8:45 AM
Reply to this message Reply
I have a similar situation.
I have a java.util.List within a DTO and the service returns the following message:

org.xml.sax.SAXException: No object was found for class type interface java.util.List

Can you tell me the typeMapping I have to put in my wsdd?

Thanks and sorry for my english :).

Marin Tzvetkov

Posts: 3
Nickname: mtzvetkov
Registered: Dec, 2005

Re: Axis : problem with java.util.List objects ! Posted: Dec 15, 2005 4:00 AM
Reply to this message Reply
Hi sebastian,
i have the same problem, but with java.util.Hashtable. Do you alredy have the solution. It might help me

Flat View: This topic has 4 replies on 1 page
Topic: How to serialize java.util.Hashtable element in JavaBean Previous Topic   Next Topic Topic: unable to locate a .class file from a jar file in classpath

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use