Skip to main content

type to Java List mapping

3 replies [Last post]
mdrescher
Offline
Joined: 2007-02-27
Points: 0

Hi,

I have a WSDL operation referring to an XML Element who's type is like this:

---------- SNIP ---------- SNIP ---------- SNIP ---------- SNIP ----------
...

---------- SNIP ---------- SNIP ---------- SNIP ---------- SNIP ----------

Consequently, the element gets mapped to a JAXBElement> in the ObjectFactory like this:
---------- SNIP ---------- SNIP ---------- SNIP ---------- SNIP ----------
@XmlElementDecl(namespace = "http://example.com", name = "ParameterQNames")
public JAXBElement> createParameterQNames(List value) {
return new JAXBElement>(_ParameterQNames_QNAME, ((Class) List.class), null, ((List ) value));
}
---------- SNIP ---------- SNIP ---------- SNIP ---------- SNIP ----------

I can use it as expected, i.e. on the wire I get whitespace separated QNames as the value, but when check the published WSDL, I get the following:

---------- SNIP ---------- SNIP ---------- SNIP ---------- SNIP ----------

...

...

---------- SNIP ---------- SNIP ---------- SNIP ---------- SNIP ----------

What goes wrong here? If I would re-tool from the published WSDL, I would get the wrong classes generated!

Cheers,
Michelo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mdrescher
Offline
Joined: 2007-02-27
Points: 0

*bump*

Can the developers please shed some light on this, please?

Cheers,
Michel

bhaktimehta
Offline
Joined: 2004-03-18
Points: 0

This sounds like a bug while doing wsgen. Can you file an issue on https://jax-ws.dev.java.net/issues
Regards,
Bhakti

mdrescher
Offline
Joined: 2007-02-27
Points: 0