[jboss-user] [JBoss Web Services CXF] - WSDL path being used by generated CXF code

Anand Jayaraman do-not-reply at jboss.com
Thu Aug 12 06:08:08 EDT 2010

Anand Jayaraman [http://community.jboss.org/people/anand201301] created the discussion

"WSDL path being used by generated CXF code"

To view the discussion, visit: http://community.jboss.org/message/557061#557061


On running org.apache.cxf.tools.wsdlto.WSDLToJava it generates CXF stubs.

Code snippet of the generated code is shown below:

@WebServiceClient(name = "ExampleServiceCXFServiceService", 
                  *wsdlLocation = "file:D:/CVSMSTR8/Head/hello.wsdl",
*                  targetNamespace = " http://ws.example.diamond.perotsystems.com/ http://ws.example.diamond.perotsystems.com/") 
public class ExampleServiceCXFServiceService extends Service {
    public final static URL WSDL_LOCATION;
    public final static QName SERVICE = new QName(" http://ws.example.diamond.perotsystems.com/ http://ws.example.diamond.perotsystems.com/", "ExampleServiceCXFServiceService");
    public final static QName ExampleServiceCXFServicePort = new QName(" http://ws.example.diamond.perotsystems.com/ http://ws.example.diamond.perotsystems.com/", "ExampleServiceCXFServicePort");
    static {
        URL url = null;
        try {
         *   url = new URL("file:D:/CVSMSTR8/Head/hello.wsdl");
*        } catch (MalformedURLException e) {
            System.err.println("Can not initialize the default wsdl from D:/CVSMSTR8/Head/hello.wsdl");
            // e.printStackTrace();
        WSDL_LOCATION = url;

The WSDL location is referenced in the generated code.

Is there a way to generate CXF stubs which do not use WSDL location?



Reply to this message by going to Community

Start a new discussion in JBoss Web Services CXF at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100812/a04025d7/attachment.html 

More information about the jboss-user mailing list