You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Matt Inger (JIRA)" <ji...@apache.org> on 2010/01/26 18:40:34 UTC

[jira] Created: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

JAX-WS Frontend generating WSDL with no operations or types
-----------------------------------------------------------

                 Key: DOSGI-55
                 URL: https://issues.apache.org/jira/browse/DOSGI-55
             Project: CXF Distributed OSGi
          Issue Type: Bug
    Affects Versions: 1.1
            Reporter: Matt Inger


I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:

{code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}

Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:

{code}
@WebService
public interface WidgetService {
    @WebMethod
    void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
}
{code}

{code}
    <osgi.import.package>
    javax.jws,
    javax.jws.soap,
    javax.xml.bind.annotation,
    javax.xml.bind.annotation.adapters,
    ...
    </osgi.import.package>
{code}

and then set the front end to use jaxws:

{code}
  <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
    <osgi:service-properties>
      <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
      <entry key="service.exported.configs" value="org.apache.cxf.ws" />
      <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
      <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
      <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
    </osgi:service-properties>
  </osgi:service>
{code}


I would have expected a proper WSDL to be generated which wanted a payload like this:

{code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}

However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.

{code}
<wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <wsdl:portType name="WidgetWebService">
  </wsdl:portType>
  <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
  </wsdl:binding>
  <wsdl:service name="WidgetWebServiceService">
    <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
      <soap:address location="http://localhost:9090/widget" />

    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
{code}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834709#action_12834709 ] 

Sergey Beryozkin commented on DOSGI-55:
---------------------------------------

It all points to the fact that jaxws annotations are not imported. How do you import them ?
Do you have separate interface and impl bundles ? Please make sure both import the jaxws annotations...

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835026#action_12835026 ] 

Matt Inger edited comment on DOSGI-55 at 2/17/10 11:03 PM:
-----------------------------------------------------------

Removing the geronimo-ws jar seems to eventually have helped, as I can now use jax-ws annotations and generate a proper wsdl , Though I do see a wierdness in the examination of the exports of the org.eclipse.osgi bundle.  I will say that I don't want this defect  closed because I had to do a lot of wrangling, including modifying and compiling cxf-2.2.4 and dosgi on my own in order to get this to work.  I think that dosgi either needs to be updated to work with the latest spring and spring-dm versions, and work with dmServer as well.

    javax.jws 0.0.0
    javax.jws 2.0.0
        imported by com.fiberlink.service.widget.widget-web-service-impl 1.0.0.SNAPSHOT [104]
        imported by com.fiberlink.service.widget.widget-web-service-api 1.0.0.SNAPSHOT [103]
        imported by com.springsource.server.admin.web 2.0.0.RELEASE [66]
        imported by com.springsource.server.splash 2.0.0.RELEASE [68]
        imported by org.springframework.web 3.0.0.RELEASE [44]
        imported by org.apache.cxf.bundle-minimal 2.2.5 [94]
        imported by com.springsource.server.repository.hosted-2.0.0.RELEASE-com.springsource.server.repository.hosted.web 2.0.0.RELEASE [58]
    javax.jws.soap 0.0.0
    javax.jws.soap 2.0.0
        imported by com.fiberlink.service.widget.widget-web-service-impl 1.0.0.SNAPSHOT [104]
        imported by com.fiberlink.service.widget.widget-web-service-api 1.0.0.SNAPSHOT [103]
        imported by com.springsource.server.admin.web 2.0.0.RELEASE [66]
        imported by com.springsource.server.splash 2.0.0.RELEASE [68]
        imported by org.apache.cxf.bundle-minimal 2.2.5 [94]
        imported by com.springsource.server.repository.hosted-2.0.0.RELEASE-com.springsource.server.repository.hosted.web 2.0.0.RELEASE [58]



The changes I had to make in addition to removing the geronimo-ws bundle from the container:

cxf-2.2.5:
{code}
Index: distribution/bundle/minimal/pom.xml
===================================================================
--- distribution/bundle/minimal/pom.xml	(revision 910806)
+++ distribution/bundle/minimal/pom.xml	(working copy)
@@ -173,6 +173,7 @@
                             antlr*;resolution:=optional,
                             com.ibm*;resolution:=optional,
                             com.sun*;resolution:=optional,
