Hi , Team I am trying to read the node values , but getting empty values. From my SOAP service response i need to read node values. I got list nodes and each node i need get the values ...
still i am getting below Error, when I am running in SOAPUI
groovy.lang.MissingMethodException: No signature of method: groovy.util.slurpersupport.NodeChildren.info() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [A : MCK] Possible solutions: find(), any(), find(groovy.lang.Closure), find(groovy.lang.Closure), is(java.lang.Object), any(groovy.lang.Closure) error at line: 84
If you see the solution, it is provided as per the request including desired output. May be, the solution should have been tried at least once to know if it working.
If it did not work for after replacing println with log.info, then the reason is simple. There was "BM.with" leading to confusion whose child object are A, V, VCP etc., works with println though.
Better solution would be to replace the closure with below code than what you came up with.
//Closure to show the BM node details def showBM = { BM, index -> log.info "Detail of BM node ${index}" BM.with { showLog A showLog V showLog VC showLog VCP showLog W } }