Forum Discussion

gjedwards's avatar
gjedwards
Occasional Contributor
16 years ago

Generating java code from WSDL

Dear SoapUi experts,

I'm new to SoaupUI. (I hate that newbie excuse, but whatever, better declare it ...)  I'm on Mac OS X 6.5.2, Eclipse 3.0.1, SoapUI Eclipse plugin 3.0. Have created a Java project in Eclipse, loaded in a WSDL. The WSDL is good, it loads in standalone SoapUI and tests fine against a genuine target server.

I'm trying to generate Java code to run standalone, as a SOAP client. I go to "Generate code" in the SoapUI perspective and choose Axis 1.X Artifacts as the target. I ensure the output directory is set, and everything is as per the page "http://www.soapui.org/eclipse/soapui_nature.html". I hit button Generate, but get a message "must specify Axis location in Global Preferences".

From here on I'm stuck. I've tried specifying numerous locations, in the Mac environment above and a Win XP environment with the same install. I've added a pile of "lib" and ".../xxx-lib/yyy.jar" locations, including axis.jar and axis-ant.jar, to my CLASSPATH, in Mac and Win XP.

Can you advise how to get the Java code generation to complete ?

Thanks,
Greg E

4 Replies

  • gjedwards's avatar
    gjedwards
    Occasional Contributor
    Oops, I meant Mac OS X 10.6.2. I've got the Java 1.6 / 6.0 confusion. Or maybe it's my Irix 6.5.xx heritage coming back. And it's Win XP SP2, latest patches, for what that's worth.
    GE.
  • FlatBot's avatar
    FlatBot
    New Contributor
    Window -> Preferences -> soapUI -> Integrated Tools -> Axis 1.x setting.
  • bchandu141's avatar
    bchandu141
    New Contributor
    Hi,
    I am following the given instructions given in http://www.soapui.org/IDE-Plugins/soapui-nature.html,
    able to import the wsdl file, after clicking on 'Generate', it stuck every time.

    I have updated my eclipse with SoapUI plugin. Is there any jars need to be added?
    I cant find 'Add to Soapui project' option,As in the given instructions. i am unable to find that.

    And how to configure with Axis?

    Can any one provide solution on this, please?

    Regards,
    Chandu