+                            com.sun.xml.bind.v2;resolution:=optional,
                             javax.jms*;resolution:=optional,
                             javax.ws.rs*;resolution:=optional,
                             com.ctc.wstx.msv*;resolution:=optional,
Index: parent/pom.xml
===================================================================
--- parent/pom.xml	(revision 910806)
+++ parent/pom.xml	(working copy)
@@ -57,7 +57,10 @@
         <msv.version>2009.1</msv.version>
         <rhino.version>1.7R1</rhino.version>
         <saaj.version>1.3</saaj.version>
+<!--
         <spring.version>2.5.5</spring.version>
+-->
+        <spring.version>3.0.0.RELEASE</spring.version>
         <spring.mock>spring-test</spring.mock>
         <stax.impl.groupId>org.codehaus.woodstox</stax.impl.groupId>
         <stax.impl.artifactId>wstx-asl</stax.impl.artifactId>
{code}

dosgi_trunk:
{code}
Index: parent/pom.xml
===================================================================
--- parent/pom.xml	(revision 910791)
+++ parent/pom.xml	(working copy)
@@ -20,8 +20,12 @@
     <properties>
         <cxf.version>2.2.5</cxf.version>
         <felix.version>1.8.0</felix.version>
+<!--
         <spring.version>2.5.6</spring.version>
         <spring.osgi.version>1.2.0</spring.osgi.version>
+-->
+        <spring.version>3.0.0.RELEASE</spring.version>
+        <spring.osgi.version>1.2.1</spring.osgi.version>
         <zookeeper.version>3.2.1</zookeeper.version>
 
         <remote.service.admin.interfaces.version>1.0.0</remote.service.admin.interfaces.version>
{code}




      was (Author: mattinger):
    Removing the geronimo-ws jar does not seem to help at all.  It still seems to thing there's a 2.0.0 package installed, but when i try the "package examine javax.jws 2.0.0" command,
it says there's no package with that version, evern though that shows up with the "package list" command.

  
> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863350#action_12863350 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

Any traction on applying this patch?

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>         Attachments: diff_cxf_2.2.5.txt, diff_dosgi_trunk.txt
>
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835026#action_12835026 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

Removing the geronimo-ws jar does not seem to help at all.  It still seems to thing there's a 2.0.0 package installed, but when i try the "package examine javax.jws 2.0.0" command,
it says there's no package with that version, evern though that shows up with the "package list" command.


> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805491#action_12805491 ] 

Matt Inger edited comment on DOSGI-55 at 1/27/10 12:11 PM:
-----------------------------------------------------------

jaxb itself seems to be fine, as the jaxb annotations are being respected as soon as I set the binding type to jaxb in the service properties.  It's strictly the jaxws frontend that is the issue, unless of course the jaxws bundle is having trouble seeing jaxb, but given the nature of the singlebundle approach, i don't see how that's likely.

      was (Author: mattinger):
    jaxb itself seems to be fine, as the jaxb annotations are being respected as soon as I set the binding type to jaxb in the service properties.  It's strictly the jaxws frontend that is the issue.
  
> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834929#action_12834929 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

The problem is that the org.eclipse bundle gets loaded automatically when dosgi is installed in singlebundle.  I've tried the multibundle with the same result, though I have
not tried it without the jaxws annotation bundle, as you have suggested.  I'm wondering though what will happen if tries to import

javax.jws;version="2.0.0" 

and all it finds is "0.0.0".  Is it going to allow it to resolve to the "0.0.0" bundle?  (You'll have to forgive my ignorance here, as I'm still relatively new to the osgi ballgame)

Also, it's a little confusing that dmServer is telling me that no one is importing either one of these packages.

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834816#action_12834816 ] 

Sergey Beryozkin commented on DOSGI-55:
---------------------------------------

Hi

This might be the cause of the problem. For some reasons Equinox also list javax.jws as system packages.
It has to work with a multibundle distribution, just do not install a geronimo bundle with the jws annotations.

Eoghan, if you read it, can you please comment ?

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834662#action_12834662 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

