Forum Discussion
sprocketx33
16 years agoOccasional Contributor
Thanks for the reply.
Yes.
1. Returns a list of strings in an array. The for loop loops through this list and if I log it I see the 4 strings I expect.
2. Is there a way to add a new xpath to the request??
3. In this example it would, but the key is it never sets the value regardless. I have even tried to do the following without success
def holder = groovyUtils.getXmlHolder( "addFromDocumentsCaseData#Request" )
holder.setNodeValue( "//ws:addFromDocuments/srcDocumentHandleList", "TRYTHIS" )
also
def holder = groovyUtils.getXmlHolder( "addFromDocumentsCaseData#Request" )
holder.setNodeValue( "//ws:addFromDocuments[1]/srcDocumentHandleList[1]", "TRYTHIS" )
I can do
def holder = groovyUtils.getXmlHolder( "addFromDocumentsCaseData#Request" )
holder.getNodeValues("//ws:addFromDocuments/srcDocumentHandleList)
and if I set something by hand it will retrieve it so I'm wondering why the setNodeValue function is not working for me.
Any other ideas?
Thanks
Keith
Yes.
1. Returns a list of strings in an array. The for loop loops through this list and if I log it I see the 4 strings I expect.
2. Is there a way to add a new xpath to the request??
3. In this example it would, but the key is it never sets the value regardless. I have even tried to do the following without success
def holder = groovyUtils.getXmlHolder( "addFromDocumentsCaseData#Request" )
holder.setNodeValue( "//ws:addFromDocuments/srcDocumentHandleList", "TRYTHIS" )
also
def holder = groovyUtils.getXmlHolder( "addFromDocumentsCaseData#Request" )
holder.setNodeValue( "//ws:addFromDocuments[1]/srcDocumentHandleList[1]", "TRYTHIS" )
I can do
def holder = groovyUtils.getXmlHolder( "addFromDocumentsCaseData#Request" )
holder.getNodeValues("//ws:addFromDocuments/srcDocumentHandleList)
and if I set something by hand it will retrieve it so I'm wondering why the setNodeValue function is not working for me.
Any other ideas?
Thanks
Keith