4 Replies Latest reply on May 9, 2006 2:57 AM by Thomas Diesler

    Deploying service with arrays

    Dan Smith Newbie

      I've done a bunch of searching around on this already and have found a solution, but I'm a little confused about if this is my only option. I have a simple service which returns an array of a simple complex type. I'm using wscompile to build the service, everything deploys fine, but when invoked I get serialization errors. (btw, I'm on 4.0.2, and it's too late to upgrade now).

      I've figured out what the problem, and based on this post in the wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EEArrayTypeMapping I got everything working.

      My problem is, that this is a terrible solution. So much for this stuff being generated by the build. Now I have to manually modify generated files? Is there are a better way? Can ws4ee-deployment.xml be used for this?

      Thanks,

        • 1. Re: Deploying service with arrays
          esvehla Newbie

          I feel your pain!

          I have been through your problem on my current project. What we found is that you had to manually manipulate the files which is not a solution for us.

          We ended up moving to JBoss 4.0.4.CR2 which gets you past this problem but we have a new set of problems.

          Have you done any wsdltojava? We are looking to take this approach as opposed to the java2wsdl approach to get past our annotations problems.

          Let me know if you have any suggestions.

          Ernie

          • 2. Re: Deploying service with arrays
            Dan Smith Newbie

             

            "esvehla" wrote:

            We ended up moving to JBoss 4.0.4.CR2 which gets you past this problem but we have a new set of problems.

            Actually, that was going to my next question. Does 4.0.4 fix the problem with arrays?

            I have not considered starting from WSDL since I am actually exposing a bunch of existing business logic, so it doesn't make sense to go this way.

            • 3. Re: Deploying service with arrays
              esvehla Newbie

              yep, 4.0.4.CR2 fixed the array problem.

              It introduced problems with the JSR-181 annotations not working completely, specifically the @webparam was not working correctly resulting in generated wsdl that has arguments like DATE_1, or STRING_1

              E

              • 4. Re: Deploying service with arrays
                Thomas Diesler Master

                There is a testcase that covers @WebParam

                tdiesler@satellite /cygdrive/d/svn/jbossws/trunk/src/test
                $ ant -Dtest=org.jboss.test.ws.jsr181.webparam.JSR181WebParamTestCase one-test
                one-test:
                 [junit] Running org.jboss.test.ws.jsr181.webparam.JSR181WebParamTestCase
                 [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 7.45 sec