I've done some debugging, and this seems to be some sort of classloading issue going on here.  In particular, this particular method in the 
{code}org.apache.cxf.jaxws.support.JaxWsServiceConfiguration{code}
class seems to be having issues
{code}
   public Boolean isWebMethod(final Method method) {
        if (method == null
            || method.getReturnType().equals(Future.class)
            || method.getReturnType().equals(Response.class)
            || method.isSynthetic()) {
            return Boolean.FALSE;
        }
        WebMethod wm = method.getAnnotation(WebMethod.class);
        if (wm != null) {
            if (wm.exclude()) {
                return Boolean.FALSE;
            } else {
                return Boolean.TRUE;
            }
        } 
        if (method.getDeclaringClass().isInterface()) {
            return hasWebServiceAnnotation(method);
        }
        if (implInfo.getSEIClass() == null) {
            return hasWebServiceAnnotation(method);
        }
        return implInfo.getSEIClass().isAssignableFrom(method.getDeclaringClass());
    }
{code}

Specifically, the parts that are looking for the annotations.  Take for instance, the line:

{code}WebMethod wm = method.getAnnotation(WebMethod.class);{code}

Via the debugger, i have verified that the method in question has the approperiate WebMethod annotation, however, the result of the call above is a null value, which leads me to believe that the class
loader which is loading the service interface is loading it's own instance of the javax.jws.WebMethod class.  That is getting compared with an instance loaded by same classloader as the JaxWsServiceConfiguration
class.  Since the two classes, though code identical, are located at two different addresses, they are considered two different classes.  As a result, the method above doesn't believe there are any proper
annotations on the service interface.

I'm not exactly sure why this would be happening as dosgi bundle should be my only installed bundle with a jaxws implementation, though i will look into verifying that.

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834758#action_12834758 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

API Bundle:
As you can see below, I am importing both javax.jws and javax.jws.soap packages in both bundles, so I don't believe it's an import issue from my side.  I did
notice that there's two different versions of javax.jws available.


API Bundle:
{code}
Import-Package: com.fiberlink.service.widget.web.api;version="1.0.0.SN
 APSHOT",javax.jws;version="2.0.0",javax.jws.soap;version="2.0.0",java
 x.xml.bind.annotation;version="2.0.0"
{code}

IMPL Bundle:
{code}
Import-Package: com.fiberlink.service.widget.api;version="1.0.0.SNAPSH
 OT",com.fiberlink.service.widget.web.api;version="1.0.0.SNAPSHOT",com
 .fiberlink.service.widget.web.impl;version="1.0.0.SNAPSHOT",javax.jws
 ;version="2.0.0",javax.jws.soap;version="2.0.0",javax.xml.bind.annota
 tion;version="2.0.0",javax.xml.bind.annotation.adapters;version="2.0.
 0",org.springframework.beans.factory.annotation;version="3.0",org.spr
 ingframework.stereotype;version="3.0"
{code}

Here's the package report from dmServer:

{code}
:> package list
javax.jws                                                   0.0.0              0
javax.jws                                                   2.0.0             69
javax.jws.soap                                              0.0.0              0
javax.jws.soap                                              2.0.0             69

:> package examine javax.jws 0.0.0

Exporter: org.eclipse.osgi 3.5.1.R35x_v20091005 [0]

Attributes:
    None

Directives:
    x-equinox-ee:
        0
    x-internal:
        false

Importer(s):
    None

:> package examine javax.jws 2.0.0

Exporter: cxf-dosgi-ri-singlebundle-distribution 1.1.0 [69]

Attributes:
    None

Directives:
    x-equinox-ee:
        -1
    x-internal:
        false

Importer(s):
    None
{code}

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Inger updated DOSGI-55:
----------------------------

    Attachment: diff_dosgi_trunk.txt
                diff_cxf_2.2.5.txt

I'm attaching diff files for the changes I made to CXF and dosgi to make them compatible with dmServer.  This involved making a switch over to spring 3.0.0 and spring-dm 1.2.1.  I made new distributions for both the singlebundle and multibundle specific to spring-dm to eliminate the geronimo-ws-spec jar, and the spring and spring-dm jars from the distributions as they are not needed in that case.

In the case of the cxf-minimal bundle, I also fixed an import to add com.sun.xml.bind.v2 as well, which was missing.



> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>         Attachments: diff_cxf_2.2.5.txt, diff_dosgi_trunk.txt
>
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805491#action_12805491 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

