NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
luqiyi
Joined: 25 Aug 2009 Posts: 2
|
Posted: Wed Aug 26, 2009 12:41 am Post subject: wsdl generated jax-ws type classes |
|
|
when I add a web service to netbean, netbean will generate jax-ws sources.
But the type classes generated don't have constructor, so I can only use default constructor to new it and then use setXXX to set values. I also tried enable and disable Wrapper Style in webservice attribute but it is still same.
Any idea?
Here is an example:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Data", propOrder = {
"type",
"field",
"value",
"longName"
})
public class Data {
protected DataType type;
@XmlElement(required = true)
protected FieldType field;
@XmlElement(required = true)
protected String value;
protected String longName;
.... without a constructor
I expect to new a Data in this way:
Data aData = new Data(whatever, whatever, whatever, whatever);
it does not work. So I have to do this
Data aData = new Data();
aData.setXXX(whatever);
.
.
.
Kind regards,
Edward |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|