There is a wsdlLocation flag on the code generator to specify the location that is spit into the code. The two common things to stick in there are:
1) META-INF/wsdl/..... to resolve it from the war/classpath type thing 2) Some location that a catalog is then used to fully resolve. Dan On Thu March 5 2009 5:42:41 am cmoulliard wrote: > 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/repo >rt_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/repor >t_incident.wsdl"); // e.printStackTrace(); > } > WSDL_LOCATION = url; > } > > Regards, > > > > ----- > Charles Moulliard > SOA Architect > > My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- Daniel Kulp [email protected] http://www.dankulp.com/blog
