NetBeans Forums

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

web service client generated code by 6.9 does not compile

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



Joined: 12 Apr 2009
Posts: 5

PostPosted: Fri Jul 02, 2010 1:30 pm    Post subject: web service client generated code by 6.9 does not compile Reply with quote

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

PostPosted: Fri Jul 02, 2010 1:58 pm    Post subject: Reply with quote

solved by adding property target=2.1 to the wsimport section of web service attributes
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