jaxb itself seems to be fine, as the jaxb annotations are being respected as soon as I set the binding type to jaxb in the service properties.  It's strictly the jaxws frontend that is the issue.

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805447#action_12805447 ] 

Sergey Beryozkin commented on DOSGI-55:
---------------------------------------

Daniel reported that he had to update the bootstrap properties in his case to get JAXB available.
It is most likely an OSGI visibility issue (to do with some missing configuration, etc...)

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831685#action_12831685 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

I've tried to use the 1.2-SNAPSHOT on dmServer 2.0.0.RELEASE, hoping maybe the issue would be fixed in the 1.2-SNAPSHOT singlebundle distribution, but when I do that, I can't even get the endpoint to come up at all.  The bundles all start up fine, but the endpoint itself never gets exposed out.  I keep just getting 404 errors, with no clues in the servicibility log as to why.

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DOSGI-55) JAX-WS Frontend generating WSDL with no operations or types

Posted by "Matt Inger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DOSGI-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835036#action_12835036 ] 

Matt Inger commented on DOSGI-55:
---------------------------------

Now, if only i could figure out how to use ws-security with all of this, i'd be in good shape....

> JAX-WS Frontend generating WSDL with no operations or types
> -----------------------------------------------------------
>
>                 Key: DOSGI-55
>                 URL: https://issues.apache.org/jira/browse/DOSGI-55
>             Project: CXF Distributed OSGi
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Matt Inger
>
> I've setup a web service interface and implementation with the proper annotations (@WebService, @WebMethod, @WebParam) and so forth, and deployed the dosgi singlebundle distribution into spring dmServer 2.0.  When setup for the simple frontend with jaxb bindings, I get a somewhat ok result, though the generated wsdl exceptions a message payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> Obviously this is not optimal, so i decided to switch to JAX-WS, and added the appropriate package imports in my manifest:
> {code}
> @WebService
> public interface WidgetService {
>     @WebMethod
>     void addWidget(@WebParam(name="widgetData") WidgetData widgetData);
> }
> {code}
> {code}
>     <osgi.import.package>
>     javax.jws,
>     javax.jws.soap,
>     javax.xml.bind.annotation,
>     javax.xml.bind.annotation.adapters,
>     ...
>     </osgi.import.package>
> {code}
> and then set the front end to use jaxws:
> {code}
>   <osgi:service ref="WidgetWebService" interface="com.fiberlink.service.widget.web.api.WidgetWebService">
>     <osgi:service-properties>
>       <entry key="service.exported.interfaces" value="com.fiberlink.service.widget.web.api.WidgetWebService" />
>       <entry key="service.exported.configs" value="org.apache.cxf.ws" />
>       <entry key="org.apache.cxf.ws.frontend" value="jaxws" />
>       <entry key="org.apache.cxf.ws.databinding" value="jaxb" />
>       <entry key="org.apache.cxf.ws.address" value="http://localhost:9090/widget" />
>     </osgi:service-properties>
>   </osgi:service>
> {code}
> I would have expected a proper WSDL to be generated which wanted a payload like this:
> {code}<ns1:addWidget><widgetData>...<widgetData></ns1:addWidget>{code}
> However, what I got from the WSDL was this.  Posts I have googled on indicated there might be something wrong with singlebundle distribution, but the links to the solution are expired, and i've had no luck getting the multibundle distribution working.  Everytime I try to deploy a webservice using the multi-bundle distro, it never ends up deploying anything on the requested port #.  Same with the 1.2 SNAPSHOT version as well.  Seems I'm running into roadblocks everywhere.
> {code}
> <wsdl:definitions name="WidgetWebServiceService" targetNamespace="http://api.web.widget.service.fiberlink.com/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.web.widget.service.fiberlink.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>   <wsdl:portType name="WidgetWebService">
>   </wsdl:portType>
>   <wsdl:binding name="WidgetWebServiceServiceSoapBinding" type="tns:WidgetWebService">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
>   </wsdl:binding>
>   <wsdl:service name="WidgetWebServiceService">
>     <wsdl:port binding="tns:WidgetWebServiceServiceSoapBinding" name="WidgetWebServicePort">
>       <soap:address location="http://localhost:9090/widget" />
>     </wsdl:port>
>   </wsdl:service>
> </wsdl:definitions>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.