NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

wsdl generated jax-ws type classes

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
luqiyi



Joined: 25 Aug 2009
Posts: 2

PostPosted: Wed Aug 26, 2009 12:41 am    Post subject: wsdl generated jax-ws type classes Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo