5 Replies Latest reply: Mar 2, 2010 9:25 AM by Stefano Maestri RSS

cant make wise to work

Alexandre Lourenço Newbie

Hym, I am trying to use Wise for the first time, but I get stuck on the wise generation of the jaxws, here is the code of my web service:

 

package com.ssgu.ws;
  • 1. Re: cant make wise to work
    Alexandre Lourenço Newbie
    dont know why it dint show the codes, puting again, basically, when it reachs the build() method, I got compile errors, the web service work if I try to use with the stubs generated by eclipse, but I am trying to implement with wise because it seens a lot easier to manage things like puting ws-security on the ws.Can someone help me, please?
  • 2. Re: cant make wise to work
    Stefano Maestri Expert

    Hi Alexander,

     

    few questions to help you better:

    Which version of Wise are you using? jboss-beans.xml is no more needed in 1.1. If you are using 1.0, please upgrade to 1.1 it fixes a lot of problems.

    Which JDK are you using?

     

    thanks for the interest

     

    bye

    S.

  • 3. Re: cant make wise to work
    Alexandre Lourenço Newbie

    hy, I am using wise 1.1 with jdk 5, one thing I forgot to mention is that the client class is not on the same project of the server method, the client is standalone, not deployed inside the server´s ear, dont know if this make any difference.

    thanks

  • 4. Re: cant make wise to work
    Alexandre Lourenço Newbie
    By what I see from the errors (see the errors file), it looks like wise create a version of the web service itself and try to compile alongside the other generated files, and them he crash in compiler errors because he didnt put the jar for the annotations like @WebService for example in the classpath of the javac command, but why he generate the server code too?cant he just generate the client files?thanks
  • 5. Re: cant make wise to work
    Stefano Maestri Expert

    Yep, it's how Wise works: it calls wsconsume api and generate jaxws stubs. Then use it by reflection to call the webservice.

     

    To do its magic, Wise needs a JDK (non JRE because it use compiler apis) and a lot of libraries. In our distribution you can find a samples doing exactly what you are trying to do: /wise-1.1/samples/interactiveHelloWorld/

    Please have a look to its build.xml (and parent builds) to get that is using all libraries presents /wise-1.1/samples/lib

     

    hoping I've answered your question.

    Anyway feel free to get back to me if you have any further questions.

     

    bye

    S.