Forum Discussion

soapui_newbee's avatar
soapui_newbee
New Contributor
16 years ago

Mocking http web service requests without a wsdl or wadl

Hello,

Is it possible to mock a basic http / xml web service in SOAPUI (free version) without a WSDL or WADL.

I presume the mocked response will need to come from an active mock service as it must be returned following a call into a SOAPUI service url.

Without a WSDL no mock operations exist to send a mock response back, so i'm stuck.

Please help i'm very new to groovy, java. 

Thanks
  • I am not really sure what you need here. The simplest way would be to write the WSDL file, and use it to generate the MockService...

    What are you trying to use this for?

    /Nenad
    http://eviware.com
  • Thanks for your response. We have an external service we contact by hand crafting the http request (in C
    ++ / C#).

    We would like to re-direct these requests to SOAPUI (via the URL) and return a re-defined mock response.

    Is creating a mock WSDL the only way to do this?
  • Hello,

    You can also use a MockService as a standard HTTP server for serving static content. This could work for serving static responses. To do this, simply set the Docroot in the MockService options.

    Regards,
    Dain
    eviware support