skarfiol
11 years agoNew Contributor
Mocking Groovy question
Hi all,
I don't know how soapUI handles wsdls, and webservice calls internally, but I'd suppose that it generates classes from the wsdl/xsds (perhaps JAXB classes using wsimport(?))..
My theoretical question is whether these classes can be used/accessed in mocking (if they exist at all ) with Groovy, to marshal some previously saved mockresponse xml into an object, and manipulate the object instead of the XML-level modification with XPath tools, and then unmarshal the object to generate the XML response.
Thanks,
Andras
I don't know how soapUI handles wsdls, and webservice calls internally, but I'd suppose that it generates classes from the wsdl/xsds (perhaps JAXB classes using wsimport(?))..
My theoretical question is whether these classes can be used/accessed in mocking (if they exist at all ) with Groovy, to marshal some previously saved mockresponse xml into an object, and manipulate the object instead of the XML-level modification with XPath tools, and then unmarshal the object to generate the XML response.
Thanks,
Andras