0 Replies Latest reply on Dec 30, 2011 3:57 PM by Nicholas DiPiazza

    How to share objects with WSConsume?

    Nicholas DiPiazza Novice

      I use WS Consume to generate several web services.

       

      Each web service is in a different package, but they share Objects.

       

      However, each time I run wsconsume to create the separate packages from the WSDL's, each shared object is in that web service's package.

       

      Is there anyway to share Objects from a web service?

       

      Example:

       

      "c:\software\jboss-as-7.0.2.Final\bin\wsconsume.bat" --package=com.nicholas.webservice.client.user --output=c:\jbossdev\ws http://localhost:8080/supportApp/UserService?wsdl

      "c:\software\jboss-as-7.0.2.Final\bin\wsconsume.bat" --package=com.nicholas.webservice.client.group --output=c:\jbossdev\ws http://localhost:8080/supportApp/GroupService?wsdl

       

      UserService and GroupService both use the classes User and Group, so we have 2 User objects and 2 Group objects.

       

      com.nicholas.webservice.client.user.User

      com.nicholas.webservice.client.user.Group

      com.nicholas.webservice.client.group.User

      com.nicholas.webservice.client.group.Group

       

      How can I have wsconsume generate a shared object so I can have only 2 objects

       

      com.nicholas.webservice.client.user.User

      com.nicholas.webservice.client.group.Group

       

      or something like that?