Forum Discussion

callatis's avatar
callatis
Occasional Contributor
14 years ago

Java API

We are looking to customize the generation of the soapUI sample request message programmatically in Java, as well as generate a sample response. In particular, we'd like to generate the sample request and response in a different format (e.g. JSON). Is there any API doc that could help us get bootstrapped?

Thanks,
-- Michael

6 Replies

  • callatis's avatar
    callatis
    Occasional Contributor
    Could anybody help me please? We're trying to put together a POC that will result in a large software company embracing soapUI internally...
  • callatis's avatar
    callatis
    Occasional Contributor
    Nenad,

    Thank you for your reply. Here's exactly what we'd like to do:

    • Trigger the generation of a project based on a given WSDL (programmatically).

    • Add some custom headers to the generated requests. (Very important!)

    • Generate a test suite with a test case for each operation, with certain template steps (some script steps, and a request step with the generated request template - either SOAP or HTTP).

    As a bonus, we'd also like to customize the generation of the request to include:

    • all options of an enum element, if the element has maxOccurs=unlimited;

    • all other options of an enum element as comments, if the element has maxOccurs=unlimited.


    Again, we would like to do all these from Java. I found the API and took a look at it, but the comments are very scarce and it's difficult to figure out where to start. A brief tutorial would be very helpful, if you guys happen to have any...

    In addition to the generation part, we'd also like to run soapUI from within Java and redirect its output somehow, although this is a bit hazy at the moment.

    Any help will be greatly appreciated. Thanks in advance!
    -- Michael