Hi,

I would like to know if it is possible to have local reference of the wsdl
file in the SEI instead of the hard coding generated by wsdl2java using the
maven plugin cxf-codegen :

Here is a snapshot :

@WebServiceClient(name = "ReportIncidentEndpointService", 
                  wsdlLocation =
"file:/c:/workspace/osgi/reportincident.domain/src/main/resources/wsdl/report_incident.wsdl",
                  targetNamespace =
"http://reportincident.example.camel.apache.org";) 
public class ReportIncidentEndpointService extends Service {

    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new
QName("http://reportincident.example.camel.apache.org";,
"ReportIncidentEndpointService");
    public final static QName ReportIncidentService = new
QName("http://reportincident.example.camel.apache.org";,
"ReportIncidentService");
    static {
        URL url = null;
        try {
            url = new
URL("file:/c:/workspace/osgi/reportincident.domain/src/main/resources/wsdl/report_incident.wsdl");
        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from
file:/c:/workspace/osgi/reportincident.domain/src/main/resources/wsdl/report_incident.wsdl");
            // e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

Regards,



-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/How-to-avoid-to-generate-hard-coded-wsdl-file-reference---wsdl2java-tp22349214p22349214.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to