2 Replies Latest reply on Mar 16, 2010 7:40 AM by serg serg

    How build osgi bundle from WSDL file?

    serg serg Newbie

      Good day.

      1. I created a wsdl file.

      2. Continue using wsdl2java tool created java files from my wsdl

      3. Created a project structure

      . \ src \ main \ java \ com \ fh \ services (put the class files)

      . \ src \ main \ java \ com \ fh \ services \ types (put the class files types)

      . \ src \ main \ resources \ WEB-INF \ wsdl (put the original wsdl file)

      4. Build the project using maven as osgi bundle

      5. I copied the resulting jar file into hot deploy directory <apache-servicemix-4.2.0-fuse-01-00>

      6. My bundle is listed in karaf and there are no errors in the log

      7. When I try to view the wsdl from the browser referring to the address spelled out in my original wsdl file I have which does not get

       

      What am I doing wrong?

       

      In my ServiceImpl.java used annotation

       

      @javax.jws.WebService(

                            serviceName = "FService",

                            portName = "FPort",

                            targetNamespace = "http://services.fh.com",

                            wsdlLocation = "WEB-INF/wsdl/F.wsdl",

                            endpointInterface = "com.fh.services.FPortType")