NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
hybris
Joined: 12 Apr 2009 Posts: 5
|
Posted: Fri Jul 02, 2010 1:30 pm Post subject: web service client generated code by 6.9 does not compile |
|
|
Hi,
i just upgraded to 6.9 and i decided to rebuild a web service client i had made with 6.8.
Since it's all generated stuff i decided to recreate the client from scratch.
The wsdl was generated by a 6.8 project and states:
| Code: | | Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-749-SNAPSHOT. |
The generated source code for the client by version 6.9 states:
| Code: | /**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2-hudson-752-
* Generated source version: 2.2
*
*/ |
The version mismatch sounds strange and in fact ,the problem i have is that the generated code does not compile, 5 constructors are generated for the client class but only 2 of them are correct because the parent class Service only has a 2 parameter constructor:
| Code: |
THIS IS OK
public ReelCodeGeneratorWSService() {
super(__getWsdlLocation(), REELCODEGENERATORWSSERVICE_QNAME);
}
ERROR
public ReelCodeGeneratorWSService(WebServiceFeature... features) {
super(__getWsdlLocation(), REELCODEGENERATORWSSERVICE_QNAME, features);
}
OK
public ReelCodeGeneratorWSService(URL wsdlLocation) {
super(wsdlLocation, REELCODEGENERATORWSSERVICE_QNAME);
}
ERROR
public ReelCodeGeneratorWSService(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, REELCODEGENERATORWSSERVICE_QNAME, features);
}
ERROR
public ReelCodeGeneratorWSService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public ReelCodeGeneratorWSService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
} |
i do not know how to fix this. |
|
| Back to top |
|
 |
hybris
Joined: 12 Apr 2009 Posts: 5
|
Posted: Fri Jul 02, 2010 1:58 pm Post subject: |
|
|
| solved by adding property target=2.1 to the wsimport section of web service attributes |
|
| 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
